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> ());
		}
Пример #2
0
        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> ());
        }