Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public void VerifySwitchParameterAtTheEnd()
}

/// <summary>
/// Verify that the switch parameter in the middel can be parsed.
/// Verify that the switch parameter in the middle can be parsed.
/// </summary>
[Fact]
public void VerifySwitchParameterInMiddle()
Expand Down Expand Up @@ -270,7 +270,7 @@ public void VerifyExcessPositionalParameters()
}

/// <summary>
/// Verify that a positioinal parameter is followed by a switch parameter.
/// Verify that a positional parameter is followed by a switch parameter.
/// </summary>
[Fact]
public void VerifyPositionalParametersFollowedBySwitchParameters()
Expand Down Expand Up @@ -307,7 +307,7 @@ public void VerifyPositionalParametersFollowedByNamedParameters()
}

/// <summary>
/// Verify that we throw the exception when the positional paramters are after th named ones.
/// Verify that we throw the exception when the positional parameters are after the named ones.
/// </summary>
[Fact]
public void VerifyPositionalParametersAfterNamedParameters()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public sealed class HistoryTelemetryData : ITelemetryData
public string Command { get; }

/// <summary>
/// Gets whether the commdn line ran successfully.
/// Gets whether the command line ran successfully.
/// </summary>
public bool Success { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public IList<Type> GetCmdletTypes(string assemblyPath, string[] cmdlets, out str
{
if (string.IsNullOrEmpty(assemblyPath)) throw new ArgumentNullException(nameof(assemblyPath));

// Every module has dependecy on the Az.Accounts module
// Every module has dependency on the Az.Accounts module
// First, try to find the Az.Accounts module in the 'artifacts' directory
Assembly Resoler(AssemblyLoadContext context, AssemblyName name)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ function Test-NewDeploymentWithKeyVaultReference
.SYNOPSIS
Tests deployment with template file with complex parameters.
#>
function Test-NewDeploymentWithComplexPramaters
function Test-NewDeploymentWithComplexParameters
{
# Setup
$rgname = Get-ResourceGroupName
Expand Down
2 changes: 1 addition & 1 deletion tools/PublishModules.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ function Save-PackageLocally {
$ModulePaths = $env:PSModulePath -split ';'
$DestinationModulePath = [System.IO.Path]::Combine($ModulePaths[0], $ModuleName, $RequiredVersion)
Expand-Archive -Path $NupkgFilePath -DestinationPath $DestinationModulePath -Force
Write-Output "Downloaded the package sucessfully"
Write-Output "Downloaded the package successfully"
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ public void CompareCmdletMetadata(

// Go through all of the breaking change checks for parameters using the ParameterMetadataHelper
_parameterMetadataHelper.CompareParameterMetadata(oldCmdlet, oldCmdlet.Parameters, newCmdlet.Parameters, issueLogger);
// Go through all of the breaking change checks for parameter sets using the ParmaterSetMetadataHelper
// Go through all of the breaking change checks for parameter sets using the ParameterSetMetadataHelper
_parameterSetMetadataHelper.CompareParameterSetMetadata(oldCmdlet, oldCmdlet.ParameterSets, newCmdlet.ParameterSets, issueLogger);
}
// If the cmdlet cannot be found, log an issue
Expand Down
2 changes: 1 addition & 1 deletion tools/TestFx/Mocks/MockContext.cs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ public void Stop()

if (HttpMockServer.Mode == HttpRecorderMode.Record)
{
// this check should be removed once we make the optimizatoin default
// this check should be removed once we make the optimization default
if (OptimizeTestRecordingFile)
{
RecordedFiles procRecFile = new RecordedFiles(recordedFilePath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ public virtual string GetMatchingKey(System.Net.Http.HttpRequestMessage request)
var agent = request.Headers.FirstOrDefault(h => h.Key.Equals("User-Agent"));
if (agent.Key != null)
{
foreach (var userAgnet in _userAgentsToIgnore)
foreach (var userAgent in _userAgentsToIgnore)
{
if (agent.Value.Any(v => v.StartsWith(userAgnet.Key, StringComparison.OrdinalIgnoreCase)))
if (agent.Value.Any(v => v.StartsWith(userAgent.Key, StringComparison.OrdinalIgnoreCase)))
{
path = RemoveOrReplaceApiVersion(path, userAgnet.Value);
path = RemoveOrReplaceApiVersion(path, userAgent.Value);
break;
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,11 @@ public virtual string GetMatchingKey(System.Net.Http.HttpRequestMessage request)
var agent = request.Headers.FirstOrDefault(h => h.Key.Equals("User-Agent"));
if (agent.Key != null)
{
foreach (var userAgnet in _userAgentsToIgnore)
foreach (var userAgent in _userAgentsToIgnore)
{
if (agent.Value.Any(v => v.StartsWith(userAgnet.Key, StringComparison.OrdinalIgnoreCase)))
if (agent.Value.Any(v => v.StartsWith(userAgent.Key, StringComparison.OrdinalIgnoreCase)))
{
requestUri = RemoveOrReplaceApiVersion(requestUri, userAgnet.Value);
requestUri = RemoveOrReplaceApiVersion(requestUri, userAgent.Value);
break;
}
}
Expand Down
10 changes: 5 additions & 5 deletions tools/TestFx/TestManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public ITestRunnerFactory WithProjectSubfolderForTests(string folderName)
}

/// <summary>
/// Overrided default script name, which by convension is the cs test class name with ps1 extension.
/// Overrides default script name, which by convention is the cs test class name with ps1 extension.
/// </summary>
/// <param name="psScriptName"></param>
/// <returns>self</returns>
Expand Down Expand Up @@ -140,7 +140,7 @@ public ITestRunnerFactory WithNewRmModules(Func<EnvironmentSetupHelper, string[]

/// <summary>
/// Adds extra RM modules in addition to the RMProfileModule and RMResourceModule,
/// witch are added in the constructor.
/// which are added in the constructor.
/// </summary>
/// <param name="buildModuleList"></param>
/// <returns></returns>
Expand All @@ -152,10 +152,10 @@ public ITestRunnerFactory WithExtraRmModules(Func<EnvironmentSetupHelper, string
}

/// <summary>
/// Set new argumets for the mock server record matcher
/// Set new arguments for the mock server record matcher
/// </summary>
/// <param name="userAgentsToIgnore">Dictionary [userAgent:apiVersion] to ignore</param>
/// <param name="resourceProviders">Dictionary [resouceProvider:apiVersion] to match</param>
/// <param name="resourceProviders">Dictionary [resourceProvider:apiVersion] to match</param>
/// <returns></returns>
public ITestRunnerFactory WithNewRecordMatcherArguments(Dictionary<string, string> userAgentsToIgnore, Dictionary<string, string> resourceProviders, bool ignoreResourceClient = true)
{
Expand Down Expand Up @@ -184,7 +184,7 @@ public ITestRunnerFactory WithCleanupAction(Action cleanupAction)
}

/// <summary>
/// Sets a new HttpMockServer.Matcher implementation. By defauls it's PermissiveRecordMatcherWithApiExclusion
/// Sets a new HttpMockServer.Matcher implementation. By default it's PermissiveRecordMatcherWithApiExclusion
/// </summary>
/// <param name="recordMatcher">delegate</param>
/// <returns>self</returns>
Expand Down
8 changes: 4 additions & 4 deletions tools/TestFx/TestModelExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public static class TestModelExtensions
/// Check that the extended properties in the two models are equal
/// </summary>
/// <param name="model">This model</param>
/// <param name="other">The model being comparied to this model</param>
/// <param name="other">The model being compared to this model</param>
/// <returns>true if the models are equal, or false otherwise</returns>
public static bool CheckExtensionsEqual(this IExtensibleModel model, IExtensibleModel other)
{
Expand All @@ -47,7 +47,7 @@ public static bool IsEqual(this IAzureTenant baseTenant, IAzureTenant other)
/// Check if this account equals another account
/// </summary>
/// <param name="baseAccount">The base account for comparison</param>
/// <param name="other">The accoutn to compare to</param>
/// <param name="other">The account to compare to</param>
/// <returns>true if the elements of both accounts are equal, otherwise false</returns>
public static bool IsEqual(this IAzureAccount baseAccount, IAzureAccount other)
{
Expand All @@ -63,7 +63,7 @@ public static bool IsEqual(this IAzureAccount baseAccount, IAzureAccount other)
/// </summary>
/// <param name="baseSub">The base subscription for comparison</param>
/// <param name="other">The subscription to compare to</param>
/// <returns>True if the elements of both subscriptiosn are equal, otherwise false</returns>
/// <returns>True if the elements of both subscriptions are equal, otherwise false</returns>
public static bool IsEqual(this IAzureSubscription baseSub, IAzureSubscription other)
{
return (baseSub == null && other == null) || (baseSub.CheckExtensionsEqual(other)
Expand All @@ -77,7 +77,7 @@ public static bool IsEqual(this IAzureSubscription baseSub, IAzureSubscription o
/// </summary>
/// <param name="environment">this environment</param>
/// <param name="other">The environment to compare to</param>
/// <returns>Treu fi the elements of the environment are equal, otherwise false</returns>
/// <returns>True if the elements of the environment are equal, otherwise false</returns>
public static bool IsEqual(this IAzureEnvironment environment, IAzureEnvironment other)
{
return (environment == null && other == null)
Expand Down