コード例 #1
0
        public void ばぬしが1回休みを踏んだときのテスト()
        {
            _core.Players[1].Position = 18;

            var step = new PlayerAction
            {
                Length = 1, PlayerID = 1
            };

            _core.ReflectAction(step);

            var exp = new List <int> {
                2, 2, 1, 2, 1
            };

            for (var i = 0; i < Math.Min(exp.Count, _core.ActionSchedule.Count); i++)
            {
                Assert.AreEqual(exp[i], _core.ActionSchedule[i]);
            }

            Assert.AreEqual(2, _core.MatchInfo.NextPlayerID);
        }