public void FillTwo() { var pixel = new Pixel(11, 12, 13); pixel.Fill(x => { return(x + 1); }); Assert.AreEqual(12, pixel.Red); Assert.AreEqual(13, pixel.Green); Assert.AreEqual(14, pixel.Blue); }
public void FillOne() { var pixel = new Pixel(3); pixel.Fill(() => { return(11); }); Assert.AreEqual(11, pixel.Red); Assert.AreEqual(11, pixel.Green); Assert.AreEqual(11, pixel.Blue); }
public void FillTwo() { var pixel = new Pixel(11, 12, 13); pixel.Fill(x => {return x + 1;}); Assert.AreEqual(12, pixel.Red); Assert.AreEqual(13, pixel.Green); Assert.AreEqual(14, pixel.Blue); }
public void FillOne() { var pixel = new Pixel(3); pixel.Fill(() => {return 11;}); Assert.AreEqual(11, pixel.Red); Assert.AreEqual(11, pixel.Green); Assert.AreEqual(11, pixel.Blue); }