public void FreezeWaterTest() { Vasya vasya = new Vasya(); vasya.FreezeWater(); Assert.IsTrue(vasya.State is FreezedWater); }
public void VasyaTestCtor() { Vasya vasya = new Vasya(); Assert.IsNotNull(vasya); Assert.IsTrue(vasya.State is NotFreezedWater); Assert.AreEqual(0, vasya.CountSteps); }
public void WalkOnWaterWhenNotFreezedWaterTest() { int steps = 20; Vasya vasya = new Vasya(); vasya.WalkOnWater(steps); Assert.IsTrue(vasya.State is NotFreezedWater); Assert.AreNotEqual(steps, vasya.CountSteps); }