public void Run(RegressionEnvironment env) { var resourceManager = env.Container.ResourceManager(); var schemaUriSimpleSchema = resourceManager.ResolveResourceURL("regression/simpleSchema.xsd"); var epl = "@public @buseventtype " + "@XMLSchema(RootElementName='simpleEvent', SchemaResource='" + schemaUriSimpleSchema + "', XPathPropertyExpr=false)" + "@XMLSchemaNamespacePrefix(Prefix='ss', Namespace='samples:schemas:simpleSchema')" + "@XMLSchemaField(Name='customProp', XPath='count(/ss:simpleEvent/ss:nested3/ss:nested4)', Type='number')" + "create xml schema MyEventCreateSchema()"; var path = new RegressionPath(); env.CompileDeploy(epl, path); EventXMLSchemaXPathBacked.RunAssertion(env, false, "MyEventCreateSchema", path); }
public void Run(RegressionEnvironment env) { EventXMLSchemaXPathBacked.RunAssertion(env, false, "XMLSchemaConfigTwo", new RegressionPath()); }