public void SetUp() { _fileSystem = new Common.FileSystem.FileSystem(); _temporaryDirectory = new TemporaryDirectory(); _fileNameWithoutExtension = Utils.Random.GetString(); _fileExtensionWithoutDot = Utils.Random.GetString(); _absoluteFilePath = _temporaryDirectory.GetPathUnderTemporaryDirectory($"{_fileNameWithoutExtension}.{_fileExtensionWithoutDot}"); File.WriteAllText(_absoluteFilePath, ""); }
public void SetUp() { _fileSystem = new Common.FileSystem.FileSystem(); _temporaryDirectory = new TemporaryDirectory(); _rootDirectoryName = Utils.Random.GetString(); _rootDirectoryPath = _temporaryDirectory.GetPathUnderTemporaryDirectory(_rootDirectoryName); _subdirectory1Path = Path.Combine(_rootDirectoryPath, Utils.Random.GetString()); _subdirectory2Path = Path.Combine(_rootDirectoryPath, Utils.Random.GetString()); _file1Path = Path.Combine(_rootDirectoryPath, Path.GetFileName(Path.GetRandomFileName())); _file2Path = Path.Combine(_rootDirectoryPath, Path.GetFileName(Path.GetRandomFileName())); Directory.CreateDirectory(_rootDirectoryPath); Directory.CreateDirectory(_subdirectory1Path); Directory.CreateDirectory(_subdirectory2Path); File.WriteAllText(_file1Path, string.Empty); File.WriteAllText(_file2Path, string.Empty); }