示例#1
0
        public void TestHonestStringWithValue()
        {
            Honest <string> sut = "Hello";

            Assert.IsTrue(sut == "Hello");
            Assert.AreEqual(sut, "Hello");
        }
示例#2
0
        public void TestHonestNullString()
        {
            string sut = new Honest <string>(null);

            Assert.IsNull(sut);
        }
示例#3
0
 public void TestHonestUnknownString()
 {
     Assert.Throws <InvalidOperationException>(() => { string sut = Honest <string> .DontKnow(); });
 }