예제 #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("("));
 }