public void RegisteredEventListenersGetEvents () { var sink = new GameEventSink (); var listener = Substitute.For<IGameEventListener> (); sink.RegisterListener (listener); sink.ReceiveEvent (Substitute.For<IGameEvent> ()); listener.Received ().ReceiveEvent (Arg.Any<IGameEvent> ()); }
public void RegisteredEventListenersGetEvents() { var sink = new GameEventSink(); var listener = Substitute.For <IGameEventListener> (); sink.RegisterListener(listener); sink.ReceiveEvent(Substitute.For <IGameEvent> ()); listener.Received().ReceiveEvent(Arg.Any <IGameEvent> ()); }