public void File_created_in_transaction_should_exist_in_transaction()
{
string fileName = "newFile.file";
string currentlyExistingFile = assemblyFile;
string nonExistingFile = "blah.file";
using (var scope = new TransactionScope())
{
IFile file = fileService.CreateFile(fileName);
Assert.NotNull(file);
Assert.True(fileService.FileExists(fileName));
Assert.True(fileService.FileExists(currentlyExistingFile));
Assert.False(fileService.FileExists(nonExistingFile));
Assert.False(System.IO.File.Exists(fileName), "This file shouldn't exist out of transaction");
}
}