コード例 #1
0
        /*
         * 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);
            }
        }
コード例 #2
0
ファイル: Configuration.cs プロジェクト: mania25/diy-project
 /*
  * 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;
 }