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