Skip to content
This repository was archived by the owner on Jun 30, 2023. It is now read-only.

Commit 7488d0f

Browse files
committed
Fix typos in comments
1 parent 5ad53dd commit 7488d0f

18 files changed

+26
-26
lines changed

src/Moq/Moq.Sdk/Behavior.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public Behavior(InvokeBehavior invoke, string displayName)
2828
/// delegate and friendly display name.
2929
/// </summary>
3030
/// <remarks>
31-
/// Use this constructor overload whenver constructing the display
31+
/// Use this constructor overload whenever constructing the display
3232
/// name is somewhat expensive.
3333
/// </remarks>
3434
public Behavior(InvokeBehavior invoke, Lazy<string> displayName)

src/Moq/Moq.Sdk/IMockFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public interface IMockFactory
1515
/// <param name="baseType">The base type (or main interface) of the mock.</param>
1616
/// <param name="implementedInterfaces">Additional interfaces implemented by the mock, or an empty array.</param>
1717
/// <param name="construtorArguments">
18-
/// Contructor arguments if the <paramref name="baseType" /> is a class, rather than an interface, or an empty array.
18+
/// Constructor arguments if the <paramref name="baseType" /> is a class, rather than an interface, or an empty array.
1919
/// </param>
2020
/// <returns>A mock that implements <see cref="IMocked"/> in addition to the specified interfaces (if any).</returns>
2121
object CreateMock(Assembly mocksAssembly, Type baseType, Type[] implementedInterfaces, object[] construtorArguments);

src/Moq/Moq.Sdk/MockContext.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public static class MockContext
1717
/// <summary>
1818
/// The last invocation on the mock, turned into an <see cref="IMockSetup"/>
1919
/// ready for use together with the <see cref="IMock.BehaviorFor(IMockSetup)"/>
20-
/// method to locate the maching <see cref="IMockBehavior"/> to add new behaviors
20+
/// method to locate the matching <see cref="IMockBehavior"/> to add new behaviors
2121
/// when a matching invocation is performed.
2222
/// </summary>
2323
/// <remarks>

src/Moq/Moq/CallbackExtension.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ static TResult Callback<TResult>(this TResult target, Action<IArgumentCollection
2323

2424
// If there is already a behavior wrap it instead,
2525
// so we can do a callback after even if it's a
26-
// shortcircuiting one like Returns.
26+
// short-circuiting one like Returns.
2727
if (behavior.Behaviors.Count > 0)
2828
{
2929
var wrapped = behavior.Behaviors.Pop();

src/Moq/Moq/ReturnsBehavior.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace Moq
77
{
88
/// <summary>
99
/// A custom behavior for returning values, so that
10-
/// the actual value to return can be replaced on succesive
10+
/// the actual value to return can be replaced on successive
1111
/// <see cref="ReturnsExtension"/> method calls.
1212
/// </summary>
1313
[DebuggerDisplay("{DebuggerValue}", Name = "Returns", Type = nameof(ReturnsBehavior))]

src/Moq/Moq/ReturnsExtension.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ static TResult Returns<TResult>(Delegate value, InvokeBehavior behavior)
6666
var setup = MockContext.CurrentSetup;
6767
if (setup != null)
6868
{
69-
// TODO: Is this even necessary given that intellisense gives us
70-
// the rigth compiler safety already?
69+
// TODO: Is this even necessary given that IntelliSense gives us
70+
// the right compiler safety already?
7171
setup.Invocation.EnsureCompatible(value);
7272

7373
var mock = ((IMocked)setup.Invocation.Target).Mock;

src/Stunts/Stunts.Analyzer/DiagnosticsExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static class DiagnosticsExtensions
2121
};
2222

2323
/// <summary>
24-
/// Gets the diangostics that represent build errors that happen when generated
24+
/// Gets the diagnostics that represent build errors that happen when generated
2525
/// code is out of date.
2626
/// </summary>
2727
public static Diagnostic[] GetCompilationErrors(this Compilation compilation)

src/Stunts/Stunts.Analyzer/StuntGeneratorAnalyzer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,12 +50,12 @@ protected StuntGeneratorAnalyzer(NamingConvention naming, Type generatorAttribut
5050
public virtual DiagnosticDescriptor OutdatedDiagnostic => StuntDiagnostics.OutdatedStunt;
5151

5252
/// <summary>
53-
/// Returns the single <see cref="MissingDiagnostic"/> this analyer supports.
53+
/// Returns the single <see cref="MissingDiagnostic"/> this analyzer supports.
5454
/// </summary>
5555
public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics
5656
{
5757
// NOTE: this creates the return value at this point because both Missing and Outdated
58-
// descriptors can be overriden as a customization point.
58+
// descriptors can be overridden as a customization point.
5959
get { return ImmutableArray.Create(MissingDiagnostic, OutdatedDiagnostic); }
6060
}
6161

@@ -74,7 +74,7 @@ void AnalyzeSyntaxNode(SyntaxNodeAnalysisContext context)
7474
var generator = context.Compilation.GetTypeByMetadataName(generatorAttribute.FullName);
7575
if (generator == null)
7676
// This may be an extender authoring error, but another analyzer should ensure proper
77-
// metadata references exist. Typically, the same nuget package that adds this analyzer
77+
// metadata references exist. Typically, the same NuGet package that adds this analyzer
7878
// also adds the required assembly references, so this should never happen anyway.
7979
return;
8080

src/Stunts/Stunts.Analyzer/UnsupportedNestedTypeAnalyzer.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ namespace Stunts
1212
/// the <see cref="StuntGeneratorAttribute"/> and reports unsupported nested types for
1313
/// codegen.
1414
/// </summary>
15-
// TODO: this is a stop-gap meassure until we can figure out why the ImplementInterfaces codefix
15+
// TODO: this is a stop-gap measure until we can figure out why the ImplementInterfaces codefix
1616
// is not returning any code actions for the CSharpScaffold (maybe VB too?) when the type to
1717
// be implemented is a nested interface :(. In the IDE, the code action is properly available after
1818
// generating the (non-working, since the interface isn't implemented) mock class.
@@ -58,7 +58,7 @@ protected UnsupportedNestedTypeAnalyzer(NamingConvention naming, Type generatorA
5858
}
5959

6060
/// <summary>
61-
/// Returns the single descriptor this analyer supports.
61+
/// Returns the single descriptor this analyzer supports.
6262
/// </summary>
6363
public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics => ImmutableArray.Create(descriptor);
6464

@@ -77,7 +77,7 @@ void AnalyzeSyntaxNode(SyntaxNodeAnalysisContext context)
7777
var generator = context.Compilation.GetTypeByMetadataName(generatorAttribute.FullName);
7878
if (generator == null)
7979
// This may be an extender authoring error, but another analyzer should ensure proper
80-
// metadata references exist. Typically, the same nuget package that adds this analyzer
80+
// metadata references exist. Typically, the same NuGet package that adds this analyzer
8181
// also adds the required assembly references, so this should never happen anyway.
8282
return;
8383

src/Stunts/Stunts.Analyzer/ValidateTypesAnalyzer.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ protected ValidateTypesAnalyzer(Type generatorAttribute)
3333

3434
/// <summary>
3535
/// Returns the single <see cref="StuntDiagnostics.BaseTypeNotFirst"/>
36-
/// diagnostic this analyer supports.
36+
/// diagnostic this analyzer supports.
3737
/// </summary>
3838
public sealed override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }
3939
= ImmutableArray.Create(

0 commit comments

Comments
 (0)