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

[Test]
public void InvokeOnTrigger()
{
    customTrigger = new MockTrigger();
    customTrigger.Invoked = () => { customTrigger.UpdatePriority = Priority.Normal; };
    customTrigger.Invoke();
    Assert.AreEqual(customTrigger.UpdatePriority, Priority.Normal);
    Assert.IsFalse(customTrigger.IsPauseable);
}
See Also