Пример #1
0
        public void TestSimulateShouldHandleExampleGeneralCase5()
        {
            int expectedSimulation = 37305;
            int actualSimulation   = MarbleMania.Simulate(30, 5807);

            Assert.AreEqual(expectedSimulation, actualSimulation);
        }
Пример #2
0
        public void TestSimulateShouldHandleExampleGeneralCase4()
        {
            int expectedSimulation = 54718;
            int actualSimulation   = MarbleMania.Simulate(21, 6111);

            Assert.AreEqual(expectedSimulation, actualSimulation);
        }
Пример #3
0
        public void TestSimulateShouldHandleNoPlayersCase()
        {
            int expectedSimulation = 0;
            int actualSimulation   = MarbleMania.Simulate(0, 10);

            Assert.AreEqual(expectedSimulation, actualSimulation);
        }
Пример #4
0
        public void TestSimulateShouldHandleExampleGeneralCase3()
        {
            int expectedSimulation = 2764;
            int actualSimulation   = MarbleMania.Simulate(17, 1104);

            Assert.AreEqual(expectedSimulation, actualSimulation);
        }
Пример #5
0
        public void TestSimulateShouldHandleExampleGeneralCase2()
        {
            int expectedSimulation = 146373;
            int actualSimulation   = MarbleMania.Simulate(13, 7999);

            Assert.AreEqual(expectedSimulation, actualSimulation);
        }
Пример #6
0
        public void TestSimulateShouldHandleExampleGeneralCase1()
        {
            int expectedSimulation = 8317;
            int actualSimulation   = MarbleMania.Simulate(10, 1618);

            Assert.AreEqual(expectedSimulation, actualSimulation);
        }
Пример #7
0
        public void TestSimulateShouldHandleExampleCaseForOneLoopWithActualHighScore()
        {
            int expectedSimulation = 32;
            int actualSimulation   = MarbleMania.Simulate(9, 25);

            Assert.AreEqual(expectedSimulation, actualSimulation);
        }
Пример #8
0
        public void TestSimulateShouldCirculateOnceButReturnNoHighScore()
        {
            int expectedSimulation = 0;
            int actualSimulation   = MarbleMania.Simulate(1, 10);

            Assert.AreEqual(expectedSimulation, actualSimulation);
        }