public void EntitySpecificationSatisfiedCheckTests() { // arrange var sut = new StubPerson(); sut.JoinGroup("abc"); sut.LeaveGroup("abc"); // act/assert sut.Groups.ShouldNotContain("abc"); }
public void EntitySpecificationNotSatisfiedCheckTests() { // arrange var sut = new StubPerson(); sut.JoinGroup("abc"); sut.Expired = true; sut.LeaveGroup("abc"); // act/assert sut.Groups.ShouldContain("abc"); // due to person.expired == true }