Command IsPauseable Property Delta Engine Documentation

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

public override bool IsPauseable { get; }

Property Value

Type: Boolean
Remarks

Tests: DeltaEngine.Tests.Commands.CommandTests
Examples

2 unit tests call DeltaEngine.Commands.Command.IsPauseable
[Test]
public void CommandIsNotPausable()
{
    Assert.IsFalse(new Command(() => { }).IsPauseable);
}
[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