コード例 #1
0
        public long?dmfa_check_as_number(string identification)
        {
            // Arrange
            DMFA dmfa = new DMFA(identification);

            // Act

            // Assert
            return(dmfa.AsNumber);
        }
コード例 #2
0
        public string check_paperversion(string identification)
        {
            // Arrange
            DMFA dmfa = new DMFA(identification);

            // Act

            // Assert
            Assert.That(dmfa.IsValid, Is.True);
            Assert.That(dmfa.ElectronicVersion, Is.Not.Null);
            return(dmfa.PaperVersion);
        }
コード例 #3
0
        public void dmfa_is_valid(string identification)
        {
            // Arrange
            DMFA dmfa = new DMFA(identification);

            // Act

            // Assert
            Assert.That(dmfa.IsValid, Is.True);
            Assert.That(dmfa.ElectronicVersion, Is.Not.Null);
            Assert.That(dmfa.PaperVersion, Is.Not.Null);
        }
コード例 #4
0
        public void dmfa_is_strict_valid(string identification)
        {
            // Arrange
            DMFA dmfa = new DMFA(identification);

            // Act

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