Exemplo n.º 1
0
        public void WhichSmartElf_ReturnsCorrectPositionOfFinalElf_ForActualProblem()
        {
            var expected = 1830117;

            var actual = PresentStealing.WhichSmartElfGetsThePresents(3012210);

            Assert.Equal(expected, actual);
        }
Exemplo n.º 2
0
        public void WhichCircularElf_ReturnsCorrectPositionOfFinalElf()
        {
            var expected = 2;

            var actual = PresentStealing.WhichCircularElfGetsThePresents(5);

            Assert.Equal(expected, actual);
        }
Exemplo n.º 3
0
        public void WhichSmartCircularElf_ReturnsCorrectPositionOfFinalElf_InSecondHalf(int numberElves, int expected)
        {
            var actual = PresentStealing.WhichSmartCircularElfGetsThePresents(numberElves);

            Assert.Equal(expected, actual);
        }
Exemplo n.º 4
0
 public static void Problem19()
 {
     Console.WriteLine("{0} Elves --> {1} Elf gets the presents", 3012210, PresentStealing.WhichSmartCircularElfGetsThePresents(3012210));
 }