public void Can_Set_Property_Value_UsingWithA() { var testClass = new ObjectInstanceTests(); testClass.given.IHaveA <HumanTestPoco>().WithA("Name").Of("Elliott").AndA("Age").Of(100); testClass.when.I("CallAPassThroughMethod"); testClass.then.IExpectAResponse <HumanTestPoco>() .Where("Name").Is("Elliott").And("Age").Is(100) .And("Name").IsNot("Charlie"); }
public void Can_Validate_CollectionProperty_Value() { var testClass = new ObjectInstanceTests(); testClass.given.IHaveA <HumanTestPoco>() .WithACollection("Pets") .WithAnItemThatHasA("AnimalType", "Dog") .AndA("Name", "Bud"); testClass.when.I("CallAPassThroughMethod"); testClass.then.IExpectAResponse <HumanTestPoco>() .WhereACollection("Pets") .HasAnItemWith("AnimalType", "Dog") .And("Name", "Bud"); }