コード例 #1
0
ファイル: MoverTests.cs プロジェクト: neoprincie/MonopolyKata
        public void Move_ShouldWrapPlayerWhenEndOfBoardIsReached()
        {
            var mover = new Mover(new List<string>());
            mover.SetPlayerLocation("Princie", 39);

            mover.Move("Princie", 6);
            Assert.That(mover.GetPlayerLocation("Princie"), Is.EqualTo(5));
        }
コード例 #2
0
ファイル: MoverTests.cs プロジェクト: neoprincie/MonopolyKata
        public void Move_ShouldIncreaseThePlayerLocationByTheSpecifiedAmount()
        {
            var mover = new Mover(new List<string> { "Princie" });
            mover.SetPlayerLocation("Princie", 0);

            mover.Move("Princie", 7);

            Assert.That(mover.GetPlayerLocation("Princie"), Is.EqualTo(7));
        }