Example #1
0
        public void IIPublicRootExtensionNullNullFlavorTest()
        {
            II interaction = new II("1.2.3.4", "extension");

            interaction.NullFlavor  = null;
            interaction.Displayable = true;
            interaction.Scope       = IdentifierScope.BusinessIdentifier;
            Assert.IsTrue(II.IsValidPublicFlavor(interaction));
            Assert.AreEqual(true, interaction.Displayable);
        }
Example #2
0
        public void IIPublicNullFlavorNullExtensionRootDisplayableTest()
        {
            II interaction = new II(null, null);

            interaction.NullFlavor  = NullFlavor.Other;
            interaction.Displayable = true;
            interaction.Scope       = IdentifierScope.BusinessIdentifier;
            Assert.IsTrue(II.IsValidPublicFlavor(interaction));
            Assert.AreEqual(true, interaction.Displayable);
        }
Example #3
0
        public void IIPublicNullFlavorExtensionRootTest()
        {
            // JF: The II Data must be valid for this run, changing the root a n OID
            II interaction = new II("1.3.6.1", "extension");

            interaction.NullFlavor  = NullFlavor.Other;
            interaction.Displayable = true;
            Assert.IsFalse(II.IsValidPublicFlavor(interaction));
            Assert.IsFalse(interaction.Validate());
            Assert.AreEqual(true, interaction.Displayable);
        }
Example #4
0
 public void IIPublicNonOidRootExtensionNullNullFlavorTest()
 {
     try
     {
         II interaction = new II("root", "extension");
         interaction.NullFlavor = null;
         Assert.IsFalse(II.IsValidPublicFlavor(interaction));
     }
     catch (Exception)
     {
         Assert.IsTrue(true);
     }
 }
Example #5
0
 public void IIPublicNonOidRootTest()
 {
     try
     {
         II interaction = new II("root", "extension");
         Assert.AreEqual(null, interaction.Displayable);
         Assert.IsFalse(II.IsValidPublicFlavor(interaction));
         Assert.AreEqual(true, interaction.Displayable);
     }
     catch (Exception)
     {
         Assert.IsTrue(true);
     }
 }