public void TestThatBitmapOperationsUtilityDeletesPixels()
        {
            BitmapOperationsUtility util = new BitmapOperationsUtility(new BitmapManager());

            Layer testLayer = new Layer("test layer", 10, 10);

            Coordinates[]      cords  = { new Coordinates(0, 0), new Coordinates(1, 1) };
            BitmapPixelChanges pixels = BitmapPixelChanges.FromSingleColoredArray(cords, Colors.Black);

            testLayer.SetPixels(pixels);

            util.DeletePixels(new [] { testLayer }, cords);

            Assert.Equal(0, testLayer.GetPixel(0, 0).A);
            Assert.Equal(0, testLayer.GetPixel(1, 1).A);
        }
        public void TestThatBitmapOperationsUtilityExecutesPenToolProperly()
        {
            BitmapManager manager = new BitmapManager
            {
                ActiveDocument = new Document(10, 10),
                PrimaryColor   = Colors.Black
            };

            manager.ActiveDocument.AddNewLayer("Test layer", 10, 10);

            BitmapOperationsUtility util = new BitmapOperationsUtility(manager);

            List <Coordinates> mouseMove = new List <Coordinates>(new[] { new Coordinates(0, 0) });

            util.ExecuteTool(new Coordinates(0, 0), mouseMove, new MockedSinglePixelPenTool());
            Assert.Equal(manager.ActiveLayer.GetPixel(0, 0), Colors.Black);
        }