19 references to IsSameWorktreeScope
aspire (2)
Backchannel\AppHostConnectionResolver.cs (1)
300
return GitWorktree.
IsSameWorktreeScope
(
Backchannel\AuxiliaryBackchannelMonitor.cs (1)
222
return GitWorktree.
IsSameWorktreeScope
(normalizedAppHostPath, normalizedWorkingDirectory);
Aspire.Cli.Tests (17)
Git\GitWorktreeTests.cs (17)
376
Assert.False(GitWorktree.
IsSameWorktreeScope
(nestedAppHost, primaryRoot));
377
Assert.True(GitWorktree.
IsSameWorktreeScope
(primaryAppHost, primaryRoot));
378
Assert.True(GitWorktree.
IsSameWorktreeScope
(nestedAppHost, worktreeRoot));
379
Assert.False(GitWorktree.
IsSameWorktreeScope
(primaryAppHost, worktreeRoot));
395
Assert.True(GitWorktree.
IsSameWorktreeScope
(submoduleAppHost, worktreeRoot));
396
Assert.False(GitWorktree.
IsSameWorktreeScope
(submoduleAppHost, primaryRoot));
411
Assert.True(GitWorktree.
IsSameWorktreeScope
(submoduleAppHost, primaryRoot));
421
Assert.True(GitWorktree.
IsSameWorktreeScope
(appHostPath, primaryRoot));
432
Assert.False(GitWorktree.
IsSameWorktreeScope
(repoBAppHost, repoARoot));
433
Assert.False(GitWorktree.
IsSameWorktreeScope
(Path.Combine(repoARoot, "App", "App.csproj"), repoBRoot));
448
Assert.True(GitWorktree.
IsSameWorktreeScope
(repoBSubmoduleAppHost, repoBRoot));
449
Assert.False(GitWorktree.
IsSameWorktreeScope
(repoBSubmoduleAppHost, repoARoot));
460
Assert.False(GitWorktree.
IsSameWorktreeScope
(Path.Combine(worktreeRoot, "App", "App.csproj"), primaryRoot));
461
Assert.False(GitWorktree.
IsSameWorktreeScope
(Path.Combine(primaryRoot, "App", "App.csproj"), worktreeRoot));
471
Assert.True(GitWorktree.
IsSameWorktreeScope
(appHostPath, workingDirectory));
482
Assert.False(GitWorktree.
IsSameWorktreeScope
(unmanagedAppHost, primaryRoot));
483
Assert.False(GitWorktree.
IsSameWorktreeScope
(Path.Combine(primaryRoot, "App", "App.csproj"), unmanagedDirectory));