Beispiel #1
0
        public void CalculatesExpectedHousesCorrectly(string route, int expectedHouses)
        {
            var day3   = new Day3();
            var actual = day3.CalculateHouseVisits(route);

            Assert.Equal(expectedHouses, actual);
        }
Beispiel #2
0
        public void ActualHouseVisits()
        {
            const int expected = 2592;
            var       day3     = new Day3();
            var       actual   = day3.CalculateHouseVisits(LoadFromResource.Load("AdventOfCode.Tests.TestData.Day3.txt"));

            Assert.Equal(expected, actual);
        }