Example #1
0
        public void bsn_is_valid(string identification)
        {
            // Arrange
            BSN bsn = new BSN(identification);

            // Act

            // Assert
            Assert.That(bsn.IsValid, Is.True);
            Assert.That(bsn.ElectronicVersion, Is.Not.Null);
            Assert.That(bsn.PaperVersion, Is.Not.Null);
        }
Example #2
0
        public string check_paperversion(string identification)
        {
            // Arrange
            BSN bsn = new BSN(identification);

            // Act

            // Assert
            Assert.That(bsn.IsValid, Is.True);
            Assert.That(bsn.ElectronicVersion, Is.Not.Null);
            return(bsn.PaperVersion);
        }
Example #3
0
        public void check_xml_serializable(string identification)
        {
            // Arrange
            BSN expected = new BSN(identification);

            // Act
            BSN 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));
        }
Example #4
0
        public void bsn_is_strict_valid(string identification)
        {
            // Arrange
            BSN bsn = new BSN(identification);

            // Act

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