public void WaterWSIsNotModified() { IWaterState waterState = new SolidWS(); Water water = new Water(waterState); IWaterState result; result = water.WaterState; Assert.AreEqual(waterState, result); }
public void SolidWSFrostAreEqual() { string constResult = "Продолжаем заморозку льда"; IWaterState waterState = new SolidWS(); Water water = new Water(waterState); string result; result = waterState.Frost(water); Assert.AreEqual(constResult, result); }
public void SolidWSHeatAreEqual() { string constResult = "Превращаем лёд в жидкость"; IWaterState waterState = new SolidWS(); Water water = new Water(waterState); string result; result = waterState.Heat(water); Assert.AreEqual(constResult, result); }