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]); }
public void Test_Palette_CountException() { Palette palette = new Palette(); Assert.IsTrue(palette.Count == 0); }
public void Test_Palette_GetAllColorException() { Palette palette = new Palette(); palette.GetAllColors(); }
public void Test_Palette_Count() { Palette palette = new Palette(new Color[] { Color.Red, Color.Blue }); Assert.IsTrue(palette.Count == 2); }