Skip to content

Commit f1991d2

Browse files
committed
Testing
1 parent b973181 commit f1991d2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/GitTools.Core.Tests/Git/GitRepositoryFactoryTests.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ public void WorksCorrectlyWithRemoteRepository(string branchName, string expecte
3131
{
3232
using (var fixture = new EmptyRepositoryFixture())
3333
{
34-
var expectedDynamicRepoLocation = Path.Combine(tempPath, fixture.RepositoryPath.Split(Path.DirectorySeparatorChar).Last());
34+
var path2 = fixture.RepositoryPath.Split(new [] { Path.DirectorySeparatorChar }, StringSplitOptions.RemoveEmptyEntries).Last();
35+
path2.ShouldNotBeNullOrEmpty();
36+
37+
var expectedDynamicRepoLocation = Path.Combine(tempPath, path2);
3538

3639
fixture.Repository.MakeCommits(5);
3740
fixture.Repository.CreateFileAndCommit("TestFile.txt");

0 commit comments

Comments
 (0)