Example #1
0
        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());
		}
Example #3
0
        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());
		}