public void NightTimeHandlerReturnsNullForNonExistingName() { VoiceHandler nightHandler = new NightTimeHandler(root); string recieved = nightHandler.HandleVoice("fish"); Assert.Null(recieved); }
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); }