Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/DikesDesign/SurfaceLineHeightAdapterTest.cs =================================================================== diff -u -r3520 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/DikesDesign/SurfaceLineHeightAdapterTest.cs (.../SurfaceLineHeightAdapterTest.cs) (revision 3520) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/DikesDesign/SurfaceLineHeightAdapterTest.cs (.../SurfaceLineHeightAdapterTest.cs) (revision 3875) @@ -984,7 +984,6 @@ } [Test] - [ExpectedException(typeof(SurfaceLineAdapterException))] public void HeightAdaptionThrowsExceptionIfSurfaceLineIsNotLongEnough() { var surfaceLine = FactoryForSurfaceLines.CreateRealisticSurfaceLineForHeightAdapter(); @@ -993,8 +992,7 @@ var pointSurfaceLevelInside = new GeometryPoint { X = 40, Z = 12 }; // Set surfacelevelinside just beside ditch to force exception surfaceLine.EnsurePointOfType(pointSurfaceLevelInside.X, pointSurfaceLevelInside.Z, CharacteristicPointType.SurfaceLevelInside); var surfaceLineAdapter = new SurfaceLineHeightAdapter(surfaceLine, location, 0); - var newSurfaceLine = surfaceLineAdapter.ConstructNewSurfaceLine(newDikeHeight); - Assert.Null(newSurfaceLine); + Assert.That(() => surfaceLineAdapter.ConstructNewSurfaceLine(newDikeHeight), Throws.InstanceOf()); } /// Index: DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/OperationalPulauTekongTests.cs =================================================================== diff -u -r3520 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/OperationalPulauTekongTests.cs (.../OperationalPulauTekongTests.cs) (revision 3520) +++ DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/OperationalPulauTekongTests.cs (.../OperationalPulauTekongTests.cs) (revision 3875) @@ -39,7 +39,8 @@ private const double novalue = -999.0; private const string stabilityOutsideFactor = "StabilityOutsideFactor"; - [Test, Ignore] + [Test] + [Ignore("")] [Category(Categories.WorkInProgress)] [TestCase(@"PulauTekong.InputFile.xml", 2.486106, 2.114159)] [TestCase(@"PulauTekong.InputFile-NoValues.xml", novalue, novalue)] Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/DikesDesign/SurfaceLineShoulderAdapterTest.cs =================================================================== diff -u -r3520 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/DikesDesign/SurfaceLineShoulderAdapterTest.cs (.../SurfaceLineShoulderAdapterTest.cs) (revision 3520) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/DikesDesign/SurfaceLineShoulderAdapterTest.cs (.../SurfaceLineShoulderAdapterTest.cs) (revision 3875) @@ -35,7 +35,6 @@ const double pointCoordinateTolerance = 0.001; [Test] - [ExpectedException(typeof(SurfaceLineAdapterException))] public void ThrowsAnExceptionWhenNoSurfaceLevelPointExist() { var surfaceLine = new SurfaceLine2 @@ -55,7 +54,7 @@ surfaceLine.EnsurePointOfType(pointAtTopRiver.X, pointAtTopRiver.Z, CharacteristicPointType.DikeTopAtRiver); surfaceLine.EnsurePointOfType(pointAtTopPolder.X, pointAtTopPolder.Z, CharacteristicPointType.DikeTopAtPolder); surfaceLine.EnsurePointOfType(pointAtToePolder.X, pointAtToePolder.Z, CharacteristicPointType.DikeToeAtPolder); - var surfaceLineAdapter = new SurfaceLineShoulderAdapter(surfaceLine, location, 0); + Assert.That(() => new SurfaceLineShoulderAdapter(surfaceLine, location, 0), Throws.InstanceOf()); } /// @@ -962,7 +961,6 @@ } [Test] - [ExpectedException(typeof(SurfaceLineAdapterException))] public void ThrowsAnExceptionWhenNewShoulderDoesNotFit() { var surfaceLine = new SurfaceLine2 @@ -987,11 +985,10 @@ surfaceLine.EnsurePointOfType(pointAtToePolder.X, pointAtToePolder.Z, CharacteristicPointType.DikeToeAtPolder); surfaceLine.EnsurePointOfType(pointAtSurfaceLevelInside.X, pointAtSurfaceLevelInside.Z, CharacteristicPointType.SurfaceLevelInside); var surfaceLineAdapter = new SurfaceLineShoulderAdapter(surfaceLine, location, 0); - var line = surfaceLineAdapter.ConstructNewSurfaceLine(shoulderLength, shoulderHeight, false); + Assert.That(() => surfaceLineAdapter.ConstructNewSurfaceLine(shoulderLength, shoulderHeight, false), Throws.InstanceOf()); } [Test] - [ExpectedException(typeof(SurfaceLineAdapterException))] public void ThrowsAnExceptionWhenNewShoulderDoesJustNotFit() { var surfaceLine = new SurfaceLine2 @@ -1017,11 +1014,10 @@ surfaceLine.EnsurePointOfType(pointAtSurfaceLevelInside.X, pointAtSurfaceLevelInside.Z, CharacteristicPointType.SurfaceLevelInside); var surfaceLineAdapter = new SurfaceLineShoulderAdapter(surfaceLine, location, 0); - var line = surfaceLineAdapter.ConstructNewSurfaceLine(shoulderLength, shoulderHeight, false); + Assert.That(() => surfaceLineAdapter.ConstructNewSurfaceLine(shoulderLength, shoulderHeight, false), Throws.InstanceOf()); } [Test] - [ExpectedException(typeof(SurfaceLineAdapterException))] public void ThrowsAnExceptionWhenNewShoulderDoesJustNotFitWithDitch() { var surfaceLine = new SurfaceLine2 @@ -1060,7 +1056,7 @@ surfaceLine.EnsurePointOfType(apoint3.X, apoint3.Z, null); surfaceLine.EnsurePointOfType(pointAtSurfaceLevelInside.X, pointAtSurfaceLevelInside.Z, CharacteristicPointType.SurfaceLevelInside); var surfaceLineAdapter = new SurfaceLineShoulderAdapter(surfaceLine, location, 0); - var line = surfaceLineAdapter.ConstructNewSurfaceLine(shoulderLength, shoulderHeight, false); + Assert.That(() => surfaceLineAdapter.ConstructNewSurfaceLine(shoulderLength, shoulderHeight, false), Throws.InstanceOf()); } [Test] @@ -1213,7 +1209,6 @@ } [Test] - [ExpectedException(typeof(SurfaceLineAdapterException))] public void AdaptedSurfaceLineWithNewVerySteepTopSlopeAngle() { var surfaceLine = new SurfaceLine2 @@ -1242,7 +1237,7 @@ var surfaceLineAdapter = new SurfaceLineShoulderAdapter(surfaceLine, location, 0); surfaceLineAdapter.MaxShoulderLevel = 0.5 * (surfaceLine.CharacteristicPoints.GetGeometryPoint(CharacteristicPointType.DikeTopAtPolder).Z - surfaceLine.CharacteristicPoints.GetGeometryPoint(CharacteristicPointType.DikeToeAtPolder).Z) + surfaceLine.CharacteristicPoints.GetGeometryPoint(CharacteristicPointType.DikeToeAtPolder).Z; - var adaptedSurfaceLine = surfaceLineAdapter.ConstructNewSurfaceLine(shoulderLength, shoulderHeight, false); + Assert.That(() => surfaceLineAdapter.ConstructNewSurfaceLine(shoulderLength, shoulderHeight, false), Throws.InstanceOf()); // TODO (The) what to do with the outcommented code? // Dike top polder now coincides with the shoulder base. // var expectedBasePoint = GeometryPoint.CreateNewXZPoint(2, 1); @@ -1342,7 +1337,6 @@ } [Test] - [ExpectedException(typeof(SurfaceLineAdapterException))] public void AdaptedSurfaceLineWithNewBaseSlopeAngleFarTooShallow() { var surfaceLine = new SurfaceLine2 @@ -1371,7 +1365,7 @@ var surfaceLineAdapter = new SurfaceLineShoulderAdapter(surfaceLine, location, 0); surfaceLineAdapter.MaxShoulderLevel = 0.5 * (surfaceLine.CharacteristicPoints.GetGeometryPoint(CharacteristicPointType.DikeTopAtPolder).Z - surfaceLine.CharacteristicPoints.GetGeometryPoint(CharacteristicPointType.DikeToeAtPolder).Z) + surfaceLine.CharacteristicPoints.GetGeometryPoint(CharacteristicPointType.DikeToeAtPolder).Z; - var adaptedSurfaceLine = surfaceLineAdapter.ConstructNewSurfaceLine(shoulderLength, shoulderHeight, false); + Assert.That(() => surfaceLineAdapter.ConstructNewSurfaceLine(shoulderLength, shoulderHeight, false), Throws.InstanceOf()); } [Test] @@ -1505,7 +1499,6 @@ } [Test] - [ExpectedException(typeof(SurfaceLineAdapterException))] public void AdaptedSurfaceLineWithTooLargeNewMinDistanceFromToe() { var surfaceLine = new SurfaceLine2 @@ -1544,7 +1537,7 @@ surfaceLine.EnsurePointOfType(apoint2.X, apoint2.Z, null); surfaceLine.EnsurePointOfType(pointAtSurfaceLevelInside.X, pointAtSurfaceLevelInside.Z, CharacteristicPointType.SurfaceLevelInside); var surfaceLineAdapter = new SurfaceLineShoulderAdapter(surfaceLine, location, 0) { SlopeOfNewShoulder = 2 }; - var adaptedSurfaceLine = surfaceLineAdapter.ConstructNewSurfaceLine(shoulderLength, shoulderHeight, false); + Assert.That(() => surfaceLineAdapter.ConstructNewSurfaceLine(shoulderLength, shoulderHeight, false), Throws.InstanceOf()); } [Test] @@ -1618,7 +1611,6 @@ } [Test] - [ExpectedException(typeof(SurfaceLineAdapterException))] public void AdaptedSurfaceLineWithNewMinDistanceFromToeAndNewDefinitionFailsBecausePolderLevelIsTooHigh() { var surfaceLine = new SurfaceLine2 @@ -1662,7 +1654,7 @@ surfaceLine.EnsurePointOfType(apoint2.X, apoint2.Z, null); surfaceLine.EnsurePointOfType(pointAtSurfaceLevelInside.X, pointAtSurfaceLevelInside.Z, CharacteristicPointType.SurfaceLevelInside); var surfaceLineAdapter = new SurfaceLineShoulderAdapter(surfaceLine, location, polderLevel) { SlopeOfNewShoulder = 2 }; - var adaptedSurfaceLine = surfaceLineAdapter.ConstructNewSurfaceLine(shoulderLength, shoulderHeight, false); + Assert.That(() => surfaceLineAdapter.ConstructNewSurfaceLine(shoulderLength, shoulderHeight, false), Throws.InstanceOf()); } } } \ No newline at end of file Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/Uplift/SoilVolumeMassCalculatorEffectiveStressTest.cs =================================================================== diff -u -r3520 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/Uplift/SoilVolumeMassCalculatorEffectiveStressTest.cs (.../SoilVolumeMassCalculatorEffectiveStressTest.cs) (revision 3520) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/Uplift/SoilVolumeMassCalculatorEffectiveStressTest.cs (.../SoilVolumeMassCalculatorEffectiveStressTest.cs) (revision 3875) @@ -148,30 +148,27 @@ } [Test] - [ExpectedException(typeof(SoilVolumicMassCalculatorException))] public void ThrowsExceptionIfSoilProfileHasNoLayers() { var soilVolumeMassCalculator = new SoilVolumicMassCalculator(); soilVolumeMassCalculator.MinimumThicknessCoverLayer = 10; soilVolumeMassCalculator.SurfaceLevel = 2; soilVolumeMassCalculator.TopOfLayerToBeEvaluated = -1; soilVolumeMassCalculator.SoilProfile = new SoilProfile1D(); - soilVolumeMassCalculator.CalculateEffectiveStress(); + Assert.That(() => soilVolumeMassCalculator.CalculateEffectiveStress(), Throws.InstanceOf()); } [Test] - [ExpectedException(typeof(SoilVolumicMassCalculatorException))] public void ThrowsExceptionIfSoilProfileNotAssignedInSoilVolumeMassCalculator() { var soilVolumeMassCalculator = new SoilVolumicMassCalculator(); soilVolumeMassCalculator.MinimumThicknessCoverLayer = 10; soilVolumeMassCalculator.SurfaceLevel = 2; soilVolumeMassCalculator.TopOfLayerToBeEvaluated = -1; - soilVolumeMassCalculator.CalculateEffectiveStress(); + Assert.That(() => soilVolumeMassCalculator.CalculateEffectiveStress(), Throws.InstanceOf()); } [Test] - [ExpectedException(typeof(SoilVolumicMassCalculatorException))] public void ThrowsExceptionIfSurfaceLevelNotInsideProfile() { var soilVolumeMassCalculator = new SoilVolumicMassCalculator(); @@ -180,11 +177,10 @@ soilVolumeMassCalculator.SurfaceLevel = 2; soilVolumeMassCalculator.TopOfLayerToBeEvaluated = -1; soilVolumeMassCalculator.SoilProfile = CreateTestProfile(); - soilVolumeMassCalculator.CalculateEffectiveStress(); + Assert.That(() => soilVolumeMassCalculator.CalculateEffectiveStress(), Throws.InstanceOf()); } [Test] - [ExpectedException(typeof(SoilVolumicMassCalculatorException))] public void ThrowsExceptionIfTopLayerToBeEvaluatedNotInsideProfile() { var soilVolumeMassCalculator = new SoilVolumicMassCalculator(); @@ -193,7 +189,7 @@ soilVolumeMassCalculator.SurfaceLevel = 0; soilVolumeMassCalculator.TopOfLayerToBeEvaluated = 10; soilVolumeMassCalculator.SoilProfile = CreateTestProfile(); - soilVolumeMassCalculator.CalculateEffectiveStress(); + Assert.That(() => soilVolumeMassCalculator.CalculateEffectiveStress(), Throws.InstanceOf()); } public SoilProfile1D CreateTestProfile() Index: DamEngine/trunk/src/Deltares.DamEngine.Io.Tests/packages.config =================================================================== diff -u -r3520 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.Io.Tests/packages.config (.../packages.config) (revision 3520) +++ DamEngine/trunk/src/Deltares.DamEngine.Io.Tests/packages.config (.../packages.config) (revision 3875) @@ -23,4 +23,5 @@ --> + \ No newline at end of file Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/DamPipingSellmeijer4Forces/DamPipingSellmeijer4ForcesKernelWrapperTests.cs =================================================================== diff -u -r3520 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/DamPipingSellmeijer4Forces/DamPipingSellmeijer4ForcesKernelWrapperTests.cs (.../DamPipingSellmeijer4ForcesKernelWrapperTests.cs) (revision 3520) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/DamPipingSellmeijer4Forces/DamPipingSellmeijer4ForcesKernelWrapperTests.cs (.../DamPipingSellmeijer4ForcesKernelWrapperTests.cs) (revision 3875) @@ -106,9 +106,9 @@ { Assert.AreEqual(FailureMechanismSystemType.Piping, result.DamFailureMechanismeCalculation.FailureMechanismSystemType); Assert.AreEqual(PipingModelType.Sellmeijer4Forces, result.DamFailureMechanismeCalculation.PipingModelType); - Assert.IsNotNullOrEmpty(result.LocationName); - Assert.IsNotNullOrEmpty(result.ScenarioName); - Assert.IsNotNullOrEmpty(result.ProfileName); + Assert.That(result.LocationName, Is.Not.Null.Or.Empty); + Assert.That(result.ScenarioName, Is.Not.Null.Or.Empty); + Assert.That(result.ProfileName, Is.Not.Null.Or.Empty); Assert.AreEqual(11.899117458988467, result.PipingDesignResults.Sellmeijer4ForcesFactor, diff); Assert.AreEqual(4.7596469835953874, result.PipingDesignResults.Sellmeijer4ForcesHcritical, diff); @@ -255,43 +255,39 @@ } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "Geen invoer object gedefinieerd voor Sellmeijer 4 Krachten")] [SetUICulture("nl-NL")] public void TestLanguageNLThrowsExceptionInExecuteWhenInputIsNull() { var kernelWrapper = new DamPipingSellmeijer4ForcesKernelWrapper(); List messages; - kernelWrapper.Execute(null, null, out messages); + Assert.That(() => kernelWrapper.Execute(null, null, out messages), Throws.InstanceOf().With.Message.EqualTo("Geen invoer object gedefinieerd voor Sellmeijer 4 Krachten")); } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "No input object defined for Sellmeijer 4 Forces")] [SetUICulture("en-US")] public void TestLanguageENThrowsExceptionInExecuteWhenInputIsNull() { var kernelWrapper = new DamPipingSellmeijer4ForcesKernelWrapper(); List messages; - kernelWrapper.Execute(null, null, out messages); + Assert.That(() => kernelWrapper.Execute(null, null, out messages), Throws.InstanceOf().With.Message.EqualTo("No input object defined for Sellmeijer 4 Forces")); } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "Geen uitvoer object gedefinieerd voor Sellmeijer 4 Krachten")] [SetUICulture("nl-NL")] public void TestThrowsExceptionInPostProcessWhenOutputIsNull() { var kernelWrapper = new DamPipingSellmeijer4ForcesKernelWrapper(); List results; - kernelWrapper.PostProcess(new DamKernelInput(), null, null, "", out results); + Assert.That(() => kernelWrapper.PostProcess(new DamKernelInput(), null, null, "", out results), Throws.InstanceOf().With.Message.EqualTo("Geen uitvoer object gedefinieerd voor Sellmeijer 4 Krachten")); } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "Geen invoer object gedefinieerd voor Sellmeijer 4 Krachten")] [SetUICulture("nl-NL")] public void TestThrowsExceptionInPostProcessWhenInputIsNull() { var kernelWrapper = new DamPipingSellmeijer4ForcesKernelWrapper(); List results; - kernelWrapper.PostProcess(null, new DamPipingSellmeijer4ForcesOutput(), null, "", out results); + Assert.That(() => kernelWrapper.PostProcess(null, new DamPipingSellmeijer4ForcesOutput(), null, "", out results), Throws.InstanceOf().With.Message.EqualTo("Geen invoer object gedefinieerd voor Sellmeijer 4 Krachten")); } } Index: DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/OperationalGrebbedijkTests.cs =================================================================== diff -u -r3620 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/OperationalGrebbedijkTests.cs (.../OperationalGrebbedijkTests.cs) (revision 3620) +++ DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/OperationalGrebbedijkTests.cs (.../OperationalGrebbedijkTests.cs) (revision 3875) @@ -41,8 +41,9 @@ { private const double tolerance = 0.0005; - [Test, Ignore] - [Category("Work_In_Progress")] //Note #Bka: this is a Bishop test. So as soon as that model is implemented it must be activated and made to work again. + [Test] + [Ignore("#Bka: this is a Bishop test. So as soon as that model is implemented it must be activated and made to work again.")] + [Category("Work_In_Progress")] public void Run_UsingTestFiles_HasExpectedResultsInOutputFile() { const string calcDir = "TestOperationalGrebbedijk"; Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/Deltares.DamEngine.Calculators.Tests.csproj =================================================================== diff -u -r3874 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/Deltares.DamEngine.Calculators.Tests.csproj (.../Deltares.DamEngine.Calculators.Tests.csproj) (revision 3874) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/Deltares.DamEngine.Calculators.Tests.csproj (.../Deltares.DamEngine.Calculators.Tests.csproj) (revision 3875) @@ -1,5 +1,6 @@  + Debug @@ -43,8 +44,8 @@ False ..\packages\CompareNETObjects.3.09.0.0\lib\net45\KellermanSoftware.Compare-NET-Objects.dll - - ..\..\lib\NUnit\nunit.framework.dll + + ..\packages\NUnit.3.13.3\lib\net45\nunit.framework.dll @@ -105,6 +106,7 @@ Copying.AGPL.licenseheader + @@ -113,6 +115,7 @@ PreserveNewest + @@ -175,6 +178,12 @@ + + + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}. + + + + \ No newline at end of file Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/DamPipingSellmeijerVnk/DamPipingSellmeijerVnkKernelWrapperTests.cs =================================================================== diff -u -r3520 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/DamPipingSellmeijerVnk/DamPipingSellmeijerVnkKernelWrapperTests.cs (.../DamPipingSellmeijerVnkKernelWrapperTests.cs) (revision 3520) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/DamPipingSellmeijerVnk/DamPipingSellmeijerVnkKernelWrapperTests.cs (.../DamPipingSellmeijerVnkKernelWrapperTests.cs) (revision 3875) @@ -129,9 +129,9 @@ { Assert.AreEqual(FailureMechanismSystemType.Piping, result.DamFailureMechanismeCalculation.FailureMechanismSystemType); Assert.AreEqual(PipingModelType.SellmeijerVnk, result.DamFailureMechanismeCalculation.PipingModelType); - Assert.IsNotNullOrEmpty(result.LocationName); - Assert.IsNotNullOrEmpty(result.ScenarioName); - Assert.IsNotNullOrEmpty(result.ProfileName); + Assert.That(result.LocationName, Is.Not.Null.Or.Empty); + Assert.That(result.ScenarioName, Is.Not.Null.Or.Empty); + Assert.That(result.ProfileName, Is.Not.Null.Or.Empty); Assert.AreEqual(3.65, result.PipingDesignResults.SellmeijerVnkFactor, diff); Assert.AreEqual(3.65, result.PipingDesignResults.SellmeijerVnkHcritical, diff); @@ -293,43 +293,39 @@ } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "Geen invoer object gedefinieerd voor Sellmeijer VNK")] [SetUICulture("nl-NL")] public void TestLanguageNLThrowsExceptionInExecuteWhenInputIsNull() { var kernelWrapper = new DamPipingSellmeijerVnkKernelWrapper(); List messages; - kernelWrapper.Execute(null, null, out messages); + Assert.That(() => kernelWrapper.Execute(null, null, out messages), Throws.InstanceOf().With.Message.EqualTo("Geen invoer object gedefinieerd voor Sellmeijer VNK")); } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "No input object defined for Sellmeijer VNK")] [SetUICulture("en-US")] public void TestLanguageENThrowsExceptionInExecuteWhenInputIsNull() { var kernelWrapper = new DamPipingSellmeijerVnkKernelWrapper(); List messages; - kernelWrapper.Execute(null, null, out messages); + Assert.That(() => kernelWrapper.Execute(null, null, out messages), Throws.InstanceOf().With.Message.EqualTo("No input object defined for Sellmeijer VNK")); } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "Geen uitvoer object gedefinieerd voor Sellmeijer VNK")] [SetUICulture("nl-NL")] public void TestThrowsExceptionInPostProcessWhenOutputIsNull() { var kernelWrapper = new DamPipingSellmeijerVnkKernelWrapper(); List results; - kernelWrapper.PostProcess(new DamKernelInput(), null, null, "", out results); + Assert.That(() => kernelWrapper.PostProcess(new DamKernelInput(), null, null, "", out results), Throws.InstanceOf().With.Message.EqualTo("Geen uitvoer object gedefinieerd voor Sellmeijer VNK")); } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "Geen invoer object gedefinieerd voor Sellmeijer VNK")] [SetUICulture("nl-NL")] public void TestThrowsExceptionInPostProcessWhenInputIsNull() { var kernelWrapper = new DamPipingSellmeijerVnkKernelWrapper(); List results; - kernelWrapper.PostProcess(null, new DamPipingSellmeijerVnkOutput(), null, "", out results); + Assert.That(() => kernelWrapper.PostProcess(null, new DamPipingSellmeijerVnkOutput(), null, "", out results), Throws.InstanceOf().With.Message.EqualTo("Geen invoer object gedefinieerd voor Sellmeijer VNK")); } } Index: DamEngine/trunk/src/Deltares.DamEngine.Data.Tests/Geotechnics/SoilProfile1DAquiferLayerCombinerTests.cs =================================================================== diff -u -r3852 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.Data.Tests/Geotechnics/SoilProfile1DAquiferLayerCombinerTests.cs (.../SoilProfile1DAquiferLayerCombinerTests.cs) (revision 3852) +++ DamEngine/trunk/src/Deltares.DamEngine.Data.Tests/Geotechnics/SoilProfile1DAquiferLayerCombinerTests.cs (.../SoilProfile1DAquiferLayerCombinerTests.cs) (revision 3875) @@ -46,10 +46,6 @@ } [Test] - [ExpectedException(typeof(SoilProfile1DAquiferLayerCombinerException), - ExpectedMessage = - "Bij het samenstellen van de aquifer laag voor 1D profiel Test Profile hebben de samen te voegen lagen verschillende interpolatie methoden hetgeen niet is toegestaan." - )] [SetUICulture("nl-NL")] public void TestThrowsExceptionWhenInterpolationModelIsNotTheSameForAllCombinedLayers() { @@ -58,7 +54,7 @@ soilProfile1D.GetLayerWithName("L3").WaterpressureInterpolationModel = WaterpressureInterpolationModel.Hydrostatic; soilProfile1D.Name = "Test Profile"; var topLayerName = "L2"; - SoilProfile1DAquiferLayerCombiner.CombineLayers(soilProfile1D, topLayerName); + Assert.That(() => SoilProfile1DAquiferLayerCombiner.CombineLayers(soilProfile1D, topLayerName), Throws.InstanceOf().With.Message.EqualTo("Bij het samenstellen van de aquifer laag voor 1D profiel Test Profile hebben de samen te voegen lagen verschillende interpolatie methoden hetgeen niet is toegestaan.")); } private static SoilProfile1D CreateProfile() Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/DikesDesign/SurfaceLineSlopeAdapterTest.cs =================================================================== diff -u -r3520 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/DikesDesign/SurfaceLineSlopeAdapterTest.cs (.../SurfaceLineSlopeAdapterTest.cs) (revision 3520) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/DikesDesign/SurfaceLineSlopeAdapterTest.cs (.../SurfaceLineSlopeAdapterTest.cs) (revision 3875) @@ -38,7 +38,7 @@ /// /// Tests the fixture tear down. /// - [TestFixtureTearDown] + [TearDown] public void TestFixtureTearDown() { } @@ -292,12 +292,11 @@ #region ConstructWithSlopeTangent [Test] - [ExpectedException(typeof(SurfaceLineAdapterException))] public void IsExceptionThrownIfSlopeDoesNotIntersectSurfaceLine() { var surfaceLine = CreateSimpleDike(); var surfaceLineAdapter = new SurfaceLineSlopeAdapter(surfaceLine, location, 0); - surfaceLineAdapter.ConstructNewSurfaceLineBySlope(0); + Assert.That(() => surfaceLineAdapter.ConstructNewSurfaceLineBySlope(0), Throws.InstanceOf()); } [Test] @@ -408,7 +407,6 @@ } [Test] - [ExpectedException(typeof(SurfaceLineAdapterException))] public void IsExceptionThrownWhenSlopeDoesNotFit() { var surfaceLine = new SurfaceLine2 @@ -436,7 +434,7 @@ surfaceLine.EnsurePointOfType(pointSurfaceLevelInside.X, pointSurfaceLevelInside.Z, CharacteristicPointType.SurfaceLevelInside); var surfaceLineAdapter = new SurfaceLineSlopeAdapter(surfaceLine, location, 0); const double slopeTangent = 1.0 / 4.0; - surfaceLineAdapter.ConstructNewSurfaceLineBySlope(slopeTangent); + Assert.That(() => surfaceLineAdapter.ConstructNewSurfaceLineBySlope(slopeTangent), Throws.InstanceOf()); } [Test] Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/Assemblers/Geometry2DSectionAssemblerTest.cs =================================================================== diff -u -r3520 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/Assemblers/Geometry2DSectionAssemblerTest.cs (.../Geometry2DSectionAssemblerTest.cs) (revision 3520) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/Assemblers/Geometry2DSectionAssemblerTest.cs (.../Geometry2DSectionAssemblerTest.cs) (revision 3875) @@ -107,12 +107,13 @@ #endregion - [TestFixtureSetUp] + [SetUp] public void TestFixtureSetup() { } - [Test, Ignore] + [Test] + [Ignore("")] [Category(Categories.WorkInProgress)] public void CanCreateAndValidateGeometry2DSectionXML() { Index: DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/OperationalIntegrationTests.cs =================================================================== diff -u -r3520 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/OperationalIntegrationTests.cs (.../OperationalIntegrationTests.cs) (revision 3520) +++ DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/OperationalIntegrationTests.cs (.../OperationalIntegrationTests.cs) (revision 3875) @@ -37,7 +37,8 @@ { private const double tolerance = 0.0005; - [Test, Ignore] + [Test] + [Ignore("")] [Category(Categories.WorkInProgress)] public void Run_UsingTestFiles_HasExpectedResultsInOutputFile() { Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/PlLinesCreator/PlLinesCreatorTest.cs =================================================================== diff -u -r3520 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/PlLinesCreator/PlLinesCreatorTest.cs (.../PlLinesCreatorTest.cs) (revision 3520) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/PlLinesCreator/PlLinesCreatorTest.cs (.../PlLinesCreatorTest.cs) (revision 3875) @@ -36,7 +36,7 @@ { private double Tolerance = 0.001; - [TestFixtureSetUp] + [SetUp] public void TestFixtureSetup() { } @@ -210,7 +210,6 @@ /// Test if exception thrown if PolderLevel above top of dike /// [Test] - [ExpectedException(typeof(PlLinesCreatorException))] public void ThrowsWhenPolderLevelHigherDikeTopAtPolder() { var surfacelineSimpleDike = FactoryForSurfaceLines.CreateSurfacelineSimpleDike(); @@ -225,7 +224,7 @@ plLineCreator.SoilProfile = FactoryForSoilProfiles.CreateClaySandClaySandProfile(); plLineCreator.SurfaceLine = surfacelineSimpleDike; plLineCreator.WaterLevelPolder = plLineCreator.SurfaceLine.CharacteristicPoints.GetGeometryPoint(CharacteristicPointType.DikeTopAtPolder).Z + 0.1; - PlLine plLine = plLineCreator.CreatePlLineByExpertKnowledge(PlLineType.Pl1, 0.02); + Assert.That(() => plLineCreator.CreatePlLineByExpertKnowledge(PlLineType.Pl1, 0.02), Throws.InstanceOf()); } } @@ -870,7 +869,6 @@ /// Test if exception is thrown when creating PL2 with no soilprofile /// [Test] - [ExpectedException(typeof(PlLinesCreatorException))] public void CreatePL2WithExpertKnowledgeRRDThrowsExceptionIfNoSoilProfile() { var surfaceLine = new SurfaceLine2 @@ -886,30 +884,28 @@ plLineCreator.SurfaceLine = surfaceLine; plLineCreator.ModelParametersForPlLines.PenetrationLength = 6.0; plLineCreator.HeadInPlLine2 = 4.0; - plLineCreator.CreatePlLineByExpertKnowledge(PlLineType.Pl2, 0.02); + Assert.That(() => plLineCreator.CreatePlLineByExpertKnowledge(PlLineType.Pl2, 0.02), Throws.InstanceOf()); } } /// /// Test if exception is thrown when creating PL2 with no surface line /// [Test] - [ExpectedException(typeof(PlLinesCreatorException))] public void CreatePL2WithExpertKnowledgeRRDThrowsExceptionIfNoSurfaceLine() { Calculators.PlLinesCreator.PlLinesCreator plLineCreator = new Calculators.PlLinesCreator.PlLinesCreator(); plLineCreator.SoilProfile = FactoryForSoilProfiles.CreateSimpleProfile(); plLineCreator.SurfaceLine = null; plLineCreator.ModelParametersForPlLines.PenetrationLength = 6.0; plLineCreator.HeadInPlLine2 = 4.0; - plLineCreator.CreatePlLineByExpertKnowledge(PlLineType.Pl2, 0.02); + Assert.That(() => plLineCreator.CreatePlLineByExpertKnowledge(PlLineType.Pl2, 0.02), Throws.InstanceOf()); } /// /// Test if exception is thrown when creating PL2 if no aquifer present /// [Test] - [ExpectedException(typeof(PlLinesCreatorException))] public void CreatePL2For1DGeometryWithExpertKnowledgeRRDThrowsExceptionIfNoAquiferLayerAtAll() { var surfaceLine = new SurfaceLine2 @@ -926,7 +922,7 @@ plLineCreator.SurfaceLine = surfaceLine; plLineCreator.ModelParametersForPlLines.PenetrationLength = 6.0; plLineCreator.HeadInPlLine2 = 4.0; - plLineCreator.CreatePlLineByExpertKnowledge(PlLineType.Pl2, 0.02); + Assert.That(() => plLineCreator.CreatePlLineByExpertKnowledge(PlLineType.Pl2, 0.02), Throws.InstanceOf()); } } @@ -961,7 +957,6 @@ } [Test] - [ExpectedException(typeof(PlLinesCreatorException))] public void CreatePL2WithExpertKnowledgeRRDThrowsExceptionIfPenetrationLengthNegative() { const double cHeadPL2 = 3.0; @@ -970,7 +965,7 @@ plLineCreator.SoilProfile = FactoryForSoilProfiles.CreateSimpleProfile(); plLineCreator.ModelParametersForPlLines.PenetrationLength = cPenetrationLength; plLineCreator.HeadInPlLine2 = cHeadPL2; - PlLine plLine = plLineCreator.CreatePlLineByExpertKnowledge(PlLineType.Pl2, 0.02); + Assert.That(() => plLineCreator.CreatePlLineByExpertKnowledge(PlLineType.Pl2, 0.02), Throws.InstanceOf()); } /// @@ -1252,7 +1247,6 @@ //} [Test] - [ExpectedException(typeof(PlLinesCreatorException))] public void CreatePl3For1DGeometryWithExpertKnowledgeRrdThrowsExceptionIfNoAquiferLayers() { const double cDampingFactor = 0.3; @@ -1265,7 +1259,7 @@ plLineCreator.WaterLevelPolder = -0.5; plLineCreator.ModelParametersForPlLines.DampingFactorPl3 = cDampingFactor; - PlLine plLine = plLineCreator.CreatePlLineByExpertKnowledge(PlLineType.Pl3, 0.02); + Assert.That(() => plLineCreator.CreatePlLineByExpertKnowledge(PlLineType.Pl3, 0.02), Throws.InstanceOf()); } } @@ -1576,7 +1570,6 @@ } [Test] - [ExpectedException(typeof(PlLinesCreatorException))] public void CreatePl4For1DGeometryWithExpertKnowledgeRrdThrowsExceptionIfNoAquifers() { const double cDampingFactor = 0.4; @@ -1589,12 +1582,11 @@ plLineCreator.WaterLevelPolder = -0.5; plLineCreator.ModelParametersForPlLines.DampingFactorPl4 = cDampingFactor; - PlLine plLine = plLineCreator.CreatePlLineByExpertKnowledge(PlLineType.Pl4, 0.02); + Assert.That(() => plLineCreator.CreatePlLineByExpertKnowledge(PlLineType.Pl4, 0.02), Throws.InstanceOf()); } } [Test] - [ExpectedException(typeof(PlLinesCreatorException))] public void CreatePlLinesFromGaugesWithNonExistentGauge() { var surfaceLineTutorial1 = FactoryForSurfaceLines.CreateSurfaceLineTutorial1(); @@ -1629,7 +1621,7 @@ plLineCreator.GaugePlLines = gaugePlLines; plLineCreator.Gauges = gauges; plLineCreator.ModelParametersForPlLines.PlLineCreationMethod = PlLineCreationMethod.GaugesWithFallbackToExpertKnowledgeRRD; - PlLines plLines = plLineCreator.CreateAllPlLines(locations[0]); + Assert.That(() => plLineCreator.CreateAllPlLines(locations[0]), Throws.InstanceOf()); } } Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapperTests.cs =================================================================== diff -u -r3773 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapperTests.cs (.../MacroStabilityInwardsKernelWrapperTests.cs) (revision 3773) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/MacroStabilityInwards/MacroStabilityInwardsKernelWrapperTests.cs (.../MacroStabilityInwardsKernelWrapperTests.cs) (revision 3875) @@ -591,39 +591,35 @@ } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "Geen invoer object gedefinieerd voor Macrostabiliteit")] [SetUICulture("nl-NL")] public void TestLanguageNLThrowsExceptionWhenInputIsNull() { var kernelWrapper = new MacroStabilityInwardsKernelWrapper(); - kernelWrapper.Execute(null, null, out _); + Assert.That(() => kernelWrapper.Execute(null, null, out _), Throws.InstanceOf().With.Message.EqualTo("Geen invoer object gedefinieerd voor Macrostabiliteit")); } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "No input object defined for Macro Stability")] [SetUICulture("en-US")] public void TestLanguageENThrowsExceptionWhenStabilityInputIsNull() { var kernelWrapper = new MacroStabilityInwardsKernelWrapper(); - kernelWrapper.Execute(null, null, out _); + Assert.That(() => kernelWrapper.Execute(null, null, out _), Throws.InstanceOf().With.Message.EqualTo("No input object defined for Macro Stability")); } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "Geen uitvoer object gedefinieerd voor Macrostabiliteit")] [SetUICulture("nl-NL")] public void TestThrowsExceptionWhenStabilityOutputIsNull() { var kernelWrapper = new MacroStabilityInwardsKernelWrapper(); - kernelWrapper.PostProcess(new DamKernelInput(), null, null, "", out _); + Assert.That(() => kernelWrapper.PostProcess(new DamKernelInput(), null, null, "", out _), Throws.InstanceOf().With.Message.EqualTo("Geen uitvoer object gedefinieerd voor Macrostabiliteit")); } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "Geen Dam invoer object gedefinieerd voor Macrostabiliteit")] [SetUICulture("nl-NL")] public void TestThrowsExceptionWhenDamKernelInputIsNull() { var kernelWrapper = new MacroStabilityInwardsKernelWrapper(); - kernelWrapper.PostProcess(null, null, null, "", out _); + Assert.That(() => kernelWrapper.PostProcess(null, null, null, "", out _), Throws.InstanceOf().With.Message.EqualTo("Geen Dam invoer object gedefinieerd voor Macrostabiliteit")); } private static DamKernelInput CreateDamKernelInputForTest() Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/WtiPipingSellmeijerRevised/WtiPipingSellmeijerRevisedKernelWrapperTests.cs =================================================================== diff -u -r3520 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/WtiPipingSellmeijerRevised/WtiPipingSellmeijerRevisedKernelWrapperTests.cs (.../WtiPipingSellmeijerRevisedKernelWrapperTests.cs) (revision 3520) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/WtiPipingSellmeijerRevised/WtiPipingSellmeijerRevisedKernelWrapperTests.cs (.../WtiPipingSellmeijerRevisedKernelWrapperTests.cs) (revision 3875) @@ -127,9 +127,9 @@ { Assert.AreEqual(FailureMechanismSystemType.Piping, result.DamFailureMechanismeCalculation.FailureMechanismSystemType); Assert.AreEqual(PipingModelType.Wti2017, result.DamFailureMechanismeCalculation.PipingModelType); - Assert.IsNotNullOrEmpty(result.LocationName); - Assert.IsNotNullOrEmpty(result.ScenarioName); - Assert.IsNotNullOrEmpty(result.ProfileName); + Assert.That(result.LocationName, Is.Not.Null.Or.Empty); + Assert.That(result.ScenarioName, Is.Not.Null.Or.Empty); + Assert.That(result.ProfileName, Is.Not.Null.Or.Empty); Assert.AreEqual(90, result.PipingDesignResults.Wti2017BackwardErosionSafetyFactor, diff); Assert.AreEqual(expectedHcbe, result.PipingDesignResults.Wti2017BackwardErosionHcritical, diff); Assert.AreEqual(expectedDeltaPhiCbe, result.PipingDesignResults.Wti2017BackwardErosionDeltaPhiC, diff); @@ -342,43 +342,39 @@ } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "Geen invoer object gedefinieerd voor WTI Sellmeijer Revised")] [SetUICulture("nl-NL")] public void TestLanguageNLThrowsExceptionInExecuteWhenInputIsNull() { var kernelWrapper = new WtiPipingSellmeijerRevisedKernelWrapper(); List messages; - kernelWrapper.Execute(null, null, out messages); + Assert.That(() => kernelWrapper.Execute(null, null, out messages), Throws.InstanceOf().With.Message.EqualTo("Geen invoer object gedefinieerd voor WTI Sellmeijer Revised")); } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "No input object defined for WTI Sellmeijer Revised")] [SetUICulture("en-US")] public void TestLanguageENThrowsExceptionInExecuteWhenInputIsNull() { var kernelWrapper = new WtiPipingSellmeijerRevisedKernelWrapper(); List messages; - kernelWrapper.Execute(null, null, out messages); + Assert.That(() => kernelWrapper.Execute(null, null, out messages), Throws.InstanceOf().With.Message.EqualTo("No input object defined for WTI Sellmeijer Revised")); } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "Geen uitvoer object gedefinieerd voor WTI Sellmeijer Revised")] [SetUICulture("nl-NL")] public void TestThrowsExceptionInPostProcessWhenOutputIsNull() { var kernelWrapper = new WtiPipingSellmeijerRevisedKernelWrapper(); List results; - kernelWrapper.PostProcess(new DamKernelInput(), null, null, "", out results); + Assert.That(() => kernelWrapper.PostProcess(new DamKernelInput(), null, null, "", out results), Throws.InstanceOf().With.Message.EqualTo("Geen uitvoer object gedefinieerd voor WTI Sellmeijer Revised")); } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "Geen invoer object gedefinieerd voor WTI Sellmeijer Revised")] [SetUICulture("nl-NL")] public void TestThrowsExceptionInPostProcessWhenInputIsNull() { var kernelWrapper = new WtiPipingSellmeijerRevisedKernelWrapper(); List results; - kernelWrapper.PostProcess(null, new DamPipingSellmeijer4ForcesOutput(), null, "", out results); + Assert.That(() => kernelWrapper.PostProcess(null, new DamPipingSellmeijer4ForcesOutput(), null, "", out results), Throws.InstanceOf().With.Message.EqualTo("Geen invoer object gedefinieerd voor WTI Sellmeijer Revised")); } [TestCase(CharacteristicPointType.BottomDitchPolderSide, PipingCharacteristicPointType.BottomDitchPolderSide)] Index: DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/MacroStabilityCommon/PlLinesToWaternetConverterTests.cs =================================================================== diff -u -r3520 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/MacroStabilityCommon/PlLinesToWaternetConverterTests.cs (.../PlLinesToWaternetConverterTests.cs) (revision 3520) +++ DamEngine/trunk/src/Deltares.DamEngine.Calculators.Tests/KernelWrappers/MacroStabilityCommon/PlLinesToWaternetConverterTests.cs (.../PlLinesToWaternetConverterTests.cs) (revision 3875) @@ -1342,40 +1342,36 @@ } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "Geen ondergrond profiel gedefinieerd")] [SetUICulture("nl-NL")] public void TestLanguageNLThrowsExceptionWhenSoilProfile1DIsNull() { var plLines = new PlLines(); - PlLinesToWaternetConverter.ConvertPlLineToWaternet(plLines,null, 0, 0, 0); + Assert.That(() => PlLinesToWaternetConverter.ConvertPlLineToWaternet(plLines,null, 0, 0, 0), Throws.InstanceOf().With.Message.EqualTo("Geen ondergrond profiel gedefinieerd")); } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "Geen object voor pn-lijnen gedefinieerd")] [SetUICulture("nl-NL")] public void TestLanguageNLThrowsExceptionWhenPlLinesIsNull() { var soilProfile1D = new SoilProfile1D(); - PlLinesToWaternetConverter.ConvertPlLineToWaternet(null, soilProfile1D, 0, 0, 0); + Assert.That(() => PlLinesToWaternetConverter.ConvertPlLineToWaternet(null, soilProfile1D, 0, 0, 0), Throws.InstanceOf().With.Message.EqualTo("Geen object voor pn-lijnen gedefinieerd")); } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "Geen ondergrond profiel gedefinieerd")] [SetUICulture("nl-NL")] public void ConvertPlLineToWaternet_SoilProfileNull_ThrowsException() { var plLines = new PlLines(); - PlLinesToWaternetConverter.ConvertPlLineToWaternet(plLines, null, 0); + Assert.That(() => PlLinesToWaternetConverter.ConvertPlLineToWaternet(plLines, null, 0), Throws.InstanceOf().With.Message.EqualTo("Geen ondergrond profiel gedefinieerd")); } [Test] - [ExpectedException(typeof(NoNullAllowedException), ExpectedMessage = "Geen object voor pn-lijnen gedefinieerd")] [SetUICulture("nl-NL")] public void ConvertPlLineToWaternet_ProfileLinesNull_ThrowsException() { var soilProfile = new SoilProfile2D(); - PlLinesToWaternetConverter.ConvertPlLineToWaternet(null, soilProfile, 0); + Assert.That(() => PlLinesToWaternetConverter.ConvertPlLineToWaternet(null, soilProfile, 0), Throws.InstanceOf().With.Message.EqualTo("Geen object voor pn-lijnen gedefinieerd")); } Index: DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/Deltares.DamEngine.IntegrationTests.csproj =================================================================== diff -u -r3800 -r3875 --- DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/Deltares.DamEngine.IntegrationTests.csproj (.../Deltares.DamEngine.IntegrationTests.csproj) (revision 3800) +++ DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/Deltares.DamEngine.IntegrationTests.csproj (.../Deltares.DamEngine.IntegrationTests.csproj) (revision 3875) @@ -1,5 +1,6 @@  + Debug @@ -32,8 +33,8 @@ MinimumRecommendedRules.ruleset - - ..\..\lib\NUnit\nunit.framework.dll + + ..\packages\NUnit.3.13.3\lib\net45\nunit.framework.dll @@ -267,6 +268,8 @@ Copying.AGPL.licenseheader + + PreserveNewest @@ -354,6 +357,12 @@ + + + This project references NuGet package(s) that are missing on this computer. Enable NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105.The missing file is {0}. + + +