public void StepsToEnterBasementRealData() { const int expected = 1795; var step = Day1.StepToEnterBasement(LoadFromResource.Load("AdventOfCode.Tests.TestData.Day1.txt")); Assert.Equal(expected, step); }
public void StepToEnterBasement(string descriptor, int expectedStep) { var actual = Day1.StepToEnterBasement(descriptor); Assert.Equal(expectedStep, actual); }
public void ThrowsIfNeverEntersBasement() { Assert.Throws <InvalidOperationException>(() => Day1.StepToEnterBasement("(")); }