Esempio n. 1
0
        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));
        }
Esempio n. 2
0
        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));
        }