예제 #1
0
        public void PointsOfWinningReindeer(string reindeer, int time, int expectedDistance)
        {
            var day14          = new Day14();
            var actualDistance = day14.CalculateScoreForWinningReindeer(reindeer, time);

            Assert.Equal(expectedDistance, actualDistance);
        }
예제 #2
0
        public void PointsOfWinningReindeerActual()
        {
            var       day14          = new Day14();
            const int time           = 2503;
            const int expectedPoints = 1059;

            var data = LoadFromResource.Load("AdventOfCode.Tests.TestData.Day14.txt");

            var actualDistance = day14.CalculateScoreForWinningReindeer(data, time);

            Assert.Equal(expectedPoints, actualDistance);
        }