コード例 #1
0
        /// <summary>
        /// Populates this <see cref="TestResultRange"/> instance from the data in the XML. 
        /// </summary>
        /// 
        /// <param name="navigator">
        /// The XML to get the test result range data from.
        /// </param>
        /// 
        /// <exception cref="ArgumentNullException">
        /// The first node in <paramref name="navigator"/> is <b>null</b>.
        /// </exception>
        ///
        public override void ParseXml(XPathNavigator navigator)
        {
            Validator.ThrowIfNavigatorNull(navigator);

            // type
            _rangeType = new CodableValue();
            _rangeType.ParseXml(navigator.SelectSingleNode("type"));

            // range
            _range = new DoubleRange();
            _range.ParseXml(navigator.SelectSingleNode("range"));
        }