diff --git a/sources/Test/OpenMcdf.Test/CompoundFileTest.cs b/sources/Test/OpenMcdf.Test/CompoundFileTest.cs index 3b48cb16..71a9bd82 100644 --- a/sources/Test/OpenMcdf.Test/CompoundFileTest.cs +++ b/sources/Test/OpenMcdf.Test/CompoundFileTest.cs @@ -1180,6 +1180,7 @@ public void Test_FIX_BUG_96_CompoundFile_SaveOverwrite() var s = compoundFile.RootStorage.GetStorage(storageName).GetStream(streamName); s.Write(new byte[] { 0x0A, 0x0A }, 0); compoundFile.SaveAs(filename2); + compoundFile.Close(); }); Assert.ThrowsException(() => @@ -1189,6 +1190,7 @@ public void Test_FIX_BUG_96_CompoundFile_SaveOverwrite() var s = compoundFile.RootStorage.GetStorage(storageName).GetStream(streamName); s.Write(new byte[] { 0x0A, 0x0A }, 0); compoundFile.SaveAs(rootedPath); + compoundFile.Close(); }); Assert.ThrowsException(() => @@ -1198,6 +1200,7 @@ public void Test_FIX_BUG_96_CompoundFile_SaveOverwrite() var s = compoundFile.RootStorage.GetStorage(storageName).GetStream(streamName); s.Write(new byte[] { 0x0A, 0x0A }, 0); compoundFile.Save(fs); + compoundFile.Close(); }); if (File.Exists(filename2))