コード例 #1
0
        public void PlayerShouldJoin()
        {
            var game        = GameMocks.Joinable();
            var processor   = new JoinEventProcessor(game.Object, new MockLogger());
            var joinedEvent = (PlayerJoinedEvent)processor.Process(new JoinEvent());

            Assert.NotNull(joinedEvent.Player);
        }
コード例 #2
0
        public void PlayerCanJoinFaction()
        {
            var game        = GameMocks.Joinable();
            var processor   = new JoinFactionEventProcessor(game.Object);
            var joinedEvent = (PlayerJoinedEvent)processor.Process(new JoinEvent());

            Assert.NotNull(joinedEvent.Player);
        }