public void ReturnLightenedColorWhenClamped() { var color1 = new ConsoleApp.Immutable.Color(200, 210, 220); var lightenedColor = color1.Lighten(60); Color expectedColor = new ConsoleApp.Immutable.Color(255, 255, 255); Assert.AreEqual(expectedColor.Red, lightenedColor.Red); Assert.AreEqual(expectedColor.Green, lightenedColor.Green); Assert.AreEqual(expectedColor.Blue, lightenedColor.Blue); }
public void ReturnLightenedColor() { var color1 = new ConsoleApp.Immutable.Color(0, 0, 0); var lightenedColor = color1.Lighten(10); Color expectedColor = new ConsoleApp.Immutable.Color(10, 10, 10); Assert.AreEqual(expectedColor.Red, lightenedColor.Red); Assert.AreEqual(expectedColor.Green, lightenedColor.Green); Assert.AreEqual(expectedColor.Blue, lightenedColor.Blue); }