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