Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.
Merged
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
4 changes: 2 additions & 2 deletions src/Common/src/Interop/OSX/Interop.CoreFoundation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ internal static SafeCreateHandle CFStringCreateWithCString(string str)
}

/// <summary>
/// Creates a pointer to an unmanaged CFArray containing the input values. Folows the "Create Rule" where if you create it, you delete it.
/// Creates a pointer to an unmanaged CFArray containing the input values. Follows the "Create Rule" where if you create it, you delete it.
/// </summary>
/// <param name="allocator">Should be IntPtr.Zero</param>
/// <param name="values">The values to put in the array</param>
Expand All @@ -78,7 +78,7 @@ private static extern SafeCreateHandle CFArrayCreate(
IntPtr callbacks);

/// <summary>
/// Creates a pointer to an unmanaged CFArray containing the input values. Folows the "Create Rule" where if you create it, you delete it.
/// Creates a pointer to an unmanaged CFArray containing the input values. Follows the "Create Rule" where if you create it, you delete it.
/// </summary>
/// <param name="values">The values to put in the array</param>
/// <param name="numValues">The number of values in the array</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ namespace Microsoft.Win32.SafeHandles
{
/// <summary>
/// This class is a wrapper around the Create pattern in OS X where
/// if a Create* function is called, the caler must also CFRelease
/// if a Create* function is called, the caller must also CFRelease
/// on the same pointer in order to correctly free the memory.
/// </summary>
[System.Security.SecurityCritical]
Expand Down
2 changes: 1 addition & 1 deletion src/Common/src/System/SR.Core.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ private static bool UsingResourceKeys()
return false;
}

// TODO: Resouce generation tool should be modified to call this version in release build
// TODO: Resource generation tool should be modified to call this version in release build
[MethodImpl(MethodImplOptions.NoInlining)]
internal static string GetResourceString(string resourceKey)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Common/src/System/Threading/Tasks/ForceAsyncAwaiter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ internal static partial class TaskAwaiters
/// Returns an awaitable/awaiter that will ensure the continuation is executed
/// asynchronously on the thread pool, even if the task is already completed
/// by the time the await occurs. Effectively, it is equivalent to awaiting
/// with ConfigureAwait(false) and then queueing the continuation with Task.Run,
/// with ConfigureAwait(false) and then queuing the continuation with Task.Run,
/// but it avoids the extra hop if the continuation already executed asynchronously.
/// </summary>
public static ForceAsyncAwaiter ForceAsync(this Task task)
Expand Down
20 changes: 10 additions & 10 deletions src/Common/tests/System/Xml/ModuleCore/cattrbase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ public class CAttrBase : Attribute
private CAttrBase _parent = null;
private string _filter;

//Allows Inhertiance (ie: object to determine if ever been set)
private object _priority; //Allows Inhertiance
private object _implemented; //Allows Inhertiance
private object _skipped; //Allows Inhertiance
private object _error; //Allows Inhertiance
private object _security; //Allows Inhertiance
private object _filtercriteria;//Allows Inhertiance
private object[] _languages; //Allows Inhertiance
private object _xml; //Allows Inhertiance
//Allows Inheritance (i.e.: object to determine if ever been set)
private object _priority; //Allows Inheritance
private object _implemented; //Allows Inheritance
private object _skipped; //Allows Inheritance
private object _error; //Allows Inheritance
private object _security; //Allows Inheritance
private object _filtercriteria;//Allows Inheritance
private object[] _languages; //Allows Inheritance
private object _xml; //Allows Inheritance

//Constructors
public CAttrBase()
Expand Down Expand Up @@ -420,7 +420,7 @@ public virtual string File

public virtual string Files
{
//Search Pattern (ie: *.*)
//Search Pattern (i.e.: *.*)
get { return _files; }
set { _files = value; }
}
Expand Down
6 changes: 3 additions & 3 deletions src/Common/tests/System/Xml/ModuleCore/cerror.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static public IError Error
s_rIError = value;

//Setup the standard c# Console to log to LTM instead...
//ie: Console.WriteLine will automatically log to LTM
//i.e.: Console.WriteLine will automatically log to LTM
if (s_rLTMConsole == null)
{
s_rLTMConsole = new CLTMConsole();
Expand Down Expand Up @@ -244,7 +244,7 @@ static public bool Equals(object actual, object expected, string message)
try
{
//Equals is identical to Compare, except that Equals doesn't throw.
//This way if We still want to throw the exception so we get the logging and comapre block
//This way if We still want to throw the exception so we get the logging and compare block
//but the test wants to continue to do other things.
return CError.Compare(actual, expected, message);
}
Expand All @@ -260,7 +260,7 @@ static public bool Equals(bool equal, string message)
try
{
//Equals is identical to Compare, except that Equals doesn't throw.
//This way if We still want to throw the exception so we get the logging and comapre block
//This way if We still want to throw the exception so we get the logging and compare block
//but the test wants to continue to do other things.
return CError.Compare(equal, message);
}
Expand Down
6 changes: 3 additions & 3 deletions src/Common/tests/System/Xml/ModuleCore/cltmconsole.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ public override void Write(char ch)
CError.Write(ch.ToString());
}

//Overlaods - We also implement "string" since its much more effiencent and TextWriter will call this instead
//Overloads - We also implement "string" since its much more efficient and TextWriter will call this instead
public override void Write(string strText)
{
CError.Write(strText);
}

//Overlaods - We also implement "string" since its much more effiencent and TextWriter will call this instead
//Overloads - We also implement "string" since its much more efficient and TextWriter will call this instead
public override void Write(char[] ch)
{
//Note: This is a workaround the TextWriter::Write(char[]) that incorrectly
//writes 1 char at a time, which means \r\n is written sperately and then gets fixed
//writes 1 char at a time, which means \r\n is written separately and then gets fixed
//up to be two carriage returns!
if (ch != null)
{
Expand Down
4 changes: 2 additions & 2 deletions src/Common/tests/System/Xml/ModuleCore/cmodinfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@ public CModInfo()
static internal void Dispose()
{
//Reset the info.
//Since this is a static class, (to make it simplier to access from anywhere in your code)
//Since this is a static class, (to make it simpler to access from anywhere in your code)
//we need to reset this info everytime a test is run - so if you don't select an alias
//the next time it doesn't use the previous alias setting - ie: ProviderInfo doesn't
//the next time it doesn't use the previous alias setting - i.e.: ProviderInfo doesn't
//get called when no alias is selected...
s_strCommandLine = null;
s_hashOptions = null;
Expand Down
2 changes: 1 addition & 1 deletion src/Common/tests/System/Xml/ModuleCore/cparser.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ static public MyDict<string, string> ParseKeywords(string str, Tokens tokens)
case PARSE.Keyword:
if (tokens.Equal.IndexOf(ch) >= 0)
{
//Note: We have a case-insentive hashtable so we don't have to lowercase
//Note: We have a case-insensitive hashtable so we don't have to lowercase
key = str.Substring(keyStart, index - keyStart).Trim();
state = PARSE.Equal;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Common/tests/System/Xml/ModuleCore/ctestbase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public virtual CAttrBase Attribute

protected abstract CAttrBase CreateAttribute();

//Note: These are just a mere convience to access the attribute values
//Note: These are just a mere convenience to access the attribute values
//for this particular object. Also note that for non-attribute based
//scenarios (dynamic), the attribute class will be created just to hold
//the values
Expand Down
20 changes: 10 additions & 10 deletions src/Common/tests/System/Xml/ModuleCore/ctestcase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public override tagVARIATION_STATUS Execute()
foreach (object child in children)
{
CTestCase childTc = child as CTestCase;
if (childTc != null) //nested test test case class will be child of a test case
if (childTc != null) //nested test case class will be child of a test case
{
childTc.Init();
childTc.Execute();
Expand Down Expand Up @@ -90,7 +90,7 @@ public override tagVARIATION_STATUS Execute()
catch (Exception e)
{
System.Console.WriteLine(indent + var.Desc);
System.Console.WriteLine("unexpected exception happend:{0}", e.Message);
System.Console.WriteLine("unexpected exception happened:{0}", e.Message);
System.Console.WriteLine(e.StackTrace);
System.Console.WriteLine(indent + " FAILED");
TestModule.FailCount++;
Expand Down Expand Up @@ -137,7 +137,7 @@ public void RunVariation(dlgtTestVariation testmethod, Variation curVar)
catch (Exception e)
{
System.Console.WriteLine(indent + curVar.Desc);
System.Console.WriteLine("unexpected exception happend:{0}", e.Message);
System.Console.WriteLine("unexpected exception happened:{0}", e.Message);
System.Console.WriteLine(e.StackTrace);
System.Console.WriteLine(indent + " FAILED");
TestModule.FailCount++;
Expand Down Expand Up @@ -178,9 +178,9 @@ public CVariation CurVariation
{
//Return the current variation:
//Note: We do this so that within the variation the user can have access to all the
//atrributes of that particular method. Unlike the TestModule/TestCase which are objects
//attributes of that particular method. Unlike the TestModule/TestCase which are objects
//and have properties to reference, the variations are function and don't. Each variation
//could also have multiple atrributes (repeats), so we can't simply use the StackFrame
//could also have multiple attributes (repeats), so we can't simply use the StackFrame
//to determine this info...
get { return _curvariation; }
set { _curvariation = value; }
Expand Down Expand Up @@ -219,8 +219,8 @@ public virtual tagVARIATION_STATUS ExecuteVariation(int index)
}

//Before exiting make sure we reset our CurVariation to null, to prevent
//incorrect uses of CurVariation wihtin the TestCase, but not actually a running
//variation. This will only be valid within a fucntion with a //[Variation] attribute...
//incorrect uses of CurVariation within the TestCase, but not actually a running
//variation. This will only be valid within a function with a //[Variation] attribute...
_curvariation = null;
return (tagVARIATION_STATUS)result;
}
Expand Down Expand Up @@ -248,11 +248,11 @@ public virtual void DetermineVariations()
//Default - no sort
bool bSort = false;
//Normally the reflection Type.GetMethods() api returns the methods in order
//of how thery appear in the code. But it will change that order depending
//of how they appear in the code. But it will change that order depending
//upon if there are virtual functions, which are returned first before other
//non-virtual functions. Then there are also inherited classes where the
//derived classes methods are returned before the inherted class. So we have
//added the support of specifing an id=x, as an attribute so you can have
//derived classes methods are returned before the inherited class. So we have
//added the support of specifying an id=x, as an attribute so you can have
//then sorted and displayed however your see fit.
if (bSort)
Children.Sort(/*Default sort is based upon IComparable of each item*/);
Expand Down
2 changes: 1 addition & 1 deletion src/Common/tests/System/Xml/ModuleCore/ctestexception.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public CTestException(int result, string message)
public CTestException(int result, string message, object actual, object expected, Exception inner)
: base(message, inner)
{
//Note: iResult is the variation result (ie: TEST_PASS, TEST_FAIL, etc...)
//Note: iResult is the variation result (i.e.: TEST_PASS, TEST_FAIL, etc...)
//Setup the exception
Result = result;
Actual = actual;
Expand Down
14 changes: 7 additions & 7 deletions src/Common/tests/System/Xml/ModuleCore/ctestmodule.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public CTestModule(string desc, string owner, int version)
{
_clsid = GetType().ToString();

//The attribute should take precendence
//The attribute should take precedence
if (this.Owner == null)
this.Owner = owner;
if (this.Version <= 0)
Expand Down Expand Up @@ -195,11 +195,11 @@ public virtual void DetermineTestCases()
bool bSort = false;

//Normally the reflection Type.GetMethods() api returns the methods in order
//of how thery appear in the code. But it will change that order depending
//of how they appear in the code. But it will change that order depending
//upon if there are virtual functions, which are returned first before other
//non-virtual functions. Then there are also many times were people want multiple
//source files, so its totally up the compiler on how it pulls in the files (*.cs).
//So we have added the support of specifing an id=x, as an attribute so you can have
//So we have added the support of specifying an id=x, as an attribute so you can have
//then sorted and displayed however your see fit.
if (bSort)
Children.Sort(/*Default sort is based upon IComparable of each item*/);
Expand All @@ -215,9 +215,9 @@ protected virtual void DetermineFilters()

protected virtual string FilterScope(string xpath)
{
//Basically we want to allow either simply filtering at the variation node (ie: no scope),
//Basically we want to allow either simply filtering at the variation node (i.e.: no scope),
//in which case we'll just add the 'assumed' scope, or allow filtering at any level.
//We also want to be consitent with the XmlDriver in which all filters are predicates only.
//We also want to be consistent with the XmlDriver in which all filters are predicates only.
string varfilter = "//Variation[{0}]";
if (xpath != null)
{
Expand All @@ -236,9 +236,9 @@ protected virtual string FilterScope(string xpath)
public CTestCase CurTestCase
{
//Return the current testcase:
//Note: We do this so that within global functions (ie: at the module level) the user can
//Note: We do this so that within global functions (i.e.: at the module level) the user can
//have know which testcase/variation were in, without having to pass this state from
//execute arround
//execute around
get { return _curtestcase; }
set { _curtestcase = value; }
}
Expand Down
4 changes: 2 additions & 2 deletions src/Common/tests/System/Xml/ModuleCore/cvariation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ public CVariation(CTestCase testcase, string desc, string function)
: base(function, desc)
{
//Note: The parent automatically gets setup on AddVariation so we don't
//really need to pass in the testcase, left here for backward compatibilty
//really need to pass in the testcase, left here for backward compatibility
//of inherited drivers.
}

public CVariation(CTestCase testcase, string desc, TestFunc function)
: base(null, desc)
{
//Note: The parent automatically gets setup on AddVariation so we don't
//really need to pass in the testcase, left here for backward compatibilty
//really need to pass in the testcase, left here for backward compatibility
//of inherited drivers.
_pfunc = function;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Common/tests/System/Xml/ModuleCore/interop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public enum tagERRORLEVEL
////////////////////////////////////////////////////////////////////////
public enum tagCONSOLEFLAGS
{
CONSOLE_RAW = 0x00000000, //No fixup - Don't use, unless you know the text contains no CR/LF, no Xml reserverd tokens, or no other non-respresentable characters
CONSOLE_RAW = 0x00000000, //No fixup - Don't use, unless you know the text contains no CR/LF, no Xml reserved tokens, or no other non-representable characters
CONSOLE_TEXT = 0x00000001, //Default - Automatically fixup CR/LF correctly for log files, fixup xml tokens, etc
CONSOLE_XML = 0x00000002, //For Xml - User text is placed into a CDATA section (with no xml fixups)
CONSOLE_IGNORE = 0x00000004, //Ignore - User text is placed into ignore tags (can combine this with console_xml as well)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public WatcherChangeTypes ChangeType
}

/// <devdoc>
/// Gets the fully qualifed path of the affected file or directory.
/// Gets the fully qualified path of the affected file or directory.
/// </devdoc>
public string FullPath
{
Expand Down
Loading