/// <summary>
        /// Reads the <paramref name="result"/>.
        /// </summary>
        /// <param name="result">The result from the database read.</param>
        /// <exception cref="HydraRingFileParserException">Thrown when the result
        /// cannot be converted to the output format.</exception>
        private void ReadResult(IDictionary <string, object> result)
        {
            try
            {
                double waveHeight    = Convert.ToDouble(result[waveHeightColumnName]);
                double wavePeriod    = Convert.ToDouble(result[wavePeriodColumnName]);
                double waveAngle     = Convert.ToDouble(result[waveAngleColumnName]);
                double waveDirection = Convert.ToDouble(result[waveDirectionColumnName]);

                Output = new WaveConditionsCalculationOutput(waveHeight, wavePeriod, waveAngle, waveDirection);
            }
            catch (InvalidCastException e)
            {
                throw new HydraRingFileParserException(Resources.WaveConditionsCalculationParser_No_calculated_wave_conditions_found_in_output_file, e);
            }
        }
        public void Constructor_ExpectedValues()
        {
            // Setup
            const double waveAngle      = 3.0;
            const double waveDirection  = 5.0;
            const double waveHeight     = 9.93;
            const double wavePeakPeriod = 18;

            // Call
            var output = new WaveConditionsCalculationOutput(waveHeight, wavePeakPeriod, waveAngle, waveDirection);

            // Assert
            Assert.AreEqual(waveHeight, output.WaveHeight);
            Assert.AreEqual(wavePeakPeriod, output.WavePeakPeriod);
            Assert.AreEqual(waveAngle, output.WaveAngle);
            Assert.AreEqual(waveDirection, output.WaveDirection);
        }