コード例 #1
0
        public void Fourth2_HeightInvalid_Cm()
        {
            var input = new List <string> {
                "hgt:190"
            };

            var northPoleCredentials = new NorthPoleCredentials(input);

            Assert.IsFalse(northPoleCredentials.IsHeightValid2());
        }
コード例 #2
0
        public void Fourth2_HairColorInvalid()
        {
            var input = new List <string> {
                "hcl:#123abz"
            };

            var northPoleCredentials = new NorthPoleCredentials(input);

            Assert.IsFalse(northPoleCredentials.IsHairColorValid2());
        }
コード例 #3
0
        public void Fourth2_HeightValid_In()
        {
            var input = new List <string> {
                "hgt:60in"
            };

            var northPoleCredentials = new NorthPoleCredentials(input);

            Assert.IsTrue(northPoleCredentials.IsHeightValid2());
        }
コード例 #4
0
        public void Fourth2_BirthYearInvalid()
        {
            var input = new List <string> {
                "byr:2003"
            };

            var northPoleCredentials = new NorthPoleCredentials(input);

            Assert.IsFalse(northPoleCredentials.IsBirthYearValid2());
        }
コード例 #5
0
        public void Fourth2_PassportIDInvalid()
        {
            var input = new List <string> {
                "pid:0123456789"
            };

            var northPoleCredentials = new NorthPoleCredentials(input);

            Assert.IsFalse(northPoleCredentials.IsPassportIDValid2());
        }
コード例 #6
0
        public void Fourth2_PassportIDValid()
        {
            var input = new List <string> {
                "pid:000000001"
            };

            var northPoleCredentials = new NorthPoleCredentials(input);

            Assert.IsTrue(northPoleCredentials.IsPassportIDValid2());
        }
コード例 #7
0
        public void Fourth2_EyeColorInvalid()
        {
            var input = new List <string> {
                "ecl:wat"
            };

            var northPoleCredentials = new NorthPoleCredentials(input);

            Assert.IsFalse(northPoleCredentials.IsEyeColorValid2());
        }