Permalink
Browse files

Fix basic code formatting issues

  • Loading branch information...
1 parent dc540f1 commit 1c7e351c4aa4816e1f4b94d87903c5258203a3fd @tathamoddie committed Mar 24, 2013
Showing with 17 additions and 17 deletions.
  1. +17 −17 TestHelpers.Tests/MockFileTests.cs
@@ -471,10 +471,10 @@ public void MockFile_Move_ShouldMoveFileWithinMemoryFileSystem()
{
const string sourceFilePath = @"c:\something\demo.txt";
const string sourceFileContent = "this is some content";
- var fileSystem = new MockFileSystem(new Dictionary<string, MockFileData>()
- {
- {sourceFilePath, new MockFileData(sourceFileContent)}
- });
+ var fileSystem = new MockFileSystem(new Dictionary<string, MockFileData>
+ {
+ {sourceFilePath, new MockFileData(sourceFileContent)}
+ });
const string destFilePath = @"c:\somethingelse\demo1.txt";
@@ -506,10 +506,10 @@ public void MockFile_OpenWrite_ShouldOverwriteExistingFiles()
const string filePath = @"c:\something\demo.txt";
const string startFileContent = "this is some content";
const string endFileContent = "this is some other content";
- var fileSystem = new MockFileSystem(new Dictionary<string, MockFileData>()
- {
- {filePath, new MockFileData(startFileContent)}
- });
+ var fileSystem = new MockFileSystem(new Dictionary<string, MockFileData>
+ {
+ {filePath, new MockFileData(startFileContent)}
+ });
var bytes = new UTF8Encoding(true).GetBytes(endFileContent);
var stream = fileSystem.File.OpenWrite(filePath);
@@ -523,9 +523,9 @@ public void MockFile_OpenWrite_ShouldOverwriteExistingFiles()
[Test]
public void MockFile_Copy_ShouldOverwriteFileWhenOverwriteFlagIsTrue()
{
- string sourceFileName = @"c:\source\demo.txt";
- MockFileData sourceContents = new MockFileData("Source content");
- string destFileName = @"c:\destination\demo.txt";
+ const string sourceFileName = @"c:\source\demo.txt";
+ var sourceContents = new MockFileData("Source content");
+ const string destFileName = @"c:\destination\demo.txt";
var fileSystem = new MockFileSystem(new Dictionary<string, MockFileData>
{
{sourceFileName, sourceContents},
@@ -541,9 +541,9 @@ public void MockFile_Copy_ShouldOverwriteFileWhenOverwriteFlagIsTrue()
[Test]
public void MockFile_Copy_ShouldCreateFileAtNewDestination()
{
- string sourceFileName = @"c:\source\demo.txt";
- MockFileData sourceContents = new MockFileData("Source content");
- string destFileName = @"c:\destination\demo.txt";
+ const string sourceFileName = @"c:\source\demo.txt";
+ var sourceContents = new MockFileData("Source content");
+ const string destFileName = @"c:\destination\demo.txt";
var fileSystem = new MockFileSystem(new Dictionary<string, MockFileData>
{
{sourceFileName, sourceContents}
@@ -558,9 +558,9 @@ public void MockFile_Copy_ShouldCreateFileAtNewDestination()
[Test]
public void MockFile_Copy_ShouldThrowExceptionWhenFileExistsAtDestination()
{
- string sourceFileName = @"c:\source\demo.txt";
- MockFileData sourceContents = new MockFileData("Source content");
- string destFileName = @"c:\destination\demo.txt";
+ const string sourceFileName = @"c:\source\demo.txt";
+ var sourceContents = new MockFileData("Source content");
+ const string destFileName = @"c:\destination\demo.txt";
var fileSystem = new MockFileSystem(new Dictionary<string, MockFileData>
{
{sourceFileName, sourceContents},

0 comments on commit 1c7e351

Please sign in to comment.