Esempio n. 1
0
        public void ConstructorTest()
        {
            Radiator fixedRadiator = new Radiator();

            Assert.IsTrue(fixedRadiator.IsFixed());
            Assert.IsFalse(fixedRadiator.IsLeaking());
            fixedRadiator.CauseLeak();
            Assert.IsTrue(fixedRadiator.IsLeaking());
            Assert.IsFalse(fixedRadiator.IsFixed());
            fixedRadiator.FixRadiator();
            Assert.IsTrue(fixedRadiator.IsFixed());
            Assert.IsFalse(fixedRadiator.IsLeaking());
        }