Ejemplo n.º 1
0
        public void testSetsSquareFootage()
        {
            PenthouseSuite penthouse = new PenthouseSuite();

            penthouse.setSquareFootage(1500);
            Assert.Equal(1500, penthouse.squareFootage);
        }
Ejemplo n.º 2
0
        public void testUpgraderAddsBedroomToApartment()
        {
            PenthouseSuite penthouse = new PenthouseSuite();
            UnitUpgrader   upgrader  = new UnitUpgrader();

            upgrader.upgrade(penthouse);

            Assert.Equal(5, penthouse.numberOfBedrooms);
        }
Ejemplo n.º 3
0
        public void testUpgraderIncreasesSquareFootageOfPenthouse()
        {
            PenthouseSuite penthouse = new PenthouseSuite();

            penthouse.setSquareFootage(1500);
            UnitUpgrader upgrader = new UnitUpgrader();

            upgrader.upgrade(penthouse);

            Assert.Equal(1540, penthouse.squareFootage);
        }
Ejemplo n.º 4
0
        public void testInitializedWithFourBedrooms()
        {
            PenthouseSuite penthouse = new PenthouseSuite();

            Assert.Equal(4, penthouse.numberOfBedrooms);
        }