Пример #1
0
        public void StepsToEnterBasementRealData()
        {
            const int expected = 1795;
            var       step     = Day1.StepToEnterBasement(LoadFromResource.Load("AdventOfCode.Tests.TestData.Day1.txt"));

            Assert.Equal(expected, step);
        }
Пример #2
0
        public void StepToEnterBasement(string descriptor, int expectedStep)
        {
            var actual = Day1.StepToEnterBasement(descriptor);

            Assert.Equal(expectedStep, actual);
        }
Пример #3
0
 public void ThrowsIfNeverEntersBasement()
 {
     Assert.Throws <InvalidOperationException>(() => Day1.StepToEnterBasement("("));
 }