public void ThrowsFileNotFoundExceptionWhenFileIsAlreadyDeleted()
            {
                var file = new PlatformFile(this.platformFile);

                FileSystemTest.DeletePlatformItem(this.platformFile);
                AssertEx.Throws <FileNotFoundException>(() => file.Delete());
            }
            public void DeletesFileFromFileSystem()
            {
                var file = new PlatformFile(this.platformFile);

                file.Delete();
                AssertEx.Throws <FileNotFoundException>(() => FileSystemTest.GetPlatformFile(FileSystemTest.GetPlatformFileName(this.platformFile)));
            }
 public void ThrowsFileNotFoundExceptionWhenFileIsAlreadyDeleted()
 {
     var file = new PlatformFile(this.platformFile);
     FileSystemTest.DeletePlatformItem(this.platformFile);
     Assert.Throws<FileNotFoundException>(() => file.Delete());
 }
 public void DeletesFileFromFileSystem()
 {
     var file = new PlatformFile(this.platformFile);
     file.Delete();
     Assert.Throws<FileNotFoundException>(() => FileSystemTest.GetPlatformFile(FileSystemTest.GetPlatformFileName(this.platformFile)));
 }