Ejemplo n.º 1
0
        public void Test_CalculateNewPlace_RolloverToFirstPlace()
        {
            int currentPlace       = 3;
            int roll               = 7;
            int numberOfPlaces     = 10;
            var newPlaceCalculator = new NewPlaceCalculator();

            var result = newPlaceCalculator.CalculateNewPlace(currentPlace, roll, numberOfPlaces);

            Assert.AreEqual(0, result);
        }
Ejemplo n.º 2
0
        public void Test_CalculateNewPlace_Simple()
        {
            int currentPlace       = 0;
            int roll               = 1;
            int numberOfPlaces     = 10;
            var newPlaceCalculator = new NewPlaceCalculator();

            var result = newPlaceCalculator.CalculateNewPlace(currentPlace, roll, numberOfPlaces);

            Assert.AreEqual(1, result);
        }