Esempio n. 1
0
        public void Start(MethodTestData data)
        {
            dlgMethodTest dlg = new dlgMethodTest();

            dlg.LoadData(data);
            dlg.TopMost = true;
            dlg.ShowDialog(null);
        }
Esempio n. 2
0
        public bool LoadData(ITestData test)
        {
            data = (MethodTestData)test;
            XmlDocument doc = new XmlDocument();

            doc.LoadXml(data.FullContents);
            testData = doc.DocumentElement.SelectSingleNode(data.XPath);
            if (testData == null)
            {
                throw new MathException(string.Format(System.Globalization.CultureInfo.InvariantCulture, "Invalid xpath '{0}' for the test node", data.XPath));
            }
            return(true);
        }