ReadonlyUtilityTests.cs 530 B

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