Ejemplo n.º 1
0
        public void BreakTheFurnitureSofaBedTest()
        {
            SofaBed ff = new SofaBed(f3.Name, f3.Material, f3.Color);

            f3.BreakTheFurniture();

            Assert.AreNotEqual(f3, ff);
        }
Ejemplo n.º 2
0
        public void Initialising()
        {
            //_moq1 = new Mock<HomeFurniture>();
            //_moq2 = new Mock<SleepFurniture>();
            //_moq3 = new Mock<SofaBed>();
            //_moq4 = new Mock<Sofa>();
            //_moq5 = new Mock<Bed>();

            f  = new Furniture("Sofa", "Wood");
            f1 = new HomeFurniture("Chair", "Metal", "Red");
            f2 = new SleepFurniture("Chair", "Metal", "Red");
            f3 = new SofaBed("Sofa", "Wood", "Red");
            f4 = new Sofa("Chair", "Plastic", "Red");
            f5 = new Bed("Chair", "Metal", "Red");
        }