public Sexe?nir_sexe(string identification) { // Arrange NIR nir = new NIR(identification); // Act // Assert return(nir.Sexe); }
public DateTime?check_birthdate(string identification) { // Arrange NIR nir = new NIR(identification); // Act // Assert return(nir.BirthDate); }
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); }
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); }
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)); }
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); }