コード例 #1
0
        public void ShouldGetValidUriFromElementType()
        {
            XmlSchemaElementMoniker uri = new XmlSchemaElementMoniker("String", null);

            Assert.IsNull(uri.ElementName);
            Assert.AreEqual <string>("xsd:String", uri.ToString());
        }
コード例 #2
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());
		}
コード例 #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());
        }
コード例 #4
0
		public void ShouldGetValidUriFromElementType()
		{
			XmlSchemaElementMoniker uri = new XmlSchemaElementMoniker("String", null);

			Assert.IsNull(uri.ElementName);
			Assert.AreEqual<string>("xsd:String", uri.ToString());
		}