Skip to content

Commit

Permalink
Improve handling test errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-visionaid committed Dec 5, 2024
1 parent 3753eaa commit fb281a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions OpenMcdf.Tests/RootStorageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public void ConsolidateFile(Version version, StorageModeFlags flags)
}
finally
{
File.Delete(fileName);
try { File.Delete(fileName); } catch { }
}
}

Expand Down Expand Up @@ -171,7 +171,7 @@ public void SwitchFile(Version version, int subStorageCount)
}
finally
{
File.Delete(fileName);
try { File.Delete(fileName); } catch { }
}
}
}
2 changes: 1 addition & 1 deletion OpenMcdf.Tests/StorageTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void CreateStorageFile(Version version, int subStorageCount)
}
finally
{
File.Delete(fileName);
try { File.Delete(fileName); } catch { }
}
}

Expand Down
2 changes: 2 additions & 0 deletions OpenMcdf.Tests/StreamTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ public void StructuredStorageWriteThenRead(Version version, int length)
stream.ReadExactly(actualBuffer);
CollectionAssert.AreEqual(expectedBuffer, actualBuffer);
}

try { File.Delete(fileName); } catch { }
}
#endif

Expand Down

0 comments on commit fb281a4

Please sign in to comment.