public void ReadValue_ForNotMatchingValue_ThrowsException()
        {
            var reader = new DoubleValueReader();

            var xmlElement = new XElement("string");

            Assert.Throws <ParserException>(() => reader.ReadValue(xmlElement));
        }
        public void ReadValue_FromElementWithDoubleValue_ReturnsCorrectDoubleValue()
        {
            var reader = new DoubleValueReader();

            var xmlElement = new XElement("double", "1234.56");

            var value = reader.ReadValue(xmlElement);

            Assert.IsType <DoubleValue>(value);
            Assert.Equal(1234.56, value.GetValue <double>());
        }