Esempio n. 1
0
        public void DayTimeHandlerReturnsNullForNonExistingName()
        {
            VoiceHandler nightHandler = new DayTimeHandler(root);
            string       recieved     = nightHandler.HandleVoice("fish");

            Assert.Null(recieved);
        }
Esempio n. 2
0
        public void DayTimeHandlerReturnsValidVoiceForGivenAnimalName()
        {
            string expected = CommonTestData.occamy.Speak();

            VoiceHandler nightHandler = new DayTimeHandler(root);
            string       recieved     = nightHandler.HandleVoice(CommonTestData.occamy.Name);

            Assert.NotNull(recieved);
            Assert.Equal(expected, recieved);
        }