public void WrongHandlerThrowsNoSuitableHabitationException() { Demiguise demiguise = new Demiguise("test", 25); HabitationHandler handler = new PastureHandler(); handler.SetNextHandler(new AviaryHandler()); Action act = () => handler.PickHabitation(demiguise); Assert.Throws <NoSuitableHabitationHandlerException>(act); }
public void DemiguiseVoiceIsNotNull() { Demiguise demiguise = new Demiguise("Fish", 25); Assert.NotNull(demiguise); }