コード例 #1
0
 public void Guard_defends_is_passing_through()
 {
     Assert.DoesNotThrow(
         () => Is.Not(false)
         .Throw <ArgumentException>("This is Guard Testing"));
 }
コード例 #2
0
 public void Guard_defends()
 {
     Assert.Throws <ArgumentException>(
         () => Is.Not(true)
         .Throw <ArgumentException>("This is Guard Testing"));
 }