diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs index 02f712aa3d..80c2f474fa 100644 --- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs +++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs @@ -388,7 +388,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets /// public CimSessionProxy(string computerName, CimInstance cimInstance) { - DebugHelper.WriteLogEx("ComptuerName {0}; cimInstance.CimSessionInstanceID = {1}; cimInstance.CimSessionComputerName = {2}.", + DebugHelper.WriteLogEx("ComputerName {0}; cimInstance.CimSessionInstanceID = {1}; cimInstance.CimSessionComputerName = {2}.", 0, computerName, cimInstance.GetCimSessionInstanceId(), @@ -716,7 +716,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets lock (this.stateLock) { - Debug.Assert(this.operation == operation, "Caller should verify that the operation to reomove is the operation in progress"); + Debug.Assert(this.operation == operation, "Caller should verify that the operation to remove is the operation in progress"); this.DisposeCancelOperation(); @@ -2139,7 +2139,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets if (!match) { - DebugHelper.WriteLog("Qualifer name does not match: {0}", 1, context.QualifierName); + DebugHelper.WriteLog("Qualifier name does not match: {0}", 1, context.QualifierName); return match; } } diff --git a/src/Microsoft.PackageManagement.NuGetProvider/nugetlightprovider.cs b/src/Microsoft.PackageManagement.NuGetProvider/nugetlightprovider.cs index dd038b1f1b..60c2977022 100644 --- a/src/Microsoft.PackageManagement.NuGetProvider/nugetlightprovider.cs +++ b/src/Microsoft.PackageManagement.NuGetProvider/nugetlightprovider.cs @@ -209,7 +209,7 @@ namespace Microsoft.PackageManagement.NuGetProvider throw new ArgumentNullException("request"); } try { - request.Debug(string.Format(CultureInfo.InvariantCulture, "AddPackageSource - ProvidenName = '{0}', name='{1}', location='{2}', trusted='{3}'", PackageProviderName, name, location, trusted)); + request.Debug(string.Format(CultureInfo.InvariantCulture, "AddPackageSource - ProviderName = '{0}', name='{1}', location='{2}', trusted='{3}'", PackageProviderName, name, location, trusted)); // Error out if a user does not provide package source Name if (string.IsNullOrWhiteSpace(name)) diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs index 5dd3823bb7..306fd02d6a 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ImplicitRemotingCommands.cs @@ -1389,9 +1389,9 @@ namespace Microsoft.PowerShell.Commands Dictionary alias2resolvedCommandName, PSObject remoteCommandInfo) { - Dbg.Assert(name2commandMetadata != null, "name2commandMetadata paremeter != null"); - Dbg.Assert(alias2resolvedCommandName != null, "alias2resolvedCommandName paremeter != null"); - Dbg.Assert(remoteCommandInfo != null, "remoteCommandInfo paremeter != null"); + Dbg.Assert(name2commandMetadata != null, "name2commandMetadata parameter != null"); + Dbg.Assert(alias2resolvedCommandName != null, "alias2resolvedCommandName parameter != null"); + Dbg.Assert(remoteCommandInfo != null, "remoteCommandInfo parameter != null"); string resolvedCommandName; CommandMetadata commandMetadata = RehydrateCommandMetadata(remoteCommandInfo, out resolvedCommandName); @@ -1455,8 +1455,8 @@ namespace Microsoft.PowerShell.Commands private void AddRemoteTypeDefinition(IList listOfTypeDefinitions, PSObject remoteTypeDefinition) { - Dbg.Assert(listOfTypeDefinitions != null, "listOfTypeDefinitions paremeter != null"); - Dbg.Assert(remoteTypeDefinition != null, "remoteTypeDefinition paremeter != null"); + Dbg.Assert(listOfTypeDefinitions != null, "listOfTypeDefinitions parameter != null"); + Dbg.Assert(remoteTypeDefinition != null, "remoteTypeDefinition parameter != null"); ExtendedTypeDefinition typeDefinition = ConvertTo("Get-FormatData", remoteTypeDefinition); if (!IsSafeTypeDefinition(typeDefinition)) diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommand.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommand.cs index 0d7c829f5d..ad3fb42ddf 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommand.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/ShowCommand/ShowCommand.cs @@ -371,7 +371,7 @@ namespace Microsoft.PowerShell.Commands { CommandInfo commandInfo; this.GetCommandInfoAndModules(out commandInfo, out _importedModules); - Diagnostics.Assert(commandInfo != null, "GetCommandInfoAndModules would throw a termninating error/exception"); + Diagnostics.Assert(commandInfo != null, "GetCommandInfoAndModules would throw a terminating error/exception"); try { diff --git a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Update-TypeData.cs b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Update-TypeData.cs index 1373f63f5b..2507003129 100644 --- a/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Update-TypeData.cs +++ b/src/Microsoft.PowerShell.Commands.Utility/commands/utility/Update-TypeData.cs @@ -376,7 +376,7 @@ namespace Microsoft.PowerShell.Commands } else { - Dbg.Assert(false, "Either RunspaceConfiguration or InitiaSessionState must be non-null for Update-Typedata to work"); + Dbg.Assert(false, "Either RunspaceConfiguration or InitialSessionState must be non-null for Update-Typedata to work"); } } } @@ -494,7 +494,7 @@ namespace Microsoft.PowerShell.Commands } else { - Dbg.Assert(false, "Either RunspaceConfiguration or InitiaSessionState must be non-null for Update-Typedata to work"); + Dbg.Assert(false, "Either RunspaceConfiguration or InitialSessionState must be non-null for Update-Typedata to work"); } } } @@ -887,7 +887,7 @@ namespace Microsoft.PowerShell.Commands } else { - Dbg.Assert(false, "Either RunspaceConfiguration or InitiaSessionState must be non-null for Update-Typedata to work"); + Dbg.Assert(false, "Either RunspaceConfiguration or InitialSessionState must be non-null for Update-Typedata to work"); } } @@ -1069,7 +1069,7 @@ namespace Microsoft.PowerShell.Commands } else { - Dbg.Assert(false, "Either RunspaceConfiguration or InitiaSessionState must be non-null for Update-FormatData to work"); + Dbg.Assert(false, "Either RunspaceConfiguration or InitialSessionState must be non-null for Update-FormatData to work"); } } } @@ -1289,7 +1289,7 @@ namespace Microsoft.PowerShell.Commands } else { - Dbg.Assert(false, "Either RunspaceConfiguration or InitiaSessionState must be non-null for Remove-Typedata to work"); + Dbg.Assert(false, "Either RunspaceConfiguration or InitialSessionState must be non-null for Remove-Typedata to work"); } } } diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/WorkflowJobSourceAdapter.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/WorkflowJobSourceAdapter.cs index 233b034138..dad556bb1f 100644 --- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/WorkflowJobSourceAdapter.cs +++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/WorkflowJobSourceAdapter.cs @@ -481,7 +481,7 @@ namespace Microsoft.PowerShell.Workflow { //ignoring the error message and just logging them into ETW _tracer.WriteMessage(String.Format(CultureInfo.InvariantCulture, - "WorkflowJobSourceAdapter: Ingnoring the exception. Exception details: {0}", + "WorkflowJobSourceAdapter: Ignoring the exception. Exception details: {0}", exception)); innerException = exception; _structuredTracer.JobRemoveError(job.InstanceId, @@ -499,7 +499,7 @@ namespace Microsoft.PowerShell.Workflow { //ignoring the error message and just logging them into ETW _tracer.WriteMessage(String.Format(CultureInfo.InvariantCulture, - "WorkflowJobSourceAdapter: Ingnoring the exception. Exception details: {0}", + "WorkflowJobSourceAdapter: Ignoring the exception. Exception details: {0}", exception)); innerException = exception; } @@ -547,7 +547,7 @@ namespace Microsoft.PowerShell.Workflow { //ignoring the error message and just logging them into ETW _tracer.WriteMessage(String.Format(CultureInfo.InvariantCulture, - "WorkflowJobSourceAdapter: Ingnoring the exception. Exception details: {0}", + "WorkflowJobSourceAdapter: Ignoring the exception. Exception details: {0}", exception)); _structuredTracer.JobRemoveError(job.InstanceId, @@ -566,7 +566,7 @@ namespace Microsoft.PowerShell.Workflow { //ignoring the error message and just logging them into ETW _tracer.WriteMessage(String.Format(CultureInfo.InvariantCulture, - "WorkflowJobSourceAdapter: Ingnoring the exception. Exception details: {0}", + "WorkflowJobSourceAdapter: Ignoring the exception. Exception details: {0}", exception)); } job.Dispose(); @@ -904,7 +904,7 @@ namespace Microsoft.PowerShell.Workflow "Shutting down WSMan server: Exception details: {0}", exception)); - Dbg.Assert(false, "Exception has happned during the shutdown API. [Message] " + exception.Message + "[StackTrace] " + exception.StackTrace); + Dbg.Assert(false, "Exception has happened during the shutdown API. [Message] " + exception.Message + "[StackTrace] " + exception.StackTrace); } } diff --git a/src/System.Management.Automation/cimSupport/cmdletization/ScriptWriter.cs b/src/System.Management.Automation/cimSupport/cmdletization/ScriptWriter.cs index f4ed207908..fbbde9f06f 100644 --- a/src/System.Management.Automation/cimSupport/cmdletization/ScriptWriter.cs +++ b/src/System.Management.Automation/cimSupport/cmdletization/ScriptWriter.cs @@ -1633,7 +1633,7 @@ function __cmdletization_BindCommonParameters methodName = "FilterByMaxPropertyValue"; break; default: - Dbg.Assert(false, "Unrecognize query xml element"); + Dbg.Assert(false, "Unrecognized query xml element"); methodName = "NotAValidMethod"; break; } diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataQuery.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataQuery.cs index 059421ed8d..020564f57a 100644 --- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataQuery.cs +++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataQuery.cs @@ -362,7 +362,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format } else { - Diagnostics.Assert(false, "unknonw shape: this should never happen unless a new shape is added"); + Diagnostics.Assert(false, "unknown shape: this should never happen unless a new shape is added"); return null; } return GetView(expressionFactory, db, t, typeNames, viewName); diff --git a/src/System.Management.Automation/engine/InitialSessionState.cs b/src/System.Management.Automation/engine/InitialSessionState.cs index ff068847d0..2872edc44a 100644 --- a/src/System.Management.Automation/engine/InitialSessionState.cs +++ b/src/System.Management.Automation/engine/InitialSessionState.cs @@ -5722,7 +5722,7 @@ if($paths) { Diagnostics.Assert((object)pair.Value.HelpFileName == (object)other.HelpFileName, "Pre-generated Provider help file incorrect"); Diagnostics.Assert(pair.Value.ImplementingType == other.ImplementingType, "Pre-generated Provider implementing type incorrect"); Diagnostics.Assert(string.Equals(pair.Value.Name, other.Name, StringComparison.Ordinal), "Pre-generated Provider name incorrect"); - Diagnostics.Assert(pair.Value.PSSnapIn == other.PSSnapIn, "Pre-generated Provider snappin type incorrect"); + Diagnostics.Assert(pair.Value.PSSnapIn == other.PSSnapIn, "Pre-generated Provider snapin type incorrect"); Diagnostics.Assert(pair.Value.Module == other.Module, "Pre-generated Provider module incorrect"); Diagnostics.Assert(pair.Value.Visibility == other.Visibility, "Pre-generated Provider visibility incorrect"); } @@ -5741,7 +5741,7 @@ if($paths) { Diagnostics.Assert((object)pair.Value.HelpFileName == (object)other.HelpFileName, "Pre-generated Provider help file incorrect"); Diagnostics.Assert(pair.Value.ImplementingType == other.ImplementingType, "Pre-generated Provider implementing type incorrect"); Diagnostics.Assert(string.Equals(pair.Value.Name, other.Name, StringComparison.Ordinal), "Pre-generated Provider name incorrect"); - Diagnostics.Assert(pair.Value.PSSnapIn == other.PSSnapIn, "Pre-generated Provider snappin type incorrect"); + Diagnostics.Assert(pair.Value.PSSnapIn == other.PSSnapIn, "Pre-generated Provider snapin type incorrect"); Diagnostics.Assert(pair.Value.Module == other.Module, "Pre-generated Provider module incorrect"); Diagnostics.Assert(pair.Value.Visibility == other.Visibility, "Pre-generated Provider visibility incorrect"); } diff --git a/src/System.Management.Automation/engine/InternalCommands.cs b/src/System.Management.Automation/engine/InternalCommands.cs index f0d745336b..9ecc284a8a 100644 --- a/src/System.Management.Automation/engine/InternalCommands.cs +++ b/src/System.Management.Automation/engine/InternalCommands.cs @@ -334,7 +334,7 @@ namespace Microsoft.PowerShell.Commands // get the matched member(s) ReadOnlyPSMemberInfoCollection members = _inputObject.Members.Match(_propertyOrMethodName, PSMemberTypes.All); - Dbg.Assert(members != null, "The retrun value of Members.Match shoudl never be null"); + Dbg.Assert(members != null, "The return value of Members.Match should never be null"); if (members.Count > 1) { diff --git a/src/System.Management.Automation/engine/MshMemberInfo.cs b/src/System.Management.Automation/engine/MshMemberInfo.cs index d44e3e7fd1..dc8c8d30df 100644 --- a/src/System.Management.Automation/engine/MshMemberInfo.cs +++ b/src/System.Management.Automation/engine/MshMemberInfo.cs @@ -4532,7 +4532,7 @@ namespace System.Management.Automation delegateOwner = PSObject.AsPSObject(delegateOwner); foreach (CollectionEntry collection in Collections) { - Diagnostics.Assert(delegateOwner != null, "all integrating collections with non emtpty collections have an associated PSObject"); + Diagnostics.Assert(delegateOwner != null, "all integrating collections with non empty collections have an associated PSObject"); T memberAsT = collection.GetMember((PSObject)delegateOwner, name); if (memberAsT != null) { diff --git a/src/System.Management.Automation/engine/NativeCommandProcessor.cs b/src/System.Management.Automation/engine/NativeCommandProcessor.cs index c8d3d94012..ecaf3aebb1 100644 --- a/src/System.Management.Automation/engine/NativeCommandProcessor.cs +++ b/src/System.Management.Automation/engine/NativeCommandProcessor.cs @@ -1405,7 +1405,7 @@ namespace System.Management.Automation /// internal void Start(Process process, NativeCommandIOFormat inputFormat) { - Dbg.Assert(process != null, "caller should validate the paramter"); + Dbg.Assert(process != null, "caller should validate the parameter"); //Get the encoding for writing to native command. Note we get the Encoding //from the current scope so a script or function can use a different encoding diff --git a/src/System.Management.Automation/engine/hostifaces/Command.cs b/src/System.Management.Automation/engine/hostifaces/Command.cs index 0b86e949d9..0271bbe069 100644 --- a/src/System.Management.Automation/engine/hostifaces/Command.cs +++ b/src/System.Management.Automation/engine/hostifaces/Command.cs @@ -358,7 +358,7 @@ namespace System.Management.Automation.Runspaces void SetMergeSettingsOnCommandProcessor(CommandProcessorBase commandProcessor) { - Dbg.Assert(commandProcessor != null, "caller should valiadate the parameter"); + Dbg.Assert(commandProcessor != null, "caller should validate the parameter"); MshCommandRuntime mcr = commandProcessor.Command.commandRuntime as MshCommandRuntime; @@ -477,8 +477,8 @@ namespace System.Management.Automation.Runspaces break; default: // This should never happen... - Diagnostics.Assert(false, "Invalid langage mode was set when building a ScriptCommandProcessor"); - throw new InvalidOperationException("Invalid langage mode was set when building a ScriptCommandProcessor"); + Diagnostics.Assert(false, "Invalid language mode was set when building a ScriptCommandProcessor"); + throw new InvalidOperationException("Invalid language mode was set when building a ScriptCommandProcessor"); } if (scriptBlock.UsesCmdletBinding) diff --git a/src/System.Management.Automation/engine/parser/CharTraits.cs b/src/System.Management.Automation/engine/parser/CharTraits.cs index 8b09af3640..6aed5f2606 100644 --- a/src/System.Management.Automation/engine/parser/CharTraits.cs +++ b/src/System.Management.Automation/engine/parser/CharTraits.cs @@ -68,7 +68,7 @@ namespace System.Management.Automation.Language { static CharExtensions() { - Diagnostics.Assert(s_traits.Length == 128, "Extention methods rely on this table size."); + Diagnostics.Assert(s_traits.Length == 128, "Extension methods rely on this table size."); } private static readonly CharTraits[] s_traits = new CharTraits[] diff --git a/src/System.Management.Automation/engine/parser/ast.cs b/src/System.Management.Automation/engine/parser/ast.cs index e87da37d0f..fedd5a2d8a 100644 --- a/src/System.Management.Automation/engine/parser/ast.cs +++ b/src/System.Management.Automation/engine/parser/ast.cs @@ -10698,7 +10698,7 @@ namespace System.Management.Automation.Language return ExtractUsingVariableImpl(memberExpr.Expression); } - Diagnostics.Assert(false, "We should alwasy be able to get a VariableExpressionAst from a UsingExpressionAst"); + Diagnostics.Assert(false, "We should always be able to get a VariableExpressionAst from a UsingExpressionAst"); return null; } diff --git a/src/System.Management.Automation/engine/remoting/commands/newrunspacecommand.cs b/src/System.Management.Automation/engine/remoting/commands/newrunspacecommand.cs index 2abe99ef73..bada3b96f7 100644 --- a/src/System.Management.Automation/engine/remoting/commands/newrunspacecommand.cs +++ b/src/System.Management.Automation/engine/remoting/commands/newrunspacecommand.cs @@ -246,7 +246,7 @@ namespace Microsoft.PowerShell.Commands default: { - Dbg.Assert(false, "Missing paramenter set in switch statement"); + Dbg.Assert(false, "Missing parameter set in switch statement"); remoteRunspaces = new List(); // added to avoid prefast warning } break; diff --git a/src/System.Management.Automation/engine/remoting/common/fragmentor.cs b/src/System.Management.Automation/engine/remoting/common/fragmentor.cs index c050aede87..5930c9ca86 100644 --- a/src/System.Management.Automation/engine/remoting/common/fragmentor.cs +++ b/src/System.Management.Automation/engine/remoting/common/fragmentor.cs @@ -1098,7 +1098,7 @@ namespace System.Management.Automation.Remoting internal PSObject DeserializeToPSObject(Stream serializedDataStream) { Dbg.Assert(null != serializedDataStream, "Cannot Deserialize null data"); - Dbg.Assert(serializedDataStream.Length != 0, "Cannot Deserialze empty data"); + Dbg.Assert(serializedDataStream.Length != 0, "Cannot Deserialize empty data"); object result = null; using (XmlReader xmlReader = XmlReader.Create(serializedDataStream, InternalDeserializer.XmlReaderSettingsForCliXml)) diff --git a/src/System.Management.Automation/engine/remoting/server/serverremotesession.cs b/src/System.Management.Automation/engine/remoting/server/serverremotesession.cs index 8b1c2c2242..c87de7adcf 100644 --- a/src/System.Management.Automation/engine/remoting/server/serverremotesession.cs +++ b/src/System.Management.Automation/engine/remoting/server/serverremotesession.cs @@ -692,7 +692,7 @@ namespace System.Management.Automation.Remoting runspacepoolInitData.Serialize(stream, fragmentor); stream.Exit(); byte[] outbuffer = stream.Read(); - Dbg.Assert(outbuffer != null, "connet response data should be serialized"); + Dbg.Assert(outbuffer != null, "connect response data should be serialized"); stream.Dispose(); //we are done connectResponseData = outbuffer; diff --git a/src/System.Management.Automation/engine/remoting/server/serverremotesessionstatemachine.cs b/src/System.Management.Automation/engine/remoting/server/serverremotesessionstatemachine.cs index b1de633681..7bbcbc67d9 100644 --- a/src/System.Management.Automation/engine/remoting/server/serverremotesessionstatemachine.cs +++ b/src/System.Management.Automation/engine/remoting/server/serverremotesessionstatemachine.cs @@ -457,7 +457,7 @@ namespace System.Management.Automation.Remoting throw PSTraceSource.NewArgumentNullException("fsmEventArg"); } - Dbg.Assert(_state == RemoteSessionState.NegotiationSent, "State must be NeogtiationReceived"); + Dbg.Assert(_state == RemoteSessionState.NegotiationSent, "State must be NegotiationReceived"); Dbg.Assert(fsmEventArg.StateEvent == RemoteSessionEvent.NegotiationCompleted, "StateEvent must be NegotiationCompleted"); if (fsmEventArg.StateEvent != RemoteSessionEvent.NegotiationCompleted) @@ -921,7 +921,7 @@ namespace System.Management.Automation.Remoting //***TODO*** Deal with this on the client side. Key exchange packets should have additional information //that identify the context of negotiation. Just like callId in SetMax and SetMinRunspaces messages Dbg.Assert(_state >= RemoteSessionState.Established, - "Key Receving can only be raised after reaching the Established state"); + "Key Receiving can only be raised after reaching the Established state"); switch (eventArgs.StateEvent) { diff --git a/src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cs b/src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cs index 4cfb113f90..7115ad6bbf 100644 --- a/src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cs +++ b/src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cs @@ -714,7 +714,7 @@ namespace System.Management.Automation else { // If this assertion fires, the command name is determined incorrectly. - Diagnostics.Assert(commandNameAst is CommandParameterAst, "Unxpected element not handled correctly."); + Diagnostics.Assert(commandNameAst is CommandParameterAst, "Unexpected element not handled correctly."); commandName = commandNameAst.Extent.Text; } @@ -739,7 +739,7 @@ namespace System.Management.Automation // Process the contents of a splatted variable into the arguments for this // command. If the variable contains a hashtable, distribute the key/value pairs - // If it's an enumberable, then distribute the values as $args and finally + // If it's an enumerable, then distribute the values as $args and finally // if it's a scalar, then the effect is equivalent to $var object splattedValue = _context.GetVariableValue(variableAst.VariablePath); foreach (var splattedParameter in PipelineOps.Splat(splattedValue, variableAst.Extent)) diff --git a/src/System.Management.Automation/utils/CryptoUtils.cs b/src/System.Management.Automation/utils/CryptoUtils.cs index 302ff07b40..327ce46cc0 100644 --- a/src/System.Management.Automation/utils/CryptoUtils.cs +++ b/src/System.Management.Automation/utils/CryptoUtils.cs @@ -1032,7 +1032,7 @@ namespace System.Management.Automation.Internal } // if (rsa != null... else { - Dbg.Assert(false, "Session key not availble to encrypt secure string"); + Dbg.Assert(false, "Session key not available to encrypt secure string"); } return encryptedDataAsString; @@ -1392,7 +1392,7 @@ namespace System.Management.Automation.Internal /// internal bool ImportEncryptedSessionKey(string encryptedSessionKey) { - Dbg.Assert(!String.IsNullOrEmpty(encryptedSessionKey), "encrypted sessoin key passed in cannot be null"); + Dbg.Assert(!String.IsNullOrEmpty(encryptedSessionKey), "encrypted session key passed in cannot be null"); try {