public void DoActionsShouldFireActorActionsEvents() { GameActor currentActor = null; GameActor testActor = new GameActor(); bool endFired = false; GameEvents.Instance.ActorActionsStart += (g, a) => { Assert.IsFalse(endFired); Assert.IsNull(currentActor); currentActor = a; Assert.AreEqual(testActor, a); }; GameEvents.Instance.ActorActionsEnd += (g, a) => { endFired = true; Assert.AreEqual(currentActor, a); Assert.AreEqual(testActor, a); }; testActor.DoActions(null); Assert.AreEqual(currentActor, testActor); Assert.IsTrue(endFired); }