Skip to content

Commit 03da223

Browse files
committed
fix comments
1 parent b0ca8b0 commit 03da223

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

documentation/Using-Azure-TestFramework.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ This cmdlet, located in Repo-Tasks, will allow you to create a credentials file
4343

4444
#### Create New Service Principal
4545

46-
Using a Service Principal is the preferred option for recording test because it works with both .NET Framework and .NET Core. In order to create a new Service Principal run this command with a unused ServicePrincipal display name:
46+
Using a Service Principal is the preferred option for recording tests because it works with both .NET Framework and .NET Core. In order to create a new Service Principal run this command with a unused ServicePrincipal display name:
4747

4848
```powershell
4949
New-TestCredential -ServicePrincipalDisplayName "ScenarioTestCredentials" -ServicePrincipalSecret `

src/ResourceManager/Common/Commands.ScenarioTests.ResourceManager.Common/EnvironmentSetupHelper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public EnvironmentSetupHelper()
9090
// Set RunningMocked
9191
TestMockSupport.RunningMocked = HttpMockServer.GetCurrentMode() == HttpRecorderMode.Playback;
9292

93-
if (File.Exists(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "/.azure/testcredentials.json"))
93+
if (File.Exists(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".azure", "testcredentials.json")))
9494
{
9595
SetEnvironmentVariableFromCredentialFile();
9696
}
@@ -202,7 +202,7 @@ public void SetupEnvironment(AzureModule mode)
202202

203203
public void SetEnvironmentVariableFromCredentialFile()
204204
{
205-
var filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".azure/testcredentials.json");
205+
var filePath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.UserProfile), ".azure", "testcredentials.json");
206206
Dictionary<string, object> credentials;
207207
using (StreamReader r = new StreamReader(filePath))
208208
{

0 commit comments

Comments
 (0)