//================= Helper methods =================================== private Query Parse(String xmlFileName) { using Stream xmlStream = typeof(TestParser).getResourceAsStream(xmlFileName); Query result = builder.Parse(xmlStream); return(result); }
//================= Helper methods =================================== private Query Parse(String xmlFileName) { //Stream xmlStream = typeof(TestParser).getResourceAsStream(xmlFileName); using (Stream xmlStream = typeof(TestParser).Assembly.GetManifestResourceStream(RESOURCE_PATH + xmlFileName)) { Query result = builder.Parse(xmlStream); return(result); } }