示例#1
0
 public void IfExistsShouldReturnTheValueOfTheChildProperty()
 {
     _parent.IfExists(parent => parent.ChildThing).Should().Be(27);
 }
示例#2
0
 public void IfExistsShouldReturnTheDefaultTypeForTheChildProprty()
 {
     _parent.IfExists(parent => parent.ChildThing).Should().Be(default(int));
 }