private static void ColorConverted(Color startColor, Color destinationColor) { // TODO: Need to moq here, but it's difficult... var bitmap = new Bitmap(1, 1); bitmap.SetPixel(0, 0, startColor); var image = new BitmapAdapter(bitmap); var itemizer = new GifItemizer(); var inventory = itemizer.Itemize<PercentagePaletteInventory>(image); Assert.IsTrue(inventory.Items.ContainsKey(destinationColor)); }
private static void ColorConverted(Color startColor, Color destinationColor) { // TODO: Need to moq here, but it's difficult... var bitmap = new Bitmap(1, 1); bitmap.SetPixel(0, 0, startColor); var image = new BitmapAdapter(bitmap); var itemizer = new GifItemizer(); var inventory = itemizer.Itemize <PercentagePaletteInventory>(image); Assert.IsTrue(inventory.Items.ContainsKey(destinationColor)); }