public void Dispatch() { bool called = false; Action listener = () => { called = true; }; SignalManager <int> signalManager = new SignalManager <int>(); signalManager.AddListener(0, listener); signalManager.Dispatch(0); Assert.IsTrue(called == true); }