Пример #1
0
        public void CalculatesExpectedHousesForRoboSanta(string route, int expectedHouses)
        {
            var day3   = new Day3();
            var actual = day3.CalculateRoboSantaHouseVisits(route);

            Assert.Equal(expectedHouses, actual);
        }
Пример #2
0
        public void RoboSantaActual()
        {
            const int expected = 2360;
            var       day3     = new Day3();
            var       actual   = day3.CalculateRoboSantaHouseVisits(LoadFromResource.Load("AdventOfCode.Tests.TestData.Day3.txt"));

            Assert.Equal(expected, actual);
        }