public void PaintsTheDoor() { Color newColor = Color.RoyalBlue; HousePainter testee = CreateTestee(); testee.ChangeColorOfFrontDoor(newColor); XDocument result = testee.GetResult(); result.FrontDoorElement().ColorAttributeValue().Should().Be(newColor); }
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); }
public void PaintsTheRoof() { Color newColor = Color.Red; HousePainter testee = CreateTestee(); testee.ChangeColorOfRoof(newColor); XDocument result = testee.GetResult(); result.RoofElement().ColorAttributeValue().Should().Be(newColor); }
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); }