コード例 #1
0
ファイル: GifItemizerTest.cs プロジェクト: hvalidi/ColorMine
            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));
            }
コード例 #2
0
            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));
            }