Example #1
0
 internal static void Owner(this ICollectionFor <Pet> petFor, Person expectedOwner)
 {
     petFor.Compose(pets =>
     {
         Expect(pets.All(p => p.Owner.DeepEquals(expectedOwner))).To.Be.True();
     });
 }
Example #2
0
 public static void Moo(this ICollectionFor <SomeNode> continuation)
 {
     continuation.Compose(
         actual =>
     {
         Expect(actual).To.Contain.Exactly(1).Matched.By(n => n.Name == "Moo");
     });
 }