@@ -31,7 +31,7 @@ public void WorksCorrectlyWithRemoteRepository(string branchName, string expecte
31
31
{
32
32
using ( var fixture = new EmptyRepositoryFixture ( ) )
33
33
{
34
- var expectedDynamicRepoLocation = Path . Combine ( tempPath , fixture . RepositoryPath . Split ( ' \\ ' ) . Last ( ) ) ;
34
+ var expectedDynamicRepoLocation = Path . Combine ( tempPath , fixture . RepositoryPath . Split ( Path . DirectorySeparatorChar ) . Last ( ) ) ;
35
35
36
36
fixture . Repository . MakeCommits ( 5 ) ;
37
37
fixture . Repository . CreateFileAndCommit ( "TestFile.txt" ) ;
@@ -52,7 +52,7 @@ public void WorksCorrectlyWithRemoteRepository(string branchName, string expecte
52
52
dynamicRepositoryPath = gitRepository . DotGitDirectory ;
53
53
54
54
gitRepository . IsDynamic . ShouldBe ( true ) ;
55
- gitRepository . DotGitDirectory . ShouldBe ( expectedDynamicRepoLocation + " \\ .git") ;
55
+ gitRepository . DotGitDirectory . ShouldBe ( expectedDynamicRepoLocation + Path . DirectorySeparatorChar + " .git") ;
56
56
57
57
var currentBranch = gitRepository . Repository . Head . CanonicalName ;
58
58
@@ -133,7 +133,7 @@ public void PicksAnotherDirectoryNameWhenDynamicRepoFolderTaken()
133
133
{
134
134
fixture . Repository . CreateFileAndCommit ( "TestFile.txt" ) ;
135
135
File . Copy ( Path . Combine ( fixture . RepositoryPath , "TestFile.txt" ) , Path . Combine ( tempDir , "TestFile.txt" ) ) ;
136
- expectedDynamicRepoLocation = Path . Combine ( tempPath , fixture . RepositoryPath . Split ( ' \\ ' ) . Last ( ) ) ;
136
+ expectedDynamicRepoLocation = Path . Combine ( tempPath , fixture . RepositoryPath . Split ( Path . DirectorySeparatorChar ) . Last ( ) ) ;
137
137
Directory . CreateDirectory ( expectedDynamicRepoLocation ) ;
138
138
139
139
var repositoryInfo = new RepositoryInfo
@@ -145,7 +145,7 @@ public void PicksAnotherDirectoryNameWhenDynamicRepoFolderTaken()
145
145
using ( var gitRepository = GitRepositoryFactory . CreateRepository ( repositoryInfo ) )
146
146
{
147
147
gitRepository . IsDynamic . ShouldBe ( true ) ;
148
- gitRepository . DotGitDirectory . ShouldBe ( expectedDynamicRepoLocation + "_1\\ .git" ) ;
148
+ gitRepository . DotGitDirectory . ShouldBe ( expectedDynamicRepoLocation + "_1" + Path . DirectorySeparatorChar + " .git") ;
149
149
}
150
150
}
151
151
}
0 commit comments