예제 #1
0
        public void CheckCatCanGoToSleep()
        {
            ICat c = new DomesticCat();

            c.GoToSleep();
            Assert.True(c.IsAsleep);
        }
예제 #2
0
        public void CheckCatCanWakeUp()
        {
            ICat c = new DomesticCat();

            c.GoToSleep();
            c.WakeUp();
            Assert.False(c.IsAsleep);
        }