示例#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);
        }