Esempio n. 1
0
        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);
        }
Esempio n. 2
0
        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);
        }
Esempio n. 3
0
 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);
 }
Esempio n. 4
0
 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);
 }