mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-06 03:07:04 +02:00
28 lines
707 B
C#
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));
|
|
}
|
|
}
|
|
}
|