public void ShouldGetValidUriFromElementType() { XmlSchemaElementMoniker uri = new XmlSchemaElementMoniker("String", null); Assert.IsNull(uri.ElementName); Assert.AreEqual <string>("xsd:String", uri.ToString()); }
public void ShouldGetValidUriFromPartsWithSpaces() { XmlSchemaElementMoniker uri = new XmlSchemaElementMoniker(XmlSchemaFilePath, ElementName); Assert.AreEqual<string>(XmlSchemaFilePath, uri.XmlSchemaPath); Assert.AreEqual<string>(ElementName, uri.ElementName); Assert.AreEqual<string>(XmlSchemaElementMonikerFileFormat, uri.ToString()); }
public void ShouldGetValidUriFromPartsWithSpaces() { XmlSchemaElementMoniker uri = new XmlSchemaElementMoniker(XmlSchemaFilePath, ElementName); Assert.AreEqual <string>(XmlSchemaFilePath, uri.XmlSchemaPath); Assert.AreEqual <string>(ElementName, uri.ElementName); Assert.AreEqual <string>(XmlSchemaElementMonikerFileFormat, uri.ToString()); }
public void ShouldGetValidUriFromElementType() { XmlSchemaElementMoniker uri = new XmlSchemaElementMoniker("String", null); Assert.IsNull(uri.ElementName); Assert.AreEqual<string>("xsd:String", uri.ToString()); }