Пример #1
0
        public void CalculateTotalRibbon(string input, int expected)
        {
            var day2   = new Day2();
            var actual = day2.TotalRibbon(input);

            Assert.Equal(expected, actual);
        }
Пример #2
0
        public void ActualTotalRibbon()
        {
            const int TotalRibbon = 3783758;

            var day2   = new Day2();
            var actual = day2.TotalRibbon(LoadFromResource.Load("AdventOfCode.Tests.TestData.Day2.txt"));

            Assert.Equal(TotalRibbon, actual);
        }