示例#1
0
        public void FreezeWaterTest()
        {
            Vasya vasya = new Vasya();

            vasya.FreezeWater();

            Assert.IsTrue(vasya.State is FreezedWater);
        }
示例#2
0
        public void VasyaTestCtor()
        {
            Vasya vasya = new Vasya();

            Assert.IsNotNull(vasya);
            Assert.IsTrue(vasya.State is NotFreezedWater);
            Assert.AreEqual(0, vasya.CountSteps);
        }
示例#3
0
        public void WalkOnWaterWhenNotFreezedWaterTest()
        {
            int   steps = 20;
            Vasya vasya = new Vasya();

            vasya.WalkOnWater(steps);

            Assert.IsTrue(vasya.State is NotFreezedWater);
            Assert.AreNotEqual(steps, vasya.CountSteps);
        }