spelling: debug...

This commit is contained in:
Josh Soref
2016-08-28 06:47:18 +00:00
parent d57530812e
commit ceda3cfac4
9 changed files with 18 additions and 18 deletions
@@ -330,7 +330,7 @@ namespace Microsoft.PackageManagement.Providers.Internal.Bootstrap {
private bool ValidateFileHash(string fileFullPath, Payload payload) {
Debug("BoostrapRequest::ValidateFileHash");
Debug("BootstrapRequest::ValidateFileHash");
/* format:
* <Payload>
* <File name="nuget-anycpu-2.8.5.205.exe" sha512:hash="a314fc2dc663ae7a6b6bc6787594057396e6b3f569cd50fd5ddb4d1bbafd2b6a" />
@@ -189,7 +189,7 @@ namespace Microsoft.PackageManagement.MetaProvider.PowerShell.Internal {
// we're going to throw an error here because this indicates that the currently
// running powershell call is calling back into PM, and it has called back
// into this provider. That's just bad bad bad.
throw new Exception("Re-entrancy Violation in powershell module");
throw new Exception("Reentrancy Violation in powershell module");
}
try {
@@ -36,7 +36,7 @@ namespace Microsoft.PackageManagement.Internal.Implementation {
}
public override bool YieldPackageSource(string name, string location, bool isTrusted, bool isRegistered, bool isValidated) {
Debug(String.Format(CultureInfo.CurrentCulture, "Yielding packge source for {0} at location {1}", name, location));
Debug(String.Format(CultureInfo.CurrentCulture, "Yielding package source for {0} at location {1}", name, location));
Activity();
CommitPackageSource();
@@ -49,8 +49,8 @@ namespace Microsoft.Management.UI.Internal
/// <returns>the next highlight starting at the <paramref name="caretPosition"/></returns>
internal Run MoveAndHighlightNextNextMatch(bool forward, TextPointer caretPosition)
{
Debug.Assert(caretPosition != null, "a caret position is allways valid");
Debug.Assert(caretPosition.Parent != null && caretPosition.Parent is Run, "a caret PArent is allways a valid Run");
Debug.Assert(caretPosition != null, "a caret position is always valid");
Debug.Assert(caretPosition.Parent != null && caretPosition.Parent is Run, "a caret Parent is always a valid Run");
Run caretRun = (Run)caretPosition.Parent;
Run currentRun;
@@ -203,7 +203,7 @@ namespace Microsoft.Management.UI.Internal
{
Bold parentBold = run.Parent as Bold;
Paragraph parentParagraph = (parentBold != null ? parentBold.Parent : run.Parent) as Paragraph;
Debug.Assert(parentParagraph != null, "the documents we are saerching are built with ParagraphBuilder, which builds the document like this");
Debug.Assert(parentParagraph != null, "the documents we are searching are built with ParagraphBuilder, which builds the document like this");
return parentParagraph;
}
@@ -227,7 +227,7 @@ namespace Microsoft.Management.UI.Internal
/// <returns>the first or last run in the paragraph containing <paramref name="caretRun"/></returns>
private static Run GetFirstOrLastRun(Run caretRun, bool forward)
{
Debug.Assert(caretRun != null, "a caret run is allways valid");
Debug.Assert(caretRun != null, "a caret run is always valid");
Paragraph paragraph = GetParagraph(caretRun);
@@ -130,7 +130,7 @@ namespace Microsoft.Management.UI.Internal
return;
}
Debug.Assert(this.AvailableColumns.Count == 0, "AvailabeColumns should be empty at this point");
Debug.Assert(this.AvailableColumns.Count == 0, "AvailableColumns should be empty at this point");
PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(first);
foreach (PropertyDescriptor property in properties)
@@ -442,7 +442,7 @@ namespace Microsoft.PowerShell.Management.Activities
return;
}
_structuredTracer.DebugMessage("Executing activity '" + this.DisplayName + "', local machine (" + Environment.MachineName + ") is self-restaring");
_structuredTracer.DebugMessage("Executing activity '" + this.DisplayName + "', local machine (" + Environment.MachineName + ") is self-restarting");
base.Execute(context);
}
}
@@ -443,7 +443,7 @@ namespace Microsoft.PowerShell.Internal
{
int err = Marshal.GetLastWin32Error();
Win32Exception innerException = new Win32Exception(err);
throw new Exception("Failed to retreive the input console handle.", innerException);
throw new Exception("Failed to retrieve the input console handle.", innerException);
}
return new SafeFileHandle(handle, true);
@@ -466,7 +466,7 @@ namespace Microsoft.PowerShell.Internal
{
int err = Marshal.GetLastWin32Error();
Win32Exception innerException = new Win32Exception(err);
throw new Exception("Failed to retreive the input console handle.", innerException);
throw new Exception("Failed to retrieve the input console handle.", innerException);
}
return new SafeFileHandle(handle, true);
@@ -623,7 +623,7 @@ namespace Microsoft.PowerShell.Workflow
private long LoadSerializedMetadata(object data)
{
Debug.Assert(data.GetType() == typeof (PSWorkflowContext), "The data should be of type worklfow metadata");
Debug.Assert(data.GetType() == typeof (PSWorkflowContext), "The data should be of type workflow metadata");
PSWorkflowContext metadata = (PSWorkflowContext) data;
this.serializedWorkflowParameters = Encrypt(SerializeObject(metadata.WorkflowParameters));
@@ -757,7 +757,7 @@ namespace Microsoft.PowerShell.Workflow
private ArraySegment<byte> serializedRequiredAssemblies;
private long LoadSerializedDefinition(object data)
{
Debug.Assert(data.GetType() == typeof (PSWorkflowDefinition), "The data should be of type worklfow definition");
Debug.Assert(data.GetType() == typeof (PSWorkflowDefinition), "The data should be of type workflow definition");
PSWorkflowDefinition definition = (PSWorkflowDefinition) data;
string WorkflowXaml = definition.WorkflowXaml;
@@ -782,7 +782,7 @@ namespace Microsoft.PowerShell.Workflow
private void SaveSerializedDefinition(object data)
{
Debug.Assert(data.GetType() == typeof (PSWorkflowDefinition), "The data should be of type worklfow definition");
Debug.Assert(data.GetType() == typeof (PSWorkflowDefinition), "The data should be of type workflow definition");
PSWorkflowDefinition definition = (PSWorkflowDefinition) data;
if (firstTimeStoringDefinition)
@@ -1826,7 +1826,7 @@ namespace Microsoft.PowerShell.Workflow
CreateAndEnsureInstancePath(Metadatas, out storePath);
Debug.Assert(component.GetType() == typeof(PSWorkflowContext),
"The data should be of type worklfow metadata");
"The data should be of type workflow metadata");
PSWorkflowContext metadata = (PSWorkflowContext)component;
totalBytesWritten += SerializeAndSaveToFile(metadata.WorkflowParameters, Path.Combine(storePath, Input_xml));
@@ -1841,7 +1841,7 @@ namespace Microsoft.PowerShell.Workflow
if (firstTimeStoringDefinition)
{
Debug.Assert(component.GetType() == typeof(PSWorkflowDefinition),
"The data should be of type worklfow definition");
"The data should be of type workflow definition");
PSWorkflowDefinition definition = (PSWorkflowDefinition)component;
// there is no serialization involved, just storing xamls and reference
@@ -361,7 +361,7 @@ namespace System.Management.Automation.Interpreter
if (index == _tryHandler.GotoEndTargetIndex)
{
// run the 'Goto' that jumps out of the try/catch/finally blocks
Debug.Assert(instructions[index] is GotoInstruction, "should be the 'Goto' instruction that jumpes out the try/catch/finally");
Debug.Assert(instructions[index] is GotoInstruction, "should be the 'Goto' instruction that jumps out the try/catch/finally");
frame.InstructionIndex += instructions[index].Run(frame);
}
}
@@ -404,7 +404,7 @@ namespace System.Management.Automation.Interpreter
if (index == _tryHandler.GotoEndTargetIndex)
{
// run the 'Goto' that jumps out of the try/catch/finally blocks
Debug.Assert(instructions[index] is GotoInstruction, "should be the 'Goto' instruction that jumpes out the try/catch/finally");
Debug.Assert(instructions[index] is GotoInstruction, "should be the 'Goto' instruction that jumps out the try/catch/finally");
frame.InstructionIndex += instructions[index].Run(frame);
}
}