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

            vasya.FreezeWater();

            Assert.IsTrue(vasya.State is FreezedWater);
        }
Exemple #2
0
        public void WalkOnWaterWhenFreezedWaterTest()
        {
            int   steps = 20;
            Vasya vasya = new Vasya();

            vasya.FreezeWater();
            vasya.WalkOnWater(steps);

            Assert.IsTrue(vasya.State is FreezedWater);
            Assert.AreEqual(steps, vasya.CountSteps);
        }