Exemplo n.º 1
0
        public void GassWSFrostAreEqual()
        {
            string      constResult = "Превращаем водяной пар в жидкость";
            IWaterState waterState  = new GassWS();
            Water       water       = new Water(waterState);
            string      result;

            result = waterState.Frost(water);

            Assert.AreEqual(constResult, result);
        }
Exemplo n.º 2
0
        public void GassWSHeatAreEqual()
        {
            string      constResult = "Повышаем температуру водяного пара";
            IWaterState waterState  = new GassWS();
            Water       water       = new Water(waterState);
            string      result;

            result = waterState.Heat(water);

            Assert.AreEqual(constResult, result);
        }