public void Test_PatternMapGenerator_ChooseColorAmoung() { PatternMapGenerator generator = new PatternMapGenerator(); Color expectedColor = Color.Red; Color actual = generator.ChooseColorAmoung(Color.FromArgb(200, 200, 10, 100), new List<Color>(){Color.Red, Color.Green, Color.Blue}); Assert.AreEqual(expectedColor, actual); }
public void Test_PatternMapGenerator_ChooseColorAmoungException2() { PatternMapGenerator generator = new PatternMapGenerator(); generator.ChooseColorAmoung(Color.Red, null); }
public void Test_PatternMapGenerator_ChooseColorAmoungException1() { PatternMapGenerator generator = new PatternMapGenerator(); generator.ChooseColorAmoung(Color.Red, new List<Color>()); }