public void Read_ValidConfigurationWithFullCalculation_ReturnExpectedReadWaveConditionsCalculation()
        {
            // Setup
            string filePath = Path.Combine(testDirectoryPath, "validConfigurationFullCalculation.xml");
            var    reader   = new GrassCoverErosionOutwardsWaveConditionsCalculationConfigurationReader(filePath);

            // Call
            IEnumerable <IConfigurationItem> readItems = reader.Read().ToArray();

            // Assert
            var configuration = (GrassCoverErosionOutwardsWaveConditionsCalculationConfiguration)readItems.Single();

            AssertConfiguration(configuration);
            Assert.AreEqual(0.1, configuration.TargetProbability);
            Assert.AreEqual(ConfigurationGrassCoverErosionOutwardsCalculationType.WaveImpact, configuration.CalculationType);
        }
        public void Read_ValidPreviousVersionConfigurationWithFullCalculation_ReturnExpectedReadCalculation(
            string fileName, ConfigurationGrassCoverErosionOutwardsCalculationType calculationType)
        {
            // Setup
            string filePath = Path.Combine(testDirectoryPath, fileName);
            var    reader   = new GrassCoverErosionOutwardsWaveConditionsCalculationConfigurationReader(filePath);

            // Call
            IEnumerable <IConfigurationItem> readConfigurationItems = reader.Read().ToArray();

            // Assert
            var configuration = (GrassCoverErosionOutwardsWaveConditionsCalculationConfiguration)readConfigurationItems.Single();

            AssertConfiguration(configuration);
            Assert.IsNull(configuration.TargetProbability);
            Assert.AreEqual(calculationType, configuration.CalculationType);
        }