Index: Riskeer/Integration/test/Riskeer.Integration.IO.Test/Exporters/AssemblyExporterTest.cs =================================================================== diff -u -r86594ccd7329d320872573a1d066fe18959d3cea -r559b1f403a86e5660dac3bcd1c2ca651aeb28cc5 --- Riskeer/Integration/test/Riskeer.Integration.IO.Test/Exporters/AssemblyExporterTest.cs (.../AssemblyExporterTest.cs) (revision 86594ccd7329d320872573a1d066fe18959d3cea) +++ Riskeer/Integration/test/Riskeer.Integration.IO.Test/Exporters/AssemblyExporterTest.cs (.../AssemblyExporterTest.cs) (revision 559b1f403a86e5660dac3bcd1c2ca651aeb28cc5) @@ -142,12 +142,13 @@ public void Export_WithManualAssemblyResult_LogsWarning() { // Setup - string filePath = TestHelper.GetScratchPadPath(nameof(Export_InvalidAssessmentSectionCategoryGroupResults_LogsErrorAndReturnsFalse)); + string filePath = TestHelper.GetScratchPadPath(nameof(Export_WithManualAssemblyResult_LogsWarning)); AssessmentSection assessmentSection = CreateConfiguredAssessmentSection(); assessmentSection.Piping.SectionResults.First().UseManualAssembly = true; var exporter = new AssemblyExporter(assessmentSection, filePath); + using (new FileDisposeHelper(filePath)) using (new AssemblyToolCalculatorFactoryConfig()) { // Call @@ -163,7 +164,7 @@ public void Export_AssemblyCreatorExceptionThrown_LogsErrorAndReturnsFalse() { // Setup - string filePath = TestHelper.GetScratchPadPath(nameof(Export_InvalidAssessmentSectionCategoryGroupResults_LogsErrorAndReturnsFalse)); + string filePath = TestHelper.GetScratchPadPath(nameof(Export_AssemblyCreatorExceptionThrown_LogsErrorAndReturnsFalse)); AssessmentSection assessmentSection = CreateConfiguredAssessmentSection(); var exporter = new AssemblyExporter(assessmentSection, filePath); @@ -189,11 +190,12 @@ public void Export_FullyConfiguredAssessmentSectionAndValidAssemblyResults_ReturnsTrueAndCreatesFile() { // Setup - string filePath = TestHelper.GetScratchPadPath(nameof(Export_InvalidAssessmentSectionCategoryGroupResults_LogsErrorAndReturnsFalse)); + string filePath = TestHelper.GetScratchPadPath(nameof(Export_FullyConfiguredAssessmentSectionAndValidAssemblyResults_ReturnsTrueAndCreatesFile)); AssessmentSection assessmentSection = CreateConfiguredAssessmentSection(); var exporter = new AssemblyExporter(assessmentSection, filePath); + using (new FileDisposeHelper(filePath)) using (new AssemblyToolCalculatorFactoryConfig()) { var calculatorFactory = (TestAssemblyToolCalculatorFactory) AssemblyToolCalculatorFactory.Instance;