Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 17911a9

Browse files
committed
Merge branch 'refactor/sdk-csproj' into refactor/clone
2 parents 0193b45 + c05585e commit 17911a9

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

src/GitHub.TeamFoundation.14/RegistryHelper.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
using GitHub.Services;
1010
using Microsoft.Win32;
1111
using Serilog;
12+
using static System.FormattableString;
1213

1314
namespace GitHub.TeamFoundation
1415
{
@@ -18,7 +19,7 @@ internal class RegistryHelper
1819

1920
static RegistryKey OpenGitKey(string path)
2021
{
21-
var keyName = $"Software\\Microsoft\\VisualStudio\\{MajorVersion}.0\\TeamFoundation\\GitSourceControl\\{path}";
22+
var keyName = Invariant($"Software\\Microsoft\\VisualStudio\\{MajorVersion}.0\\TeamFoundation\\GitSourceControl\\{path}");
2223
return Registry.CurrentUser.OpenSubKey(keyName, true);
2324
}
2425

@@ -64,7 +65,7 @@ internal static string PokeTheRegistryForLocalClonePath()
6465
const string MRUKeyPath = "MRUSettingsLocalProjectLocationEntries";
6566
internal static string SetDefaultProjectPath(string path)
6667
{
67-
var newProjectDialogKeyPath = $"Software\\Microsoft\\VisualStudio\\{MajorVersion}.0\\NewProjectDialog";
68+
var newProjectDialogKeyPath = Invariant($"Software\\Microsoft\\VisualStudio\\{MajorVersion}.0\\NewProjectDialog");
6869

6970
var old = String.Empty;
7071
try

test/GitHub.TeamFoundation.UnitTests/VSGitExtTests.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
public class VSGitExtTests
1919
{
20-
public class TheConstructor
20+
public class TheConstructor : TestBaseClass
2121
{
2222
[TestCase(true, 1)]
2323
[TestCase(false, 0)]
@@ -63,7 +63,7 @@ public void ActiveRepositories_ReadUsingThreadPoolThread()
6363
}
6464
}
6565

66-
public class TheActiveRepositoriesChangedEvent
66+
public class TheActiveRepositoriesChangedEvent : TestBaseClass
6767
{
6868
[Test]
6969
public void GitExtPropertyChangedEvent_ActiveRepositoriesChangedIsFired()
@@ -133,7 +133,7 @@ public void WhenUIContextChanged_FiredUsingThreadPoolThread()
133133
}
134134
}
135135

136-
public class TheActiveRepositoriesProperty
136+
public class TheActiveRepositoriesProperty : TestBaseClass
137137
{
138138
[Test]
139139
public void RepositoryOpenContextNotActive_IsEmpty()

0 commit comments

Comments
 (0)