CommandTests CommandWithDragAction Method Delta Engine Documentation

Namespace: DeltaEngine.Tests.Commands
Assembly: DeltaEngine.Tests (in DeltaEngine.Tests.dll) Version: 1.1.1.0 (1.1.1)
Syntax

public void CommandWithDragAction()
Examples

[Test]
public void CommandWithDragAction()
{
    var trigger = new MockDragTrigger();
    var commandName = RegisterCommand(trigger);
    new Command(commandName, delegate(Vector2D point, Vector2D dims, bool test)
        { actionPerformed = true; });
    AssertActionPerformed(trigger);
}
[Test]
public void CommandWithDragActionMock()
{
    var trigger = new MockTrigger();
    var commandName = RegisterCommand(trigger);
    new Command(commandName, delegate(Vector2D point, Vector2D dims, bool test)
        { actionPerformed = true; });
    AssertActionPerformed(trigger);
}
See Also