Index: DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/MacroStabilityInwardsTests.cs
===================================================================
diff -u -r2636 -r2660
--- DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/MacroStabilityInwardsTests.cs (.../MacroStabilityInwardsTests.cs) (revision 2636)
+++ DamEngine/trunk/src/Deltares.DamEngine.IntegrationTests/IntegrationTests/MacroStabilityInwardsTests.cs (.../MacroStabilityInwardsTests.cs) (revision 2660)
@@ -40,6 +40,34 @@
{
private const double Tolerance = 0.0005;
+ [TearDown]
+ public void TearDown()
+ {
+ // Ensure clearing directories at end.
+ RemoveUsedDirectoryAfterTests("TestStabInwardsBishop");
+ RemoveUsedDirectoryAfterTests("TestStabInwardsUpliftVan");
+ RemoveUsedDirectoryAfterTests("TestStabInwardsBishopUpliftVan_UpliftVanLowest");
+ RemoveUsedDirectoryAfterTests("TestStabInwardsBishopUpliftVan_BishopLowest");
+ RemoveUsedDirectoryAfterTests("TestStabInwardsBishopUpliftVan_NoUplift");
+ RemoveUsedDirectoryAfterTests("TestStabInwardsZoneBishop");
+ RemoveUsedDirectoryAfterTests("TestStabInwardsZone2Bishop");
+ RemoveUsedDirectoryAfterTests("TestStabInwardsZoneUpliftVan");
+ RemoveUsedDirectoryAfterTests("TestStabInwardsForbiddenZoneBishop");
+ RemoveUsedDirectoryAfterTests("TestStabInwardsWithErrorUpliftVan");
+ RemoveUsedDirectoryAfterTests("TestStabInwardsWithErrorBishopUpliftVan");
+ RemoveUsedDirectoryAfterTests("TestRunFailedExpectCalculationMessageInOptimizedSlopeAndShoulderAdaption");
+ RemoveUsedDirectoryAfterTests("TestRunFailedExpectCalculationMessageInSlopeAdaptionBeforeShoulderAdaption");
+ RemoveUsedDirectoryAfterTests("TestGiveFeedBackWhenNoProfilesAreAvailable");
+ }
+
+ private void RemoveUsedDirectoryAfterTests(string directory)
+ {
+ if (Directory.Exists(directory))
+ {
+ Directory.Delete(directory, true);
+ }
+ }
+
/// Test for different segmentFailureMechanismType
/// The soilprobabilities are set tot the specified segmentFailureMechanismType
[Test, Category("Slow")]