public void It_Should_Test_If_Property_Is_Null_When_NotHaveA_Is_Called()
        {
            var person = new Person();

            dynamic dAssert = person.Should().NotHaveA();
            dAssert.Father();
        }
Пример #2
0
 public void Before() 
 {
     var name = "foo";
     fooAsserter = name.Should();
     person = new Person();
     personAsserter = person.Should();
 }
 public void Should_Call_The_IsNull_Extension_Method_When_Null_Is_Called_As_A_Special_Case()
 {
     person.Should().NotBe().Null();
     person = null;
     person.Should().Be().Null();
 }