コード例 #1
0
 public void TestIsNotEmptyStringFalse()
 {
     Assert.Throws <XAssertionFailedException>(() =>
     {
         XAssert.That(string.Empty, IsNot.EmptyString());
     });
 }
コード例 #2
0
 public void TestsCanBeChained()
 {
     XAssert
     .That("string", IsNot.EmptyString())
     .And(Is.MatchFor("ing"))
     .And(Is.MatchFor("str"));
 }
コード例 #3
0
 public void TestsCanBeChainedSecondFails()
 {
     Assert.Throws <XAssertionFailedException>(() =>
     {
         XAssert
         .That("test2", IsNot.EmptyString())
         .And(Is.EqualTo("test"));
     });
 }
コード例 #4
0
 public void TestIsNotEmptyStringTrue()
 {
     XAssert.That("Test", IsNot.EmptyString());
 }