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 { new Coordinates(0, 0) }, new TestReadonlyTool(() => toolUsed = true)); Assert.True(toolUsed); } } }