public void CreateFile_ShouldCreateEmptyFile()
        {
            // Arrange
            var filePath = _temporaryDirectory.GetRandomFilePath();

            // Assume
            Assume.That(File.Exists(filePath), Is.False);

            // Act
            var file = _fileSystem.CreateFile(filePath);

            // Assert
            Assert.That(file.Path, Is.EqualTo(filePath));
            Assert.That(File.Exists(filePath), Is.True);
            Assert.That(File.ReadAllText(filePath), Is.Empty);
        }
        public override void SetUp()
        {
            base.SetUp();
            _temporaryDirectory = new TemporaryDirectory();
            _sceneFilePath      = _temporaryDirectory.GetRandomFilePath();

            SystemUnderTest.AssetStore.RegisterAssets(Utils.GetPathUnderTestDirectory(@"Assets"));
        }
        public void SetUp()
        {
            _fileSystem         = new Common.FileSystem.FileSystem();
            _temporaryDirectory = new TemporaryDirectory();

            _absoluteFilePath = _temporaryDirectory.GetRandomFilePath();
            _relativeFilePath = Path.GetRelativePath(_temporaryDirectory.Path, _absoluteFilePath);
            File.WriteAllText(_absoluteFilePath, string.Empty);

            _absoluteDirectoryPath = _temporaryDirectory.GetRandomDirectoryPath();
            _relativeDirectoryPath = Path.GetRelativePath(_temporaryDirectory.Path, _absoluteDirectoryPath);
            Directory.CreateDirectory(_absoluteDirectoryPath);
        }