Exemplo n.º 1
0
        public void NightTimeHandlerReturnsNullForNonExistingName()
        {
            VoiceHandler nightHandler = new NightTimeHandler(root);
            string       recieved     = nightHandler.HandleVoice("fish");

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

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

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