Index: Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.IO.Test/Configurations/GrassCoverErosionInwardsCalculationConfigurationImporterTest.cs =================================================================== diff -u -ra4e3b2745a48598260107bb5bfca7485205cdcc2 -ref89bf29a08cb1bd5ad8ff6a7f55cbaa9b17869f --- Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.IO.Test/Configurations/GrassCoverErosionInwardsCalculationConfigurationImporterTest.cs (.../GrassCoverErosionInwardsCalculationConfigurationImporterTest.cs) (revision a4e3b2745a48598260107bb5bfca7485205cdcc2) +++ Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.IO.Test/Configurations/GrassCoverErosionInwardsCalculationConfigurationImporterTest.cs (.../GrassCoverErosionInwardsCalculationConfigurationImporterTest.cs) (revision ef89bf29a08cb1bd5ad8ff6a7f55cbaa9b17869f) @@ -343,7 +343,7 @@ // Assert Assert.IsTrue(successful); - var expectedCalculation = new GrassCoverErosionInwardsCalculationScenario + var expectedCalculation = new GrassCoverErosionInwardsCalculationScenario(double.NaN) { Name = "Berekening 1", InputParameters = @@ -377,7 +377,7 @@ TestHelper.AssertLogMessageIsGenerated(call, $"Gegevens zijn geïmporteerd vanuit bestand '{filePath}'.", 1); Assert.IsTrue(successful); - var expectedCalculation = new GrassCoverErosionInwardsCalculationScenario + var expectedCalculation = new GrassCoverErosionInwardsCalculationScenario(double.NaN) { Name = "Calculation", Contribution = (RoundedDouble) 0.8765 @@ -408,7 +408,7 @@ TestHelper.AssertLogMessageIsGenerated(call, $"Gegevens zijn geïmporteerd vanuit bestand '{filePath}'.", 1); Assert.IsTrue(successful); - var expectedCalculation = new GrassCoverErosionInwardsCalculationScenario + var expectedCalculation = new GrassCoverErosionInwardsCalculationScenario(double.NaN) { Name = "Calculation", IsRelevant = false @@ -438,7 +438,7 @@ // Assert Assert.IsTrue(successful); - var expectedCalculation = new GrassCoverErosionInwardsCalculationScenario + var expectedCalculation = new GrassCoverErosionInwardsCalculationScenario(double.NaN) { Name = "Berekening 1", InputParameters = @@ -474,7 +474,7 @@ // Assert Assert.IsTrue(successful); - var expectedCalculation = new GrassCoverErosionInwardsCalculationScenario + var expectedCalculation = new GrassCoverErosionInwardsCalculationScenario(double.NaN) { Name = "Berekening 1" }; @@ -503,7 +503,7 @@ // Assert Assert.IsTrue(successful); - var expectedCalculation = new GrassCoverErosionInwardsCalculationScenario + var expectedCalculation = new GrassCoverErosionInwardsCalculationScenario(double.NaN) { Name = "Berekening 1", InputParameters = @@ -565,7 +565,7 @@ Assert.IsTrue(successful); - var expectedCalculation = new GrassCoverErosionInwardsCalculationScenario + var expectedCalculation = new GrassCoverErosionInwardsCalculationScenario(double.NaN) { Name = "Berekening 1", InputParameters = Index: Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/ExportInfos/GrassCoverErosionInwardsCalculationContextExportInfoTest.cs =================================================================== diff -u -r886b86a66f072735567285a3489923186c236c32 -ref89bf29a08cb1bd5ad8ff6a7f55cbaa9b17869f --- Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/ExportInfos/GrassCoverErosionInwardsCalculationContextExportInfoTest.cs (.../GrassCoverErosionInwardsCalculationContextExportInfoTest.cs) (revision 886b86a66f072735567285a3489923186c236c32) +++ Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/ExportInfos/GrassCoverErosionInwardsCalculationContextExportInfoTest.cs (.../GrassCoverErosionInwardsCalculationContextExportInfoTest.cs) (revision ef89bf29a08cb1bd5ad8ff6a7f55cbaa9b17869f) @@ -88,7 +88,7 @@ var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - var context = new GrassCoverErosionInwardsCalculationScenarioContext(new GrassCoverErosionInwardsCalculationScenario(), + var context = new GrassCoverErosionInwardsCalculationScenarioContext(new GrassCoverErosionInwardsCalculationScenario(double.NaN), new CalculationGroup(), new GrassCoverErosionInwardsFailureMechanism(), assessmentSection); @@ -107,7 +107,7 @@ var assessmentSection = mocks.Stub(); mocks.ReplayAll(); - var context = new GrassCoverErosionInwardsCalculationScenarioContext(new GrassCoverErosionInwardsCalculationScenario(), + var context = new GrassCoverErosionInwardsCalculationScenarioContext(new GrassCoverErosionInwardsCalculationScenario(double.NaN), new CalculationGroup(), new GrassCoverErosionInwardsFailureMechanism(), assessmentSection); Index: Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/ExportInfos/GrassCoverErosionInwardsCalculationGroupContextExportInfoTest.cs =================================================================== diff -u -r886b86a66f072735567285a3489923186c236c32 -ref89bf29a08cb1bd5ad8ff6a7f55cbaa9b17869f --- Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/ExportInfos/GrassCoverErosionInwardsCalculationGroupContextExportInfoTest.cs (.../GrassCoverErosionInwardsCalculationGroupContextExportInfoTest.cs) (revision 886b86a66f072735567285a3489923186c236c32) +++ Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/ExportInfos/GrassCoverErosionInwardsCalculationGroupContextExportInfoTest.cs (.../GrassCoverErosionInwardsCalculationGroupContextExportInfoTest.cs) (revision ef89bf29a08cb1bd5ad8ff6a7f55cbaa9b17869f) @@ -137,7 +137,7 @@ if (hasCalculation) { - calculationGroup.Children.Add(new GrassCoverErosionInwardsCalculation()); + calculationGroup.Children.Add(new GrassCoverErosionInwardsCalculation(double.NaN)); } var context = new GrassCoverErosionInwardsCalculationGroupContext(calculationGroup, Index: Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/FileImporters/GrassCoverErosionInwardsDikeProfileReplaceDataStrategyTest.cs =================================================================== diff -u -ra4e3b2745a48598260107bb5bfca7485205cdcc2 -ref89bf29a08cb1bd5ad8ff6a7f55cbaa9b17869f --- Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/FileImporters/GrassCoverErosionInwardsDikeProfileReplaceDataStrategyTest.cs (.../GrassCoverErosionInwardsDikeProfileReplaceDataStrategyTest.cs) (revision a4e3b2745a48598260107bb5bfca7485205cdcc2) +++ Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/FileImporters/GrassCoverErosionInwardsDikeProfileReplaceDataStrategyTest.cs (.../GrassCoverErosionInwardsDikeProfileReplaceDataStrategyTest.cs) (revision ef89bf29a08cb1bd5ad8ff6a7f55cbaa9b17869f) @@ -44,10 +44,10 @@ public void Constructor_FailureMechanismNull_ThrowsArgumentNullException() { // Call - TestDelegate call = () => new GrassCoverErosionInwardsDikeProfileReplaceDataStrategy(null); + void Call() => new GrassCoverErosionInwardsDikeProfileReplaceDataStrategy(null); // Assert - var exception = Assert.Throws(call); + var exception = Assert.Throws(Call); Assert.AreEqual("failureMechanism", exception.ParamName); } @@ -202,7 +202,7 @@ // Setup DikeProfile existingDikeProfile = DikeProfileTestFactory.CreateDikeProfile("test", "ID1"); - var calculation = new GrassCoverErosionInwardsCalculation + var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) { InputParameters = { Index: Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/FileImporters/GrassCoverErosionInwardsDikeProfileUpdateDataStrategyTest.cs =================================================================== diff -u -ra4e3b2745a48598260107bb5bfca7485205cdcc2 -ref89bf29a08cb1bd5ad8ff6a7f55cbaa9b17869f --- Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/FileImporters/GrassCoverErosionInwardsDikeProfileUpdateDataStrategyTest.cs (.../GrassCoverErosionInwardsDikeProfileUpdateDataStrategyTest.cs) (revision a4e3b2745a48598260107bb5bfca7485205cdcc2) +++ Riskeer/GrassCoverErosionInwards/test/Riskeer.GrassCoverErosionInwards.Plugin.Test/FileImporters/GrassCoverErosionInwardsDikeProfileUpdateDataStrategyTest.cs (.../GrassCoverErosionInwardsDikeProfileUpdateDataStrategyTest.cs) (revision ef89bf29a08cb1bd5ad8ff6a7f55cbaa9b17869f) @@ -319,7 +319,7 @@ { // Setup DikeProfile profileToBeRemoved = DikeProfileTestFactory.CreateDikeProfile("Removed profile", "removed profile ID"); - var calculation = new GrassCoverErosionInwardsCalculation + var calculation = new GrassCoverErosionInwardsCalculation(double.NaN) { InputParameters = { @@ -359,7 +359,7 @@ { // Setup DikeProfile affectedProfile = DikeProfileTestFactory.CreateDikeProfile("Profile to be updated", "ID of updated profile"); - var affectedCalculation = new GrassCoverErosionInwardsCalculation + var affectedCalculation = new GrassCoverErosionInwardsCalculation(double.NaN) { InputParameters = { @@ -371,7 +371,7 @@ const string unaffectedProfileName = "Unaffected Profile"; const string unaffectedProfileId = "unaffected profile Id"; DikeProfile unaffectedProfile = DikeProfileTestFactory.CreateDikeProfile(unaffectedProfileName, unaffectedProfileId); - var unaffectedCalculation = new GrassCoverErosionInwardsCalculation + var unaffectedCalculation = new GrassCoverErosionInwardsCalculation(double.NaN) { InputParameters = { @@ -426,7 +426,7 @@ { // Setup DikeProfile removedProfile = DikeProfileTestFactory.CreateDikeProfile("Profile to be removed", "ID of removed profile"); - var affectedCalculation = new GrassCoverErosionInwardsCalculation + var affectedCalculation = new GrassCoverErosionInwardsCalculation(double.NaN) { InputParameters = { @@ -438,7 +438,7 @@ const string unaffectedProfileName = "Unaffected Profile"; const string unaffectedProfileId = "unaffected profile Id"; DikeProfile unaffectedProfile = DikeProfileTestFactory.CreateDikeProfile(unaffectedProfileName, unaffectedProfileId); - var unaffectedCalculation = new GrassCoverErosionInwardsCalculation + var unaffectedCalculation = new GrassCoverErosionInwardsCalculation(double.NaN) { InputParameters = { @@ -488,7 +488,7 @@ { // Setup DikeProfile affectedProfile = DikeProfileTestFactory.CreateDikeProfile("Profile to be updated", "ID of updated profile"); - var affectedCalculation = new GrassCoverErosionInwardsCalculation + var affectedCalculation = new GrassCoverErosionInwardsCalculation(double.NaN) { InputParameters = { @@ -537,7 +537,7 @@ }; DikeProfile affectedProfile = DikeProfileTestFactory.CreateDikeProfile(geometry, id); - var affectedCalculation = new GrassCoverErosionInwardsCalculation + var affectedCalculation = new GrassCoverErosionInwardsCalculation(double.NaN) { InputParameters = {