Skip to content

Commit

Permalink
Seal the class.
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Oct 3, 2023
1 parent f483d2b commit 11f9c7a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Magick.NET.Tests/TestHelpers/TemporaryFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

namespace Magick.NET.Tests;

public class TemporaryFile : IDisposable
public sealed class TemporaryFile : IDisposable
{
private readonly FileInfo _file;

Expand Down Expand Up @@ -39,7 +39,7 @@ public FileInfo File
public void Dispose()
=> Cleanup.DeleteFile(_file);

private FileInfo CreateEmptyFile(string fileName)
private static FileInfo CreateEmptyFile(string fileName)
{
var file = new FileInfo(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString() + fileName));
file.Create().Dispose();
Expand All @@ -48,7 +48,7 @@ private FileInfo CreateEmptyFile(string fileName)
return file;
}

private FileInfo CreateFromFile(string fileName)
private static FileInfo CreateFromFile(string fileName)
{
var file = new FileInfo(Path.Combine(Path.GetTempPath(), Guid.NewGuid().ToString() + Path.GetFileName(fileName)));
FileHelper.Copy(fileName, file.FullName);
Expand Down

0 comments on commit 11f9c7a

Please sign in to comment.