private Parameters.ExpectedValue ReadExpectedValue(string configurationFile, XmlNode node)
        {
            Parameters.ExpectedValue res = new Parameters.ExpectedValue();

            XmlElement element = (XmlElement)node;

            XmlNodeList xmlCharacter = element.GetElementsByTagName(Parameters.ExpectedValue.KeyCharacter);

            if (xmlCharacter != null && xmlCharacter.Count > 0)
            {
                res.Character = xmlCharacter[0].InnerText;
            }
            XmlNodeList xmlValues = element.GetElementsByTagName(Parameters.ExpectedValue.KeyListConstants);

            if (xmlValues != null && xmlValues.Count > 0)
            {
                XmlElement elementValues = (XmlElement)xmlValues[0];

                XmlNodeList xmlData = elementValues.GetElementsByTagName(Parameters.ExpectedValue.KeyEntryConstant);

                if (xmlData != null && xmlData.Count > 0)
                {
                    for (int c = 0; c < xmlData.Count; c++)
                    {
                        res.Constants.Add(xmlData[c].InnerText);
                    }
                }
            }

            return(res);
        }
Example #2
0
 public BaseParameter()
 {
     ExpectedValue = new ExpectedValue();
 }