TestReadonlyTool.cs 499 B

12345678910111213141516171819202122
  1. using System;
  2. using System.Collections.Generic;
  3. using PixiEditor.Models.Position;
  4. using PixiEditor.Models.Tools;
  5. namespace PixiEditorTests.ModelsTests.ControllersTests
  6. {
  7. public class TestReadonlyTool : ReadonlyTool
  8. {
  9. public TestReadonlyTool(Action toolAction)
  10. {
  11. ToolAction = toolAction;
  12. }
  13. public Action ToolAction { get; set; }
  14. public override void Use(List<Coordinates> pixels)
  15. {
  16. ToolAction();
  17. }
  18. }
  19. }