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