public void InvokeOnTrigger() { customTrigger = new MockTrigger(); customTrigger.Invoked = () => { customTrigger.UpdatePriority = Priority.Normal; }; customTrigger.Invoke(); Assert.AreEqual(customTrigger.UpdatePriority, Priority.Normal); Assert.IsFalse(customTrigger.IsPauseable); }
private void InvokingTriggerWithoutRunningEntitiesDoesNotCauseAction() { customTrigger.Invoke(); Assert.AreEqual(0.0f, pos); }