Ejemplo n.º 1
0
        public void IncludePersonWithNameAbby_EmptyList_ReturnsFalse()
        {
            // Arrange
            var people = TestData.NoPeople;

            //Act
            var includesPerson = BasicLinq.IncludesPersonWithName(people, "Abby");

            //Assert
            includesPerson.Should().BeFalse();
        }
Ejemplo n.º 2
0
        public void IncludePersonWithNameFelicity_LotsOfPeople_ReturnsTrue()
        {
            // Arrange
            var people = TestData.LotsOfPeople;

            //Act
            var includesPerson = BasicLinq.IncludesPersonWithName(people, "Felicity");

            //Assert
            includesPerson.Should().BeTrue();
        }
Ejemplo n.º 3
0
        public void IncludePersonWithNameEll_LotsOfPeople_ReturnsFalse()
        {
            // Arrange
            var people = TestData.LotsOfPeople;

            //Act
            var includesPerson = BasicLinq.IncludesPersonWithName(people, "Ell");

            //Assert
            includesPerson.Should().BeFalse();
        }
Ejemplo n.º 4
0
        public void IncludePersonWithNameBob_AbbySmith_ReturnsTrue()
        {
            // Arrange
            var people = TestData.AbbySmith;

            //Act
            var includesPerson = BasicLinq.IncludesPersonWithName(people, "Bob");

            //Assert
            includesPerson.Should().BeFalse();
        }