public void EntitySpecificationNotSatisfiedCheckThrowsTests() { // arrange var sut = new StubPerson(); // act/assert sut.JoinGroup("abc"); Should.Throw <SpecificationNotSatisfiedException>(() => sut.JoinGroup("abc")); }
public void EntitySpecificationSatisfiedCheckThrowsTests() { // arrange var sut = new StubPerson(); // act sut.JoinGroup("abc"); // assert sut.Groups.ShouldContain("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 }