ReadonlyUtilityTests.cs 581 B

1234567891011121314151617181920
  1. using PixiEditor.Models.Controllers;
  2. using PixiEditor.Models.Position;
  3. using System.Collections.Generic;
  4. using Xunit;
  5. namespace PixiEditorTests.ModelsTests.ControllersTests
  6. {
  7. public class ReadonlyUtilityTests
  8. {
  9. [Fact]
  10. public void TestThatExecuteToolExecutesTool()
  11. {
  12. bool toolUsed = false;
  13. ReadonlyToolUtility util = new ReadonlyToolUtility();
  14. util.ExecuteTool(new List<Coordinates> { new Coordinates(0, 0) }, new TestReadonlyTool(() => toolUsed = true));
  15. Assert.True(toolUsed);
  16. }
  17. }
  18. }