Example #1
0
        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);
        }
Example #2
0
        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);
        }