Ooui-tws-port/Tests/ButtonTests.cs

26 lines
487 B
C#
Raw Normal View History

2017-06-14 03:42:06 +00:00
using System;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using Ooui;
namespace Tests
{
[TestClass]
public class ButtonTests
{
[TestMethod]
public void DefaultCtor ()
{
var b = new Button ();
2017-06-14 04:17:50 +00:00
Assert.AreEqual ("", b.Text);
2017-06-14 03:42:06 +00:00
}
2017-06-14 23:48:42 +00:00
[TestMethod]
public void TextCtor ()
{
var b = new Button ("Hello World!");
Assert.AreEqual ("Hello World!", b.Text);
}
2017-06-14 03:42:06 +00:00
}
}