Files
PowerToys/src/modules/launcher/Wox.Test/Plugins/ToolTipDataTest.cs

28 lines
707 B
C#

// Copyright (c) Microsoft Corporation
// The Microsoft Corporation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
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));
}
}
}