Exemplo n.º 1
0
        public void Person_With_NoOpposed_Should_Return_False()
        {
            //arrange
            Person person = new Person("Dogs", preferredType: PetType.Dog);

            //Act
            bool statusResult = person.AnyOpposed();

            //Assert
            bool expectedResult = false;

            Assert.Equal(expectedResult.ToString(), statusResult.ToString());
        }
Exemplo n.º 2
0
        public void Person_With_AnyOpposed_Should_Return_True()
        {
            //arrange
            Person person = new Person("Dogs", opposedClassification: PetClassification.Mammal);

            //Act
            bool statusResult = person.AnyOpposed();

            //Assert
            bool expectedResult = true;

            Assert.Equal(expectedResult.ToString(), statusResult.ToString());
        }