System.Xml.Tests.TC_SchemaSet_Add_URL.v11 C# (CSharp) Method

v11() private method

private v11 ( ) : void
return void
        public void v11()
        {
            XmlSchemaSet sc = new XmlSchemaSet();
            XmlSchema Schema1 = sc.Add("xsdauthor", TestData._XsdAuthor);
            sc.Compile();
            XmlSchema Schema2 = sc.Add("xsdauthor", TestData._XsdAuthorDup);

            // schemas should be successfully added
            Assert.Equal(sc.Count, 2);
            try
            {
                sc.Compile();
            }
            catch (XmlSchemaException)
            {
                Assert.Equal(sc.Count, 2);

                // GLOBALIZATION
                return;
            }
            Assert.True(false);
        }