Example #1
0
        public void TestRun_PassingMultipleMonkeys_ShouldReturnTwentyEightIterations()
        {
            var monkeyManager = new MonkeyManager(output, 4, 9);

            Assert.AreEqual(28, monkeyManager.Run());
        }
Example #2
0
        public void TestRun_PassingOneMonkeyRightSide_ShouldReturnFourIterations()
        {
            var monkeyManager = new MonkeyManager(output, 0, 1);

            Assert.AreEqual(4, monkeyManager.Run());
        }
Example #3
0
        public void TestRun_PassingOneMonkeyEachSide_ShouldReturnEightIterations()
        {
            var monkeyManager = new MonkeyManager(output, 1, 1);

            Assert.AreEqual(8, monkeyManager.Run());
        }
Example #4
0
        public void TestRun_PassingNoMonkeys_ShouldReturnCeroIterations()
        {
            var monkeyManager = new MonkeyManager(output, 0, 0);

            Assert.AreEqual(0, monkeyManager.Run());
        }