Just a test class used in the specifications
        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();
 }
 public void Before()
 {
     person = new Person();
     person.IsAwesome = true;
 }
 public void Before()
 {
     person = new Person();
     person.Children = new List<Person>{new Person(), new Person(), new Person()};
 }