mirror of
https://github.com/cyanfish/naps2.git
synced 2024-09-21 20:59:01 +03:00
26 lines
539 B
C#
26 lines
539 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
|
|
namespace NAPS2.Sdk.Tests
|
|
{
|
|
public class FileSystemTests : IDisposable
|
|
{
|
|
public FileSystemTests()
|
|
{
|
|
FolderPath = $"temp_{Path.GetRandomFileName()}";
|
|
Folder = Directory.CreateDirectory(FolderPath);
|
|
}
|
|
|
|
public string FolderPath { get; }
|
|
|
|
public DirectoryInfo Folder { get; }
|
|
|
|
public void Dispose()
|
|
{
|
|
Directory.Delete(FolderPath, true);
|
|
}
|
|
}
|
|
}
|