示例#1
0
        public Sexe?nir_sexe(string identification)
        {
            // Arrange
            NIR nir = new NIR(identification);

            // Act

            // Assert
            return(nir.Sexe);
        }
示例#2
0
        public DateTime?check_birthdate(string identification)
        {
            // Arrange
            NIR nir = new NIR(identification);

            // Act

            // Assert
            return(nir.BirthDate);
        }
示例#3
0
        public string check_paperversion(string identification)
        {
            // Arrange
            NIR nir = new NIR(identification);

            // Act

            // Assert
            Assert.That(nir.IsValid, Is.True);
            Assert.That(nir.ElectronicVersion, Is.Not.Null);
            return(nir.PaperVersion);
        }
示例#4
0
        public void bsn_is_valid(string identification)
        {
            // Arrange
            NIR nir = new NIR(identification);

            // Act

            // Assert
            Assert.That(nir.IsValid, Is.True);
            Assert.That(nir.ElectronicVersion, Is.Not.Null);
            Assert.That(nir.PaperVersion, Is.Not.Null);
        }
示例#5
0
        public void check_xml_serializable(string identification)
        {
            // Arrange
            NIR expected = new NIR(identification);

            // Act
            NIR actual = DeepCloneUsingXml(expected);

            // Assert
            Assert.That(actual, Is.Not.Null);
            Assert.That(actual.RawVersion, Is.EquivalentTo(expected.RawVersion));
            Assert.That(actual.TwoIsoLetterCountryCode, Is.EquivalentTo(expected.TwoIsoLetterCountryCode));
        }
示例#6
0
        public void bsn_is_strict_valid(string identification)
        {
            // Arrange
            NIR nir = new NIR(identification);

            // Act

            // Assert
            Assert.That(nir.IsValid, Is.True);
            Assert.That(nir.IsStrictValid, Is.True);
            Assert.That(nir.ElectronicVersion, Is.EqualTo(nir.CleanedVersion));
            Assert.That(nir.ElectronicVersion, Is.EqualTo(nir.RawVersion));
            Assert.That(nir.PaperVersion, Is.Not.Null);
        }