示例#1
0
        public void TestSimulateShouldHandleExampleGeneralCase5()
        {
            long expectedSimulation = 37305;
            long actualSimulation   = MarbleMania.Simulate(30, 5807);

            Assert.AreEqual(expectedSimulation, actualSimulation);
        }
示例#2
0
        public void TestSimulateShouldHandleExampleGeneralCase4()
        {
            long expectedSimulation = 54718;
            long actualSimulation   = MarbleMania.Simulate(21, 6111);

            Assert.AreEqual(expectedSimulation, actualSimulation);
        }
示例#3
0
        public void TestSimulateShouldHandleNoPlayersCase()
        {
            long expectedSimulation = 0;
            long actualSimulation   = MarbleMania.Simulate(0, 10);

            Assert.AreEqual(expectedSimulation, actualSimulation);
        }
示例#4
0
        public void TestSimulateShouldHandleExampleGeneralCase3()
        {
            long expectedSimulation = 2764;
            long actualSimulation   = MarbleMania.Simulate(17, 1104);

            Assert.AreEqual(expectedSimulation, actualSimulation);
        }
示例#5
0
        public void TestSimulateShouldHandleExampleGeneralCase2()
        {
            long expectedSimulation = 146373;
            long actualSimulation   = MarbleMania.Simulate(13, 7999);

            Assert.AreEqual(expectedSimulation, actualSimulation);
        }
示例#6
0
        public void TestSimulateShouldHandleExampleGeneralCase1()
        {
            long expectedSimulation = 8317;
            long actualSimulation   = MarbleMania.Simulate(10, 1618);

            Assert.AreEqual(expectedSimulation, actualSimulation);
        }
示例#7
0
        public void TestSimulateShouldHandleExampleCaseForOneLoopWithActualHighScore()
        {
            long expectedSimulation = 32;
            long actualSimulation   = MarbleMania.Simulate(9, 25);

            Assert.AreEqual(expectedSimulation, actualSimulation);
        }
示例#8
0
        public void TestSimulateShouldCirculateOnceButReturnNoHighScore()
        {
            long expectedSimulation = 0;
            long actualSimulation   = MarbleMania.Simulate(1, 10);

            Assert.AreEqual(expectedSimulation, actualSimulation);
        }