Skip to content

Commit

Permalink
Some issues with disposable pattern. Verifying.
Browse files Browse the repository at this point in the history
  • Loading branch information
ironfede committed Oct 2, 2024
1 parent 03a0003 commit efc6c0f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions sources/Test/OpenMcdf.Test/CompoundFileTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<CFException>(() =>
Expand All @@ -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<CFException>(() =>
Expand All @@ -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))
Expand Down

0 comments on commit efc6c0f

Please sign in to comment.