Esempio n. 1
0
        public void PaintsTheDoor()
        {
            Color        newColor = Color.RoyalBlue;
            HousePainter testee   = CreateTestee();

            testee.ChangeColorOfFrontDoor(newColor);
            XDocument result = testee.GetResult();

            result.FrontDoorElement().ColorAttributeValue().Should().Be(newColor);
        }
Esempio n. 2
0
        public void PaintsTheFacade()
        {
            Color        newColor = Color.FromArgb(250, 240, 232);
            HousePainter testee   = CreateTestee();

            testee.ChangeColorOfFacade(newColor);
            XDocument result = testee.GetResult();

            result.FacadeColorElementValue().Should().Be(newColor);
        }
Esempio n. 3
0
        public void PaintsTheRoof()
        {
            Color        newColor = Color.Red;
            HousePainter testee   = CreateTestee();

            testee.ChangeColorOfRoof(newColor);
            XDocument result = testee.GetResult();

            result.RoofElement().ColorAttributeValue().Should().Be(newColor);
        }
Esempio n. 4
0
        public void PaintsTheWindowBorders()
        {
            Color        newColor = Color.FromArgb(10, 15, 72);
            HousePainter testee   = CreateTestee();

            testee.ChangeBorderColorOfAllWindows(newColor);
            ICollection <XElement> result = testee.GetResult().WindowElements();

            result.First().ColorAttributeValue().Should().Be(newColor);
            result.Last().ColorAttributeValue().Should().Be(newColor);
        }