예제 #1
0
        public void Test_Palette_GetAllColors()
        {
            Color[] expected = new Color[] { Color.Red, Color.Green, Color.Blue };

            Palette palette = new Palette(expected);

            Color[] actual = palette.GetAllColors();

            Assert.IsTrue(actual.Length == expected.Length);

            for (int i = 0; i < actual.Length; i++)
                Assert.AreEqual(expected[i], actual[i]);
        }
예제 #2
0
 public void Test_Palette_CountException()
 {
     Palette palette = new Palette();
     Assert.IsTrue(palette.Count == 0);
 }
예제 #3
0
 public void Test_Palette_GetAllColorException()
 {
     Palette palette = new Palette();
     palette.GetAllColors();
 }
예제 #4
0
        public void Test_Palette_Count()
        {
            Palette palette = new Palette(new Color[] { Color.Red, Color.Blue });

            Assert.IsTrue(palette.Count == 2);
        }