/// <summary> /// initialize with xml element. /// </summary> /// <param name="cp"></param> public CheckPoint(XmlNode cp) { this.mKey = cp.Attributes["Key"].Value; this.mDes = cp.Attributes["Des"].Value ; // this.mInputs = new ParameterCollection(cp.SelectSingleNode("InputParameters")); //this.mExpected = new ParameterCollection(cp.SelectSingleNode("ExpectedValues")); this.mOutputs = new ParameterCollection(cp.SelectSingleNode("Outputs")); this.mMessage = cp.SelectSingleNode("Message").InnerText; this.mResult = (TestResult)Enum.Parse(typeof(TestResult), cp.SelectSingleNode("Result").InnerText); }
public InputDataSet(XmlNode ds) { //attributes foreach (XmlAttribute a in ds.Attributes) { if (a.Name.ToUpper() == "KEY") { this.mKey = a.Value; } else if (a.Name.ToUpper() == "DES") { this.mDes = a.Value; } } this.mInputParameters = new ParameterCollection(ds.SelectSingleNode("InputParameters")); this.mExpectedValues = new ParameterCollection(ds.SelectSingleNode("ExpectedValues")); }