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

[Test]
public void CommandWithZoomAction()
{
    var trigger = new MockZoomTrigger();
    var commandName = RegisterCommand(trigger);
    new Command(commandName, delegate(float zoom) { actionPerformed = true; });
[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