/* * Reading params successfully returns true. Unless returns * false. The retrieved Xml fragment is returning in xmlElem. */ public static XmlElement TestSetUp(string testFixtureName, string testName) { XMLReader xmlReader = new XMLReader("../../AllTestData.xml"); XmlElement xmlElem = xmlReader.GetXmlElement(testFixtureName, testName); if (xmlElem == null) { throw new ConfigNotFoundException(testFixtureName + ":" + testName); } else { return(xmlElem); } }
/* * Reading params successfully returns true. Unless returns * false. The retrieved Xml fragment is returning in xmlElem. */ public static XmlElement TestSetUp(string testFixtureName, string testName) { XMLReader xmlReader = new XMLReader("../../AllTestData.xml"); XmlElement xmlElem = xmlReader.GetXmlElement(testFixtureName, testName); if (xmlElem == null) throw new ConfigNotFoundException(testFixtureName + ":" + testName); else return xmlElem; }