Example #1
0
        public void testSetsSquareFootage()
        {
            PenthouseSuite penthouse = new PenthouseSuite();

            penthouse.setSquareFootage(1600);

            Assert.Equal(1600, penthouse.squareFootage);
        }
Example #2
0
        public void testAddsBedroomToPenthouse()
        {
            PenthouseSuite penthouse = new PenthouseSuite();
            BedroomAdder   adder     = new BedroomAdder();

            adder.addBedroom(penthouse);

            Assert.Equal(5, penthouse.numberOfBedrooms);
        }
Example #3
0
        public void testInitializedWithFourBedrooms()
        {
            PenthouseSuite penthouse = new PenthouseSuite();

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