Index: Core/Components/src/Core.Components.DotSpatial.Forms/MapControl.cs =================================================================== diff -u -r5047fad63b41f7f79bc8a1690fc69045e7233666 -ra53a95e1f5f86ce62a66dbca8b71983096c7b766 --- Core/Components/src/Core.Components.DotSpatial.Forms/MapControl.cs (.../MapControl.cs) (revision 5047fad63b41f7f79bc8a1690fc69045e7233666) +++ Core/Components/src/Core.Components.DotSpatial.Forms/MapControl.cs (.../MapControl.cs) (revision a53a95e1f5f86ce62a66dbca8b71983096c7b766) @@ -86,7 +86,10 @@ public void ZoomToAllVisibleLayers() { IEnvelope envelope = CreateEnvelopeForAllVisibleLayers(); - map.ViewExtents = envelope.ToExtent(); + if (!envelope.IsNull) + { + map.ViewExtents = envelope.ToExtent(); + } } public void TogglePanning() Index: Ringtoets/Piping/src/Ringtoets.Piping.Data/Probabilistics/IDistribution.cs =================================================================== diff -u -r4512af7782ee31b36941bb280b54d9da2953dd71 -ra53a95e1f5f86ce62a66dbca8b71983096c7b766 --- Ringtoets/Piping/src/Ringtoets.Piping.Data/Probabilistics/IDistribution.cs (.../IDistribution.cs) (revision 4512af7782ee31b36941bb280b54d9da2953dd71) +++ Ringtoets/Piping/src/Ringtoets.Piping.Data/Probabilistics/IDistribution.cs (.../IDistribution.cs) (revision a53a95e1f5f86ce62a66dbca8b71983096c7b766) @@ -36,7 +36,7 @@ /// /// Gets or sets the standard deviation (square root of the Var(X)) of the distribution. /// - /// Standard deviation is less then or equal to 0. + /// Standard deviation is less than 0. double StandardDeviation { get; set; } } } \ No newline at end of file Index: Ringtoets/Piping/src/Ringtoets.Piping.Data/Probabilistics/LognormalDistribution.cs =================================================================== diff -u -r4512af7782ee31b36941bb280b54d9da2953dd71 -ra53a95e1f5f86ce62a66dbca8b71983096c7b766 --- Ringtoets/Piping/src/Ringtoets.Piping.Data/Probabilistics/LognormalDistribution.cs (.../LognormalDistribution.cs) (revision 4512af7782ee31b36941bb280b54d9da2953dd71) +++ Ringtoets/Piping/src/Ringtoets.Piping.Data/Probabilistics/LognormalDistribution.cs (.../LognormalDistribution.cs) (revision a53a95e1f5f86ce62a66dbca8b71983096c7b766) @@ -72,9 +72,9 @@ } set { - if (value <= 0) + if (value < 0) { - throw new ArgumentOutOfRangeException("value", Resources.StandardDeviation_Should_be_greater_than_zero); + throw new ArgumentOutOfRangeException("value", Resources.StandardDeviation_Should_be_greater_than_or_equal_to_zero); } standardDeviation = value; } Index: Ringtoets/Piping/src/Ringtoets.Piping.Data/Probabilistics/NormalDistribution.cs =================================================================== diff -u -r4512af7782ee31b36941bb280b54d9da2953dd71 -ra53a95e1f5f86ce62a66dbca8b71983096c7b766 --- Ringtoets/Piping/src/Ringtoets.Piping.Data/Probabilistics/NormalDistribution.cs (.../NormalDistribution.cs) (revision 4512af7782ee31b36941bb280b54d9da2953dd71) +++ Ringtoets/Piping/src/Ringtoets.Piping.Data/Probabilistics/NormalDistribution.cs (.../NormalDistribution.cs) (revision a53a95e1f5f86ce62a66dbca8b71983096c7b766) @@ -52,9 +52,9 @@ } set { - if (value <= 0) + if (value < 0) { - throw new ArgumentOutOfRangeException("value", Resources.StandardDeviation_Should_be_greater_than_zero); + throw new ArgumentOutOfRangeException("value", Resources.StandardDeviation_Should_be_greater_than_or_equal_to_zero); } standardDeviation = value; } Index: Ringtoets/Piping/src/Ringtoets.Piping.Data/Properties/Resources.Designer.cs =================================================================== diff -u -r0c2ba533bc2cf8f4693c468e07f73737e2cc6644 -ra53a95e1f5f86ce62a66dbca8b71983096c7b766 --- Ringtoets/Piping/src/Ringtoets.Piping.Data/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision 0c2ba533bc2cf8f4693c468e07f73737e2cc6644) +++ Ringtoets/Piping/src/Ringtoets.Piping.Data/Properties/Resources.Designer.cs (.../Resources.Designer.cs) (revision a53a95e1f5f86ce62a66dbca8b71983096c7b766) @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:4.0.30319.34209 +// Runtime Version:4.0.30319.18444 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -306,11 +306,11 @@ } /// - /// Looks up a localized string similar to Standaard afwijking (σ) moet groter zijn dan 0.. + /// Looks up a localized string similar to Standaard afwijking (σ) moet groter zijn dan of gelijk zijn aan 0.. /// - public static string StandardDeviation_Should_be_greater_than_zero { + public static string StandardDeviation_Should_be_greater_than_or_equal_to_zero { get { - return ResourceManager.GetString("StandardDeviation_Should_be_greater_than_zero", resourceCulture); + return ResourceManager.GetString("StandardDeviation_Should_be_greater_than_or_equal_to_zero", resourceCulture); } } } Index: Ringtoets/Piping/src/Ringtoets.Piping.Data/Properties/Resources.resx =================================================================== diff -u -r0c2ba533bc2cf8f4693c468e07f73737e2cc6644 -ra53a95e1f5f86ce62a66dbca8b71983096c7b766 --- Ringtoets/Piping/src/Ringtoets.Piping.Data/Properties/Resources.resx (.../Resources.resx) (revision 0c2ba533bc2cf8f4693c468e07f73737e2cc6644) +++ Ringtoets/Piping/src/Ringtoets.Piping.Data/Properties/Resources.resx (.../Resources.resx) (revision a53a95e1f5f86ce62a66dbca8b71983096c7b766) @@ -120,8 +120,8 @@ Geen lagen gevonden voor het profiel. - - Standaard afwijking (σ) moet groter zijn dan 0. + + Standaard afwijking (σ) moet groter zijn dan of gelijk zijn aan 0. Percentiel moet in het bereik van [0, 1] vallen. Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/Probabilistics/LognormalDistributionTest.cs =================================================================== diff -u -r394db7c1bd905eb7444b9b2c47bcb5111bb63af6 -ra53a95e1f5f86ce62a66dbca8b71983096c7b766 --- Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/Probabilistics/LognormalDistributionTest.cs (.../LognormalDistributionTest.cs) (revision 394db7c1bd905eb7444b9b2c47bcb5111bb63af6) +++ Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/Probabilistics/LognormalDistributionTest.cs (.../LognormalDistributionTest.cs) (revision a53a95e1f5f86ce62a66dbca8b71983096c7b766) @@ -54,7 +54,7 @@ } [Test] - [TestCase(0)] + [TestCase(0 - 1e-6)] [TestCase(-4)] public void StandardDeviation_SettingNotGreaterThan0_ThrowArgumentOutOfRangeException(double newStd) { @@ -67,7 +67,7 @@ // Assert ArgumentException exception = Assert.Throws(call); string customMessagePart = exception.Message.Split(new []{Environment.NewLine}, StringSplitOptions.None)[0]; - Assert.AreEqual("Standaard afwijking (\u03C3) moet groter zijn dan 0.", customMessagePart); + Assert.AreEqual("Standaard afwijking (\u03C3) moet groter zijn dan of gelijk zijn aan 0.", customMessagePart); } } } \ No newline at end of file Index: Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/Probabilistics/NormalDistributionTest.cs =================================================================== diff -u -r394db7c1bd905eb7444b9b2c47bcb5111bb63af6 -ra53a95e1f5f86ce62a66dbca8b71983096c7b766 --- Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/Probabilistics/NormalDistributionTest.cs (.../NormalDistributionTest.cs) (revision 394db7c1bd905eb7444b9b2c47bcb5111bb63af6) +++ Ringtoets/Piping/test/Ringtoets.Piping.Data.Test/Probabilistics/NormalDistributionTest.cs (.../NormalDistributionTest.cs) (revision a53a95e1f5f86ce62a66dbca8b71983096c7b766) @@ -22,7 +22,7 @@ } [Test] - [TestCase(0)] + [TestCase(0 - 1e-6)] [TestCase(-4)] public void StandardDeviation_SettingNotGreaterThan0_ThrowArgumentOutOfRangeException(double newStd) { @@ -35,7 +35,7 @@ // Assert ArgumentException exception = Assert.Throws(call); string customMessagePart = exception.Message.Split(new []{Environment.NewLine}, StringSplitOptions.None)[0]; - Assert.AreEqual("Standaard afwijking (\u03C3) moet groter zijn dan 0.", customMessagePart); + Assert.AreEqual("Standaard afwijking (\u03C3) moet groter zijn dan of gelijk zijn aan 0.", customMessagePart); } } } \ No newline at end of file