Index: Riskeer/ClosingStructures/test/Riskeer.ClosingStructures.Forms.Test/PropertyClasses/ClosingStructuresInputContextPropertiesTest.cs =================================================================== diff -u -rf677c258a750c0212a03a81cbdab50ae9d67c05f -rf190a02cb381f09b13c8bca64b84ab672b4406c6 --- Riskeer/ClosingStructures/test/Riskeer.ClosingStructures.Forms.Test/PropertyClasses/ClosingStructuresInputContextPropertiesTest.cs (.../ClosingStructuresInputContextPropertiesTest.cs) (revision f677c258a750c0212a03a81cbdab50ae9d67c05f) +++ Riskeer/ClosingStructures/test/Riskeer.ClosingStructures.Forms.Test/PropertyClasses/ClosingStructuresInputContextPropertiesTest.cs (.../ClosingStructuresInputContextPropertiesTest.cs) (revision f190a02cb381f09b13c8bca64b84ab672b4406c6) @@ -704,208 +704,182 @@ public void FactorStormDurationOpenStructure_Always_InputChangedAndObservablesNotified() { RoundedDouble factor = new Random(21).NextRoundedDouble(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.FactorStormDurationOpenStructure = factor); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.FactorStormDurationOpenStructure = factor); } [Test] public void InflowModelType_Always_InputChangedAndObservablesNotified() { var inflowModelType = new Random(21).NextEnumValue(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.InflowModelType = inflowModelType); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.InflowModelType = inflowModelType); } [Test] public void ProbabilityOpenStructureBeforeFlooding_Always_InputChangedAndObservablesNotified() { var random = new Random(21); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.ProbabilityOpenStructureBeforeFlooding = random.NextDouble()); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.ProbabilityOpenStructureBeforeFlooding = random.NextDouble()); } [Test] public void FailureProbabilityOpenStructure_Always_InputChangedAndObservablesNotified() { var random = new Random(21); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.FailureProbabilityOpenStructure = random.NextDouble()); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.FailureProbabilityOpenStructure = random.NextDouble()); } [Test] public void FailureProbabilityReparation_Always_InputChangedAndObservablesNotified() { var random = new Random(21); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.FailureProbabilityReparation = random.NextDouble()); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.FailureProbabilityReparation = random.NextDouble()); } [Test] public void IdenticalApertures_Always_InputChangedAndObservablesNotified() { int propertiesIdenticalApertures = new Random(21).Next(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.IdenticalApertures = propertiesIdenticalApertures); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.IdenticalApertures = propertiesIdenticalApertures); } [Test] public void InsideWaterLevel_MeanChanged_InputChangedAndObservablesNotified() { RoundedDouble newMean = new Random(21).NextRoundedDouble(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.InsideWaterLevel.Mean = newMean); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.InsideWaterLevel.Mean = newMean); } [Test] public void WidthFlowApertures_MeanChanged_InputChangedAndObservablesNotified() { RoundedDouble newMean = new Random(21).NextRoundedDouble(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.WidthFlowApertures.Mean = newMean); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.WidthFlowApertures.Mean = newMean); } [Test] public void ThresholdHeightOpenWeir_MeanChanged_InputChangedAndObservablesNotified() { RoundedDouble newMean = new Random(21).NextRoundedDouble(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.ThresholdHeightOpenWeir.Mean = newMean); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.ThresholdHeightOpenWeir.Mean = newMean); } [Test] public void AreaFlowApertures_MeanChanged_InputChangedAndObservablesNotified() { RoundedDouble newMean = new Random(21).NextRoundedDouble(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.AreaFlowApertures.Mean = newMean); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.AreaFlowApertures.Mean = newMean); } [Test] public void ModelFactorSuperCriticalFlow_MeanChanged_InputChangedAndObservablesNotified() { RoundedDouble newMean = new Random(21).NextRoundedDouble(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.ModelFactorSuperCriticalFlow.Mean = newMean); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.ModelFactorSuperCriticalFlow.Mean = newMean); } [Test] public void DrainCoefficient_MeanChanged_InputChangedAndObservablesNotified() { RoundedDouble newMean = new Random(21).NextRoundedDouble(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.DrainCoefficient.Mean = newMean); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.DrainCoefficient.Mean = newMean); } [Test] public void DrainCoefficient_StandardDeviationChanged_InputChangedAndObservablesNotified() { RoundedDouble newStandardDeviation = new Random(21).NextRoundedDouble(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.DrainCoefficient.StandardDeviation = newStandardDeviation); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.DrainCoefficient.StandardDeviation = newStandardDeviation); } [Test] public void LevelCrestStructureNotClosing_MeanChanged_InputChangedAndObservablesNotified() { RoundedDouble newMean = new Random(21).NextRoundedDouble(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.LevelCrestStructureNotClosing.Mean = newMean); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.LevelCrestStructureNotClosing.Mean = newMean); } [Test] public void Structure_Always_InputChangedAndObservablesNotified() { var structure = new TestClosingStructure(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.Structure = structure); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.Structure = structure); } [Test] public void StructureNormalOrientation_Always_InputChangedAndObservablesNotified() { RoundedDouble orientation = new Random(21).NextRoundedDouble(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.StructureNormalOrientation = orientation); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.StructureNormalOrientation = orientation); } [Test] public void FailureProbabilityStructureWithErosion_Always_InputChangedAndObservablesNotified() { var random = new Random(21); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.FailureProbabilityStructureWithErosion = random.NextDouble()); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.FailureProbabilityStructureWithErosion = random.NextDouble()); } [Test] public void SelectedHydraulicBoundaryLocation_Always_InputChangedAndObservablesNotified() { var location = new SelectableHydraulicBoundaryLocation(new TestHydraulicBoundaryLocation(), null); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.SelectedHydraulicBoundaryLocation = location); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.SelectedHydraulicBoundaryLocation = location); } [Test] public void ForeshoreProfile_Always_InputChangedAndObservablesNotified() { var profile = new TestForeshoreProfile(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.ForeshoreProfile = profile); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.ForeshoreProfile = profile); } [Test] public void UseBreakWater_Always_InputChangedAndObservablesNotified() { bool useBreakWater = new Random(21).NextBoolean(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.UseBreakWater.UseBreakWater = useBreakWater); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.UseBreakWater.UseBreakWater = useBreakWater); } [Test] public void UseForeshore_Always_InputChangedAndObservablesNotified() { bool useForeshore = new Random(21).NextBoolean(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.UseForeshore.UseForeshore = useForeshore); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.UseForeshore.UseForeshore = useForeshore); } [Test] public void FlowWidthAtBottomProtection_MeanChanged_InputChangedAndObservablesNotified() { RoundedDouble newMean = new Random(21).NextRoundedDouble(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.FlowWidthAtBottomProtection.Mean = newMean); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.FlowWidthAtBottomProtection.Mean = newMean); } [Test] public void StorageStructureArea_MeanChanged_InputChangedAndObservablesNotified() { RoundedDouble newMean = new Random(21).NextRoundedDouble(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.StorageStructureArea.Mean = newMean); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.StorageStructureArea.Mean = newMean); } [Test] public void AllowedLevelIncreaseStorage_MeanChanged_InputChangedAndObservablesNotified() { RoundedDouble newMean = new Random(21).NextRoundedDouble(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.AllowedLevelIncreaseStorage.Mean = newMean); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.AllowedLevelIncreaseStorage.Mean = newMean); } [Test] public void CriticalOvertoppingDischarge_MeanChanged_InputChangedAndObservablesNotified() { RoundedDouble newMean = new Random(21).NextRoundedDouble(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.CriticalOvertoppingDischarge.Mean = newMean); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.CriticalOvertoppingDischarge.Mean = newMean); } [Test] public void StormDuration_MeanChanged_InputChangedAndObservablesNotified() { RoundedDouble newMean = new Random(21).NextRoundedDouble(); - SetPropertyAndVerifyNotificationsAndOutput( - properties => properties.StormDuration.Mean = newMean); + SetPropertyAndVerifyNotificationsAndOutput(properties => properties.StormDuration.Mean = newMean); } [Test]