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); }
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); }
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); }
public void IIPublicNonOidRootExtensionNullNullFlavorTest() { try { II interaction = new II("root", "extension"); interaction.NullFlavor = null; Assert.IsFalse(II.IsValidPublicFlavor(interaction)); } catch (Exception) { Assert.IsTrue(true); } }
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); } }