Ejemplo n.º 1
0
        public Sexe?nir_sexe(string identification)
        {
            // Arrange
            NIR nir = new NIR(identification);

            // Act

            // Assert
            return(nir.Sexe);
        }
Ejemplo n.º 2
0
        public DateTime?check_birthdate(string identification)
        {
            // Arrange
            NIR nir = new NIR(identification);

            // Act

            // Assert
            return(nir.BirthDate);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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);
        }