Beispiel #1
0
        public void EntitySpecificationSatisfiedCheckTests()
        {
            // arrange
            var sut = new StubPerson();

            sut.JoinGroup("abc");
            sut.LeaveGroup("abc");

            // act/assert
            sut.Groups.ShouldNotContain("abc");
        }
Beispiel #2
0
        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
        }