コード例 #1
0
        public void GameMessageCommandPlayerLeft()
        {
            var c  = GameCommandMock.GameMessageCommandPlayerLeft();
            var dc = GetDecodedCommand(c);

            Assert.AreEqual(c.Message, dc.Message);

            var ci  = (GameMessageOptionPlayerLeft)c.Info;
            var dci = (GameMessageOptionPlayerLeft)dc.Info;

            Assert.AreEqual(ci.OptionType, dci.OptionType);
            Assert.AreEqual(ci.PlayerName, dci.PlayerName);
        }