CommandTests CommandWithZoomActionMock 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 CommandWithZoomActionMock()
Examples

[Test]
public void CommandWithZoomActionMock()
{
    var trigger = new MockTrigger();
    const string CommandName = "PositionActionCommand";
    Command.Register(CommandName, trigger);
    actionPerformed = false;
    new Command(CommandName, delegate(float zoom) { actionPerformed = true; });
See Also