Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        public void DemiguiseVoiceIsNotNull()
        {
            Demiguise demiguise = new Demiguise("Fish", 25);

            Assert.NotNull(demiguise);
        }