Esempio n. 1
0
        public void MaterialsInheritanceTest()
        {
            var m = new Materials();

            m.r.IsBought = true;
            double SetDone = m.SetTotalPower();
            Assert.That(SetDone, Is.Not.EqualTo(11300));

            m.c.IsBought = true;
            SetDone = m.SetTotalPower();
            Assert.That(SetDone, Is.Not.EqualTo(1300));
        }
Esempio n. 2
0
        public void IsPowerAdded()
        {
            var m = new Materials();

            m.w.IsBought = true;
            double SetDone = m.SetTotalPower();
            Assert.That(SetDone, Is.EqualTo(300));

            m.c.IsBought = true;
            SetDone = m.SetTotalPower();
            Assert.That(SetDone, Is.EqualTo(1300));

            m.r.IsBought = true;
            SetDone = m.SetTotalPower();
            Assert.That(SetDone, Is.EqualTo(11300));
        }