Index: Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.IO.Test/Exporters/MacroStabilityInwardsCalculationExporterTest.cs =================================================================== diff -u -rf08d80ff73aa6e92788ad00f00f1128257b5f287 -re061d0d6f267605ae280fe036d8096cfc5448194 --- Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.IO.Test/Exporters/MacroStabilityInwardsCalculationExporterTest.cs (.../MacroStabilityInwardsCalculationExporterTest.cs) (revision f08d80ff73aa6e92788ad00f00f1128257b5f287) +++ Riskeer/MacroStabilityInwards/test/Riskeer.MacroStabilityInwards.IO.Test/Exporters/MacroStabilityInwardsCalculationExporterTest.cs (.../MacroStabilityInwardsCalculationExporterTest.cs) (revision e061d0d6f267605ae280fe036d8096cfc5448194) @@ -161,20 +161,23 @@ MacroStabilityInwardsCalculationScenario calculation = MacroStabilityInwardsCalculationScenarioTestFactory.CreateMacroStabilityInwardsCalculationScenarioWithValidInput(new TestHydraulicBoundaryLocation()); calculation.Output = MacroStabilityInwardsOutputTestFactory.CreateRandomOutput(); - var persistenceFactory = new MacroStabilityInwardsTestPersistenceFactory + using (new MacroStabilityInwardsCalculatorFactoryConfig()) { - ThrowException = true, - WriteFile = true - }; + var persistenceFactory = new MacroStabilityInwardsTestPersistenceFactory + { + ThrowException = true, + WriteFile = true + }; - var exporter = new MacroStabilityInwardsCalculationExporter(calculation, persistenceFactory, filePath, AssessmentSectionTestHelper.GetTestAssessmentLevel); + var exporter = new MacroStabilityInwardsCalculationExporter(calculation, persistenceFactory, filePath, AssessmentSectionTestHelper.GetTestAssessmentLevel); - // Call - exporter.Export(); + // Call + exporter.Export(); - // Assert - Assert.IsFalse(File.Exists(filePath)); - Assert.IsFalse(File.Exists($"{filePath}.temp")); + // Assert + Assert.IsFalse(File.Exists(filePath)); + Assert.IsFalse(File.Exists($"{filePath}.temp")); + } } [Test]