Пример #1
0
        public void ParsePassport()
        {
            var passportString = new[] { _lines[0], _lines[1] };

            var passport = PassportUtils.ParsePassport(passportString);

            passport.ecl.Should().Be("gry");
            passport.pid.Should().Be("860033327");
            passport.eyr.Should().Be("2020");
            passport.hcl.Should().Be("#fffffd");
            passport.byr.Should().Be("1937");
            passport.iyr.Should().Be("2017");
            passport.cid.Should().Be("147");
            passport.hgt.Should().Be("183cm");
        }