System.Xml.Tests.TC_SchemaSet_Remove.v10 C# (CSharp) Метод

v10() приватный Метод

private v10 ( ) : void
Результат void
        public void v10()
        {
            try
            {
                XmlSchemaSet sc = new XmlSchemaSet();
                sc.XmlResolver = new XmlUrlResolver();
                sc.Add(null, Path.Combine(TestData._Root, "import_v16_b.xsd"));
                XmlSchema parent = sc.Add(null, Path.Combine(TestData._Root, "import_v16_a.xsd"));
                sc.Compile();
                sc.Remove(parent);
                CError.Compare(sc.Count, 1, "Count");
                CError.Compare(sc.Contains("ns-b"), true, "Contains");
                return;
            }
            catch (XmlSchemaException e)
            {
                _output.WriteLine("Exception : " + e.Message);
            }
            Assert.True(false);
        }