Fix various minor spelling mistakes (#24019)

* fix various minor spelling mistakes
This commit is contained in:
Pranav K 2020-07-16 17:24:30 -07:00 committed by GitHub
commit 28b8a39cc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 8 additions and 8 deletions

View File

@ -22,7 +22,7 @@ namespace Microsoft.AspNetCore.Components.Routing
public override bool Match(string pathSegment, out object? convertedValue) public override bool Match(string pathSegment, out object? convertedValue)
{ {
// Unset values are set to null in the Parameters object created in // Unset values are set to null in the Parameters object created in
// the RouteContext. To match this pattern, unset optional parmeters // the RouteContext. To match this pattern, unset optional parameters
// are converted to null. // are converted to null.
if (string.IsNullOrEmpty(pathSegment)) if (string.IsNullOrEmpty(pathSegment))
{ {

View File

@ -71,7 +71,7 @@ namespace Microsoft.AspNetCore.Components
} }
[Fact] [Fact]
public void IncomingParameterMatchesOverridenParameter_ThatDoesNotHasAttribute() public void IncomingParameterMatchesOverriddenParameter_ThatDoesNotHaveAttribute()
{ {
// Test for https://github.com/dotnet/aspnetcore/issues/13162 // Test for https://github.com/dotnet/aspnetcore/issues/13162
// Arrange // Arrange

View File

@ -2124,7 +2124,7 @@ namespace Microsoft.AspNetCore.Components.Test
} }
[Fact] [Fact]
public void RenderBatch_CanDisposeSynchrounousAsyncDisposableImplementations() public void RenderBatch_CanDisposeSynchronousAsyncDisposableImplementations()
{ {
// Arrange // Arrange
var renderer = new TestRenderer { ShouldHandleExceptions = true }; var renderer = new TestRenderer { ShouldHandleExceptions = true };

View File

@ -476,7 +476,7 @@ namespace Microsoft.AspNetCore.Components.Test.Routing
[Fact] [Fact]
public void PrefersLiteralTemplateOverParmeterizedTemplates() public void PrefersLiteralTemplateOverParameterizedTemplates()
{ {
// Arrange // Arrange
var routeTable = new TestRouteTableBuilder() var routeTable = new TestRouteTableBuilder()

View File

@ -81,7 +81,7 @@ namespace Microsoft.AspNetCore.Components.Test.Routing
var janTaskException = await Record.ExceptionAsync(() => janTask); var janTaskException = await Record.ExceptionAsync(() => janTask);
var febTaskException = await Record.ExceptionAsync(() => febTask); var febTaskException = await Record.ExceptionAsync(() => febTask);
// Assert neither exceution threw an exception // Assert neither execution threw an exception
Assert.Null(janTaskException); Assert.Null(janTaskException);
Assert.Null(febTaskException); Assert.Null(febTaskException);
// Assert refresh should've only been called once for the second route // Assert refresh should've only been called once for the second route

View File

@ -296,7 +296,7 @@ namespace Microsoft.AspNetCore.Components.Web.Rendering
exceptions.Add(e); exceptions.Add(e);
}; };
// Receive the ack for the intial batch // Receive the ack for the initial batch
_ = renderer.OnRenderCompletedAsync(2, null); _ = renderer.OnRenderCompletedAsync(2, null);
// Receive the ack for the second batch // Receive the ack for the second batch
_ = renderer.OnRenderCompletedAsync(2, null); _ = renderer.OnRenderCompletedAsync(2, null);

View File

@ -19,7 +19,7 @@ namespace Microsoft.AspNetCore.Components
}; };
// This setting is not configurable, but realistically we don't expect an app to take more than 30 seconds from when // This setting is not configurable, but realistically we don't expect an app to take more than 30 seconds from when
// it got rendrered to when the circuit got started, and having an expiration on the serialized server-components helps // it got rendered to when the circuit got started, and having an expiration on the serialized server-components helps
// prevent old payloads from being replayed. // prevent old payloads from being replayed.
public static readonly TimeSpan DataExpiration = TimeSpan.FromMinutes(5); public static readonly TimeSpan DataExpiration = TimeSpan.FromMinutes(5);
} }

View File

@ -85,7 +85,7 @@ namespace Microsoft.AspNetCore.SignalR.Common.Tests.Internal.Protocol
message: new InvocationMessage(null, "Target", new object[] { 42 }, new string[] { "__test_id__" }), message: new InvocationMessage(null, "Target", new object[] { 42 }, new string[] { "__test_id__" }),
binary: "lgGAwKZUYXJnZXSRKpGrX190ZXN0X2lkX18="), binary: "lgGAwKZUYXJnZXSRKpGrX190ZXN0X2lkX18="),
new ProtocolTestData( new ProtocolTestData(
name: "InvocationWithMulitpleStreams", name: "InvocationWithMultipleStreams",
message: new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__", "__test_id2__" }), message: new InvocationMessage(null, "Target", Array.Empty<object>(), new string[] { "__test_id__", "__test_id2__" }),
binary: "lgGAwKZUYXJnZXSQkqtfX3Rlc3RfaWRfX6xfX3Rlc3RfaWQyX18="), binary: "lgGAwKZUYXJnZXSQkqtfX3Rlc3RfaWRfX6xfX3Rlc3RfaWQyX18="),