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

v7() private method

private v7 ( ) : void
return void
        public void v7()
        {
            XmlSchemaSet sc = new XmlSchemaSet();
            XmlSchema Schema1 = sc.Add(null, TestData._XsdAuthor);
            XmlSchema Schema2 = sc.Add(null, TestData._XsdAuthor);

            Assert.Equal(sc.Count, 1);
            Assert.Equal(Schema1 != null, true);

            // the second call to add should be ignored with Add returning the first obj
            Assert.Equal(Schema2, Schema1);

            return;
        }