Example #1
0
        public void ExistsReportsMissingSchema()
        {
            // Arrange
            IXmlSchemaRegistry registry = new XmlSchemaRegistry();

            // Act
            var candidate = registry.SchemaExists("test");

            // Assert
            Assert.IsFalse(candidate, "Test schema present");
        }
Example #2
0
        public void ExistsReportsSchema()
        {
            // Arrange
            IXmlSchemaRegistry registry = new XmlSchemaRegistry();

            registry.RegisterSchema("test");

            // Act
            var candidate = registry.SchemaExists("test");

            // Assert
            Assert.IsTrue(candidate, "Test schema not present");
        }