1234567891011121314151617181920 |
- using PixiEditor.Models.Controllers;
- using PixiEditor.Models.Position;
- using System.Collections.Generic;
- using Xunit;
- namespace PixiEditorTests.ModelsTests.ControllersTests
- {
- public class ReadonlyUtilityTests
- {
- [Fact]
- public void TestThatExecuteToolExecutesTool()
- {
- bool toolUsed = false;
- ReadonlyToolUtility util = new ReadonlyToolUtility();
- util.ExecuteTool(new List<Coordinates> { new Coordinates(0, 0) }, new TestReadonlyTool(() => toolUsed = true));
- Assert.True(toolUsed);
- }
- }
- }
|