public void ChecksPasswordPolicy_GetNumberOfPassingEntriesInFile_GetsRealNumberOfEntries() { var subject = new GetsNumberOfPassingEntriesInFile(new ChecksPasswordPolicy()); subject.Get( @"C:\Projects\Homework\advent-of-code-2020-puzzle-input\aoc-day02-input.txt").Should().Be(467); }
public void ChecksPasswordPolicyByPosition_OpenFile_CorrectNumberOfEntries() { var subject = new GetsNumberOfPassingEntriesInFile(new ChecksPasswordPolicyByPosition()); subject.Get( @"C:\Projects\Homework\advent-of-code-2020-puzzle-input\aoc-day02-test-input-1.txt").Should().Be(1); }