mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-07 11:46:30 +02:00
24 lines
523 B
C#
24 lines
523 B
C#
|
|
using NUnit.Framework;
|
|||
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Text;
|
|||
|
|
using Wox.Plugin;
|
|||
|
|
|
|||
|
|
namespace Wox.Test.Plugins
|
|||
|
|
{
|
|||
|
|
[TestFixture]
|
|||
|
|
class ToolTipDataTest
|
|||
|
|
{
|
|||
|
|
[Test]
|
|||
|
|
public void Constructor_ThrowsNullArgumentException_WhenToolTipTitleIsNull()
|
|||
|
|
{
|
|||
|
|
// Arrange
|
|||
|
|
string title = null;
|
|||
|
|
string text = "text";
|
|||
|
|
|
|||
|
|
// Assert
|
|||
|
|
var ex = Assert.Throws<ArgumentException>(() => new ToolTipData(title, text));
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|