diff --git a/src/Microsoft.AspNetCore.Mvc.Api.Analyzers/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs b/src/Microsoft.AspNetCore.Mvc.Api.Analyzers/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs
index e8b52c012e..9928708f73 100644
--- a/src/Microsoft.AspNetCore.Mvc.Api.Analyzers/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs
+++ b/src/Microsoft.AspNetCore.Mvc.Api.Analyzers/ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzer.cs
@@ -50,7 +50,7 @@ namespace Microsoft.AspNetCore.Mvc.Api.Analyzers
// if (!ModelState.IsValid)
// or
// if (ModelState.IsValid == false)
- // If the conditional is misisng a true condition or has an else expression, skip this operation.
+ // If the conditional is missing a true condition or has an else expression, skip this operation.
return;
}
@@ -170,8 +170,8 @@ namespace Microsoft.AspNetCore.Mvc.Api.Analyzers
var constantValue = ((ILiteralOperation)operation).ConstantValue;
if (!constantValue.HasValue ||
- !(constantValue.Value is bool boolCostantVaue) ||
- boolCostantVaue != expectedConstantValue)
+ !(constantValue.Value is bool boolConstantValue) ||
+ boolConstantValue != expectedConstantValue)
{
return false;
}
@@ -199,7 +199,7 @@ namespace Microsoft.AspNetCore.Mvc.Api.Analyzers
if (propertyReference.Instance?.Kind != OperationKind.PropertyReference)
{
- // Verify this is refering to the ModelState property on the current controller instance
+ // Verify this is referring to the ModelState property on the current controller instance
return false;
}
diff --git a/src/Microsoft.AspNetCore.Mvc.Razor/Internal/FileProviderRazorProject.cs b/src/Microsoft.AspNetCore.Mvc.Razor/Internal/FileProviderRazorProject.cs
index 52af4ae3f3..9e5718fa2f 100644
--- a/src/Microsoft.AspNetCore.Mvc.Razor/Internal/FileProviderRazorProject.cs
+++ b/src/Microsoft.AspNetCore.Mvc.Razor/Internal/FileProviderRazorProject.cs
@@ -16,20 +16,20 @@ namespace Microsoft.AspNetCore.Mvc.Razor.Internal
private readonly IFileProvider _provider;
private readonly IHostingEnvironment _hostingEnvironment;
- public FileProviderRazorProjectFileSystem(IRazorViewEngineFileProviderAccessor accessor, IHostingEnvironment hostingEnviroment)
+ public FileProviderRazorProjectFileSystem(IRazorViewEngineFileProviderAccessor accessor, IHostingEnvironment hostingEnvironment)
{
if (accessor == null)
{
throw new ArgumentNullException(nameof(accessor));
}
- if (hostingEnviroment == null)
+ if (hostingEnvironment == null)
{
- throw new ArgumentNullException(nameof(hostingEnviroment));
+ throw new ArgumentNullException(nameof(hostingEnvironment));
}
_provider = accessor.FileProvider;
- _hostingEnvironment = hostingEnviroment;
+ _hostingEnvironment = hostingEnvironment;
}
public override RazorProjectItem GetItem(string path)
diff --git a/src/Microsoft.AspNetCore.Mvc.RazorPages/Internal/PageSaveTempDataPropertyFilter.cs b/src/Microsoft.AspNetCore.Mvc.RazorPages/Internal/PageSaveTempDataPropertyFilter.cs
index 73633bf59c..e3f3355fde 100644
--- a/src/Microsoft.AspNetCore.Mvc.RazorPages/Internal/PageSaveTempDataPropertyFilter.cs
+++ b/src/Microsoft.AspNetCore.Mvc.RazorPages/Internal/PageSaveTempDataPropertyFilter.cs
@@ -23,7 +23,7 @@ namespace Microsoft.AspNetCore.Mvc.RazorPages
Subject = context.HandlerInstance;
var tempData = _tempDataFactory.GetTempData(context.HttpContext);
- SetPropertyVaules(tempData);
+ SetPropertyValues(tempData);
}
public void OnPageHandlerExecuted(PageHandlerExecutedContext context)
diff --git a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Internal/ControllerSaveTempDataPropertyFilter.cs b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Internal/ControllerSaveTempDataPropertyFilter.cs
index 96228d5b7b..e375ae94bc 100644
--- a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Internal/ControllerSaveTempDataPropertyFilter.cs
+++ b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Internal/ControllerSaveTempDataPropertyFilter.cs
@@ -23,7 +23,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures
Subject = context.Controller;
var tempData = _tempDataFactory.GetTempData(context.HttpContext);
- SetPropertyVaules(tempData);
+ SetPropertyValues(tempData);
}
}
}
diff --git a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Internal/SaveTempDataFilter.cs b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Internal/SaveTempDataFilter.cs
index 2ecf4cbbef..52e98e0677 100644
--- a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Internal/SaveTempDataFilter.cs
+++ b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Internal/SaveTempDataFilter.cs
@@ -78,7 +78,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Internal
///
public void OnResourceExecuted(ResourceExecutedContext context)
{
- // If there is an unhandled exception, we would like to avoid setting tempdata as
+ // If there is an unhandled exception, we would like to avoid setting tempdata as
// the end user is going to see an error page anyway and also it helps us in avoiding
// accessing resources like Session too late in the request lifecyle where SessionFeature might
// not be available.
diff --git a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Internal/SaveTempDataPropertyFilterBase.cs b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Internal/SaveTempDataPropertyFilterBase.cs
index c560584798..ab4c79dff8 100644
--- a/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Internal/SaveTempDataPropertyFilterBase.cs
+++ b/src/Microsoft.AspNetCore.Mvc.ViewFeatures/Internal/SaveTempDataPropertyFilterBase.cs
@@ -61,7 +61,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Internal
/// Sets the values of the properties of from .
///
/// The .
- protected void SetPropertyVaules(ITempDataDictionary tempData)
+ protected void SetPropertyValues(ITempDataDictionary tempData)
{
if (Properties == null)
{
diff --git a/test/Microsoft.AspNetCore.Mvc.ApiExplorer.Test/DefaultApiDescriptionProviderTest.cs b/test/Microsoft.AspNetCore.Mvc.ApiExplorer.Test/DefaultApiDescriptionProviderTest.cs
index e4a446485d..81f17cb58b 100644
--- a/test/Microsoft.AspNetCore.Mvc.ApiExplorer.Test/DefaultApiDescriptionProviderTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.ApiExplorer.Test/DefaultApiDescriptionProviderTest.cs
@@ -1181,7 +1181,7 @@ namespace Microsoft.AspNetCore.Mvc.Description
}
[Fact]
- public void GetApiDescription_ParameterDescription_IsRequiredNotSet_IfNotValiatingTopLevelNodes()
+ public void GetApiDescription_ParameterDescription_IsRequiredNotSet_IfNotValidatingTopLevelNodes()
{
// Arrange
var action = CreateActionDescriptor(nameof(RequiredParameter));
@@ -2081,7 +2081,7 @@ namespace Microsoft.AspNetCore.Mvc.Description
{
}
- private void AcceptsRedundantMetadata([FromQuery] RedundentMetadata r)
+ private void AcceptsRedundantMetadata([FromQuery] RedundantMetadata r)
{
}
@@ -2247,7 +2247,7 @@ namespace Microsoft.AspNetCore.Mvc.Description
public string Name { get; set; }
}
- private class RedundentMetadata
+ private class RedundantMetadata
{
[FromQuery]
public int Id { get; set; }
diff --git a/test/Microsoft.AspNetCore.Mvc.Core.Test/Formatters/FormatterMappingsTest.cs b/test/Microsoft.AspNetCore.Mvc.Core.Test/Formatters/FormatterMappingsTest.cs
index 15252dc783..a181b5528b 100644
--- a/test/Microsoft.AspNetCore.Mvc.Core.Test/Formatters/FormatterMappingsTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Core.Test/Formatters/FormatterMappingsTest.cs
@@ -34,7 +34,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters
var options = new FormatterMappings();
options.SetMediaTypeMappingForFormat(setFormat, MediaTypeHeaderValue.Parse(contentType));
- // Act
+ // Act
var returnMediaType = options.GetMediaTypeMappingForFormat(getFormat);
// Assert
@@ -78,7 +78,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters
[InlineData("application/*")]
[InlineData("*/json")]
[InlineData("*/*")]
- public void FormatterMappings_Wildcardformat(string format)
+ public void FormatterMappings_WildcardFormat(string format)
{
// Arrange
var options = new FormatterMappings();
@@ -117,7 +117,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters
mediaType = MediaTypeHeaderValue.Parse("application/bar");
options.SetMediaTypeMappingForFormat("bar", mediaType);
- // Act
+ // Act
var cleared = options.ClearMediaTypeMappingForFormat(format);
// Assert
diff --git a/test/Microsoft.AspNetCore.Mvc.Core.Test/Internal/DefaultApplicationModelProviderTest.cs b/test/Microsoft.AspNetCore.Mvc.Core.Test/Internal/DefaultApplicationModelProviderTest.cs
index 4af3ea19f5..98e358cabc 100644
--- a/test/Microsoft.AspNetCore.Mvc.Core.Test/Internal/DefaultApplicationModelProviderTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Core.Test/Internal/DefaultApplicationModelProviderTest.cs
@@ -869,7 +869,7 @@ namespace Microsoft.AspNetCore.Mvc.Internal
}
[Fact]
- public void CreateActionModel_AttributeRouteOnAction_CreatesOneActionInforPerRouteTemplate()
+ public void CreateActionModel_AttributeRouteOnAction_CreatesOneActionInfoPerRouteTemplate()
{
// Arrange
var builder = new TestApplicationModelProvider();
@@ -951,7 +951,7 @@ namespace Microsoft.AspNetCore.Mvc.Internal
[Theory]
[InlineData(typeof(SingleRouteAttributeController))]
[InlineData(typeof(MultipleRouteAttributeController))]
- public void CreateActionModel_RouteOnController_CreatesOneActionInforPerRouteTemplateOnAction(Type controller)
+ public void CreateActionModel_RouteOnController_CreatesOneActionInfoPerRouteTemplateOnAction(Type controller)
{
// Arrange
var builder = new TestApplicationModelProvider();
diff --git a/test/Microsoft.AspNetCore.Mvc.Core.Test/ModelBinding/Binders/FloatingPointTypeModelBinderTestOfT.cs b/test/Microsoft.AspNetCore.Mvc.Core.Test/ModelBinding/Binders/FloatingPointTypeModelBinderTestOfT.cs
index fbcb7e5893..0a8f69b60f 100644
--- a/test/Microsoft.AspNetCore.Mvc.Core.Test/ModelBinding/Binders/FloatingPointTypeModelBinderTestOfT.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Core.Test/ModelBinding/Binders/FloatingPointTypeModelBinderTestOfT.cs
@@ -11,7 +11,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
{
public abstract class FloatingPointTypeModelBinderTest where TFloatingPoint: struct
{
- public static TheoryData ConvertableTypeData
+ public static TheoryData ConvertibleTypeData
{
get
{
@@ -32,7 +32,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
protected abstract TFloatingPoint ThirtyTwoThousandPointOne { get; }
[Theory]
- [MemberData(nameof(ConvertableTypeData))]
+ [MemberData(nameof(ConvertibleTypeData))]
public async Task BindModel_ReturnsFailure_IfAttemptedValueCannotBeParsed(Type destinationType)
{
// Arrange
@@ -51,7 +51,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
}
[Theory]
- [MemberData(nameof(ConvertableTypeData))]
+ [MemberData(nameof(ConvertibleTypeData))]
public async Task BindModel_CreatesError_IfAttemptedValueCannotBeParsed(Type destinationType)
{
// Arrange
@@ -76,7 +76,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
}
[Theory]
- [MemberData(nameof(ConvertableTypeData))]
+ [MemberData(nameof(ConvertibleTypeData))]
public async Task BindModel_CreatesError_IfAttemptedValueCannotBeCompletelyParsed(Type destinationType)
{
// Arrange
@@ -100,7 +100,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
}
[Theory]
- [MemberData(nameof(ConvertableTypeData))]
+ [MemberData(nameof(ConvertibleTypeData))]
public async Task BindModel_CreatesError_IfAttemptedValueContainsDisallowedWhitespace(Type destinationType)
{
// Arrange
@@ -124,7 +124,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
}
[Theory]
- [MemberData(nameof(ConvertableTypeData))]
+ [MemberData(nameof(ConvertibleTypeData))]
public async Task BindModel_CreatesError_IfAttemptedValueContainsDisallowedDecimal(Type destinationType)
{
// Arrange
@@ -148,7 +148,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
}
[Theory]
- [MemberData(nameof(ConvertableTypeData))]
+ [MemberData(nameof(ConvertibleTypeData))]
public async Task BindModel_CreatesError_IfAttemptedValueContainsDisallowedThousandsSeparator(Type destinationType)
{
// Arrange
@@ -172,7 +172,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
}
[Theory]
- [MemberData(nameof(ConvertableTypeData))]
+ [MemberData(nameof(ConvertibleTypeData))]
public async Task BindModel_ReturnsFailed_IfValueProviderEmpty(Type destinationType)
{
// Arrange
@@ -236,7 +236,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
}
[Theory]
- [MemberData(nameof(ConvertableTypeData))]
+ [MemberData(nameof(ConvertibleTypeData))]
public async Task BindModel_ReturnsModel_IfAttemptedValueIsValid_Twelve(Type destinationType)
{
// Arrange
@@ -257,7 +257,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
}
[Theory]
- [MemberData(nameof(ConvertableTypeData))]
+ [MemberData(nameof(ConvertibleTypeData))]
[ReplaceCulture("en-GB", "en-GB")]
public async Task BindModel_ReturnsModel_IfAttemptedValueIsValid_TwelvePointFive(Type destinationType)
{
@@ -279,7 +279,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
}
[Theory]
- [MemberData(nameof(ConvertableTypeData))]
+ [MemberData(nameof(ConvertibleTypeData))]
public async Task BindModel_ReturnsModel_IfAttemptedValueIsValid_FrenchTwelvePointFive(Type destinationType)
{
// Arrange
@@ -300,7 +300,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
}
[Theory]
- [MemberData(nameof(ConvertableTypeData))]
+ [MemberData(nameof(ConvertibleTypeData))]
public async Task BindModel_ReturnsModel_IfAttemptedValueIsValid_ThirtyTwoThousand(Type destinationType)
{
// Arrange
@@ -321,7 +321,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
}
[Theory]
- [MemberData(nameof(ConvertableTypeData))]
+ [MemberData(nameof(ConvertibleTypeData))]
public async Task BindModel_ReturnsModel_IfAttemptedValueIsValid_ThirtyTwoThousandPointOne(Type destinationType)
{
// Arrange
@@ -342,7 +342,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
}
[Theory]
- [MemberData(nameof(ConvertableTypeData))]
+ [MemberData(nameof(ConvertibleTypeData))]
public async Task BindModel_ReturnsModel_IfAttemptedValueIsValid_FrenchThirtyTwoThousandPointOne(Type destinationType)
{
// Arrange
diff --git a/test/Microsoft.AspNetCore.Mvc.Core.Test/ModelBinding/Binders/SimpleTypeModelBinderTest.cs b/test/Microsoft.AspNetCore.Mvc.Core.Test/ModelBinding/Binders/SimpleTypeModelBinderTest.cs
index 30623f3c72..e50098b146 100644
--- a/test/Microsoft.AspNetCore.Mvc.Core.Test/ModelBinding/Binders/SimpleTypeModelBinderTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Core.Test/ModelBinding/Binders/SimpleTypeModelBinderTest.cs
@@ -66,7 +66,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
Assert.True(bindingContext.ModelState.ContainsKey("theModelName"));
}
- public static TheoryData ConvertableTypeData
+ public static TheoryData ConvertibleTypeData
{
get
{
@@ -92,7 +92,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
}
[Theory]
- [MemberData(nameof(ConvertableTypeData))]
+ [MemberData(nameof(ConvertibleTypeData))]
public async Task BindModel_ReturnsFailure_IfTypeCanBeConverted_AndConversionFails(Type destinationType)
{
// Arrange
@@ -112,7 +112,7 @@ namespace Microsoft.AspNetCore.Mvc.ModelBinding.Binders
}
[Theory]
- [MemberData(nameof(ConvertableTypeData))]
+ [MemberData(nameof(ConvertibleTypeData))]
public async Task BindModel_CreatesError_WhenTypeConversionIsNull(Type destinationType)
{
// Arrange
diff --git a/test/Microsoft.AspNetCore.Mvc.DataAnnotations.Test/Internal/DataAnnotationsModelValidatorTest.cs b/test/Microsoft.AspNetCore.Mvc.DataAnnotations.Test/Internal/DataAnnotationsModelValidatorTest.cs
index 17669fd0d4..b67c769f57 100644
--- a/test/Microsoft.AspNetCore.Mvc.DataAnnotations.Test/Internal/DataAnnotationsModelValidatorTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.DataAnnotations.Test/Internal/DataAnnotationsModelValidatorTest.cs
@@ -262,7 +262,7 @@ namespace Microsoft.AspNetCore.Mvc.DataAnnotations.Internal
}
public static TheoryData, IEnumerable>
- Valdate_ReturnsExpectedResults_Data
+ Validate_ReturnsExpectedResults_Data
{
get
{
@@ -327,8 +327,8 @@ namespace Microsoft.AspNetCore.Mvc.DataAnnotations.Internal
}
[Theory]
- [MemberData(nameof(Valdate_ReturnsExpectedResults_Data))]
- public void Valdate_ReturnsExpectedResults(
+ [MemberData(nameof(Validate_ReturnsExpectedResults_Data))]
+ public void Validate_ReturnsExpectedResults(
string errorMessage,
IEnumerable memberNames,
IEnumerable expectedResults)
diff --git a/test/Microsoft.AspNetCore.Mvc.DataAnnotations.Test/Internal/ValidationAttributeAdapterOfTAttributeTest.cs b/test/Microsoft.AspNetCore.Mvc.DataAnnotations.Test/Internal/ValidationAttributeAdapterOfTAttributeTest.cs
index e616795fcf..3febb5f4e5 100644
--- a/test/Microsoft.AspNetCore.Mvc.DataAnnotations.Test/Internal/ValidationAttributeAdapterOfTAttributeTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.DataAnnotations.Test/Internal/ValidationAttributeAdapterOfTAttributeTest.cs
@@ -39,16 +39,16 @@ namespace Microsoft.AspNetCore.Mvc.DataAnnotations.Internal
adapter.GetErrorMessage(validationContext);
// Assert
- Assert.True(attribute.Formated);
+ Assert.True(attribute.Formatted);
}
public class TestValidationAttribute : ValidationAttribute
{
- public bool Formated = false;
+ public bool Formatted = false;
public override string FormatErrorMessage(string name)
{
- Formated = true;
+ Formatted = true;
return base.FormatErrorMessage(name);
}
}
diff --git a/test/Microsoft.AspNetCore.Mvc.Formatters.Json.Test/Internal/JsonResultExecutorTest.cs b/test/Microsoft.AspNetCore.Mvc.Formatters.Json.Test/Internal/JsonResultExecutorTest.cs
index 81452cc818..2dbbeb1dad 100644
--- a/test/Microsoft.AspNetCore.Mvc.Formatters.Json.Test/Internal/JsonResultExecutorTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.Formatters.Json.Test/Internal/JsonResultExecutorTest.cs
@@ -30,7 +30,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters.Json.Internal
var context = GetActionContext();
var result = new JsonResult(new { foo = "abcd" });
- var executor = CreateExcutor();
+ var executor = CreateExecutor();
// Act
await executor.ExecuteAsync(context, result);
@@ -51,7 +51,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters.Json.Internal
var result = new JsonResult(new { foo = "abcd" });
result.ContentType = "text/json";
- var executor = CreateExcutor();
+ var executor = CreateExecutor();
// Act
await executor.ExecuteAsync(context, result);
@@ -75,7 +75,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters.Json.Internal
{
Encoding = Encoding.ASCII
}.ToString();
- var executor = CreateExcutor();
+ var executor = CreateExecutor();
// Act
await executor.ExecuteAsync(context, result);
@@ -97,7 +97,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters.Json.Internal
context.HttpContext.Response.ContentType = expectedContentType;
var result = new JsonResult(new { foo = "abcd" });
- var executor = CreateExcutor();
+ var executor = CreateExecutor();
// Act
await executor.ExecuteAsync(context, result);
@@ -122,7 +122,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters.Json.Internal
context.HttpContext.Response.ContentType = responseContentType;
var result = new JsonResult(new { foo = "abcd" });
- var executor = CreateExcutor();
+ var executor = CreateExecutor();
// Act
await executor.ExecuteAsync(context, result);
@@ -147,7 +147,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters.Json.Internal
serializerSettings.Formatting = Formatting.Indented;
var result = new JsonResult(new { foo = "abcd" }, serializerSettings);
- var executor = CreateExcutor();
+ var executor = CreateExecutor();
// Act
await executor.ExecuteAsync(context, result);
@@ -165,7 +165,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters.Json.Internal
var expected = Encoding.UTF8.GetBytes("{\"name\":\"Robert\"");
var context = GetActionContext();
var result = new JsonResult(new ModelWithSerializationError());
- var executor = CreateExcutor();
+ var executor = CreateExecutor();
// Act
try
@@ -190,7 +190,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters.Json.Internal
var expected = "Executing JsonResult, writing value of type 'System.String'.";
var context = GetActionContext();
var logger = new StubLogger();
- var executer = CreateExcutor(logger);
+ var executer = CreateExecutor(logger);
var result = new JsonResult("result_value");
// Act
@@ -207,7 +207,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters.Json.Internal
var expected = "Executing JsonResult, writing value of type 'null'.";
var context = GetActionContext();
var logger = new StubLogger();
- var executer = CreateExcutor(logger);
+ var executer = CreateExecutor(logger);
var result = new JsonResult(null);
// Act
@@ -217,7 +217,7 @@ namespace Microsoft.AspNetCore.Mvc.Formatters.Json.Internal
Assert.Equal(expected, logger.MostRecentMessage);
}
- private static JsonResultExecutor CreateExcutor(ILogger logger = null)
+ private static JsonResultExecutor CreateExecutor(ILogger logger = null)
{
return new JsonResultExecutor(
new TestHttpResponseStreamWriterFactory(),
diff --git a/test/Microsoft.AspNetCore.Mvc.FunctionalTests/ApiExplorerTest.cs b/test/Microsoft.AspNetCore.Mvc.FunctionalTests/ApiExplorerTest.cs
index 6b4b7acd73..a726552c73 100644
--- a/test/Microsoft.AspNetCore.Mvc.FunctionalTests/ApiExplorerTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.FunctionalTests/ApiExplorerTest.cs
@@ -29,7 +29,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
public async Task ApiExplorer_IsVisible_EnabledWithConvention()
{
// Arrange & Act
- var response = await Client.GetAsync("http://localhost/ApiExplorerVisbilityEnabledByConvention");
+ var response = await Client.GetAsync("http://localhost/ApiExplorerVisibilityEnabledByConvention");
var body = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject>(body);
@@ -42,7 +42,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
public async Task ApiExplorer_IsVisible_DisabledWithConvention()
{
// Arrange & Act
- var response = await Client.GetAsync("http://localhost/ApiExplorerVisbilityDisabledByConvention");
+ var response = await Client.GetAsync("http://localhost/ApiExplorerVisibilityDisabledByConvention");
var body = await response.Content.ReadAsStringAsync();
var result = JsonConvert.DeserializeObject>(body);
diff --git a/test/Microsoft.AspNetCore.Mvc.FunctionalTests/ConsumesAttributeTestsBase.cs b/test/Microsoft.AspNetCore.Mvc.FunctionalTests/ConsumesAttributeTestsBase.cs
index 71502e6f24..9a978d2662 100644
--- a/test/Microsoft.AspNetCore.Mvc.FunctionalTests/ConsumesAttributeTestsBase.cs
+++ b/test/Microsoft.AspNetCore.Mvc.FunctionalTests/ConsumesAttributeTestsBase.cs
@@ -107,7 +107,7 @@ namespace Microsoft.AspNetCore.Mvc.FunctionalTests
[ConditionalFact]
// Mono issue - https://github.com/aspnet/External/issues/18
[FrameworkSkipCondition(RuntimeFrameworks.Mono)]
- public async Task DerivedClassLevelAttribute_OveridesBaseClassLevel()
+ public async Task DerivedClassLevelAttribute_OverridesBaseClassLevel()
{
// Arrange
var input = "
-
+
diff --git a/test/Microsoft.AspNetCore.Mvc.FunctionalTests/compiler/resources/HtmlGenerationWebSite.HtmlGeneration_Home.Link.html b/test/Microsoft.AspNetCore.Mvc.FunctionalTests/compiler/resources/HtmlGenerationWebSite.HtmlGeneration_Home.Link.html
index ffa6be6fdf..b0a2e41eb6 100644
--- a/test/Microsoft.AspNetCore.Mvc.FunctionalTests/compiler/resources/HtmlGenerationWebSite.HtmlGeneration_Home.Link.html
+++ b/test/Microsoft.AspNetCore.Mvc.FunctionalTests/compiler/resources/HtmlGenerationWebSite.HtmlGeneration_Home.Link.html
@@ -96,7 +96,7 @@
-
+
diff --git a/test/Microsoft.AspNetCore.Mvc.IntegrationTests/ComplexTypeModelBinderIntegrationTest.cs b/test/Microsoft.AspNetCore.Mvc.IntegrationTests/ComplexTypeModelBinderIntegrationTest.cs
index 7a49359cd3..9eb3af091e 100644
--- a/test/Microsoft.AspNetCore.Mvc.IntegrationTests/ComplexTypeModelBinderIntegrationTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.IntegrationTests/ComplexTypeModelBinderIntegrationTest.cs
@@ -2659,7 +2659,7 @@ namespace Microsoft.AspNetCore.Mvc.IntegrationTests
// This covers the case where a key is present, but has an empty value. The type converter
// will report an error.
[Fact]
- public async Task MutableObjectModelBinder_BindsPOCO_TypeConvertedPropertyNonConvertableValue_GetsError()
+ public async Task MutableObjectModelBinder_BindsPOCO_TypeConvertedPropertyNonConvertibleValue_GetsError()
{
// Arrange
var parameter = new ParameterDescriptor()
diff --git a/test/Microsoft.AspNetCore.Mvc.IntegrationTests/SimpleTypeModelBinderIntegrationTest.cs b/test/Microsoft.AspNetCore.Mvc.IntegrationTests/SimpleTypeModelBinderIntegrationTest.cs
index 420939c66b..0999087bec 100644
--- a/test/Microsoft.AspNetCore.Mvc.IntegrationTests/SimpleTypeModelBinderIntegrationTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.IntegrationTests/SimpleTypeModelBinderIntegrationTest.cs
@@ -241,7 +241,7 @@ namespace Microsoft.AspNetCore.Mvc.IntegrationTests
}
[Fact]
- public async Task BindParameter_NonConvertableValue_GetsError()
+ public async Task BindParameter_NonConvertibleValue_GetsError()
{
// Arrange
var parameterBinder = ModelBindingTestHelper.GetParameterBinder();
@@ -290,7 +290,7 @@ namespace Microsoft.AspNetCore.Mvc.IntegrationTests
}
[Fact]
- public async Task BindParameter_NonConvertableValue_GetsCustomErrorMessage()
+ public async Task BindParameter_NonConvertibleValue_GetsCustomErrorMessage()
{
// Arrange
var parameterType = typeof(int);
diff --git a/test/Microsoft.AspNetCore.Mvc.RazorPages.Test/Internal/AuthorizationPageApplicationModelProviderTest.cs b/test/Microsoft.AspNetCore.Mvc.RazorPages.Test/Internal/AuthorizationPageApplicationModelProviderTest.cs
index c15912dede..008435da3c 100644
--- a/test/Microsoft.AspNetCore.Mvc.RazorPages.Test/Internal/AuthorizationPageApplicationModelProviderTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.RazorPages.Test/Internal/AuthorizationPageApplicationModelProviderTest.cs
@@ -110,7 +110,7 @@ namespace Microsoft.AspNetCore.Mvc.RazorPages.Internal
private class TestPageWithDerivedModel : Page
{
- public DeriviedModel Model => null;
+ public DerivedModel Model => null;
public override Task ExecuteAsync() =>throw new NotImplementedException();
}
@@ -121,7 +121,7 @@ namespace Microsoft.AspNetCore.Mvc.RazorPages.Internal
}
[Authorize(Policy = "Derived")]
- private class DeriviedModel : BaseModel
+ private class DerivedModel : BaseModel
{
public virtual void OnGet()
{
diff --git a/test/Microsoft.AspNetCore.Mvc.TagHelpers.Test/PartialTagHelperTest.cs b/test/Microsoft.AspNetCore.Mvc.TagHelpers.Test/PartialTagHelperTest.cs
index 489c78bd05..d6789c5376 100644
--- a/test/Microsoft.AspNetCore.Mvc.TagHelpers.Test/PartialTagHelperTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.TagHelpers.Test/PartialTagHelperTest.cs
@@ -361,7 +361,7 @@ namespace Microsoft.AspNetCore.Mvc.TagHelpers
}
[Fact]
- public async Task ProcessAsync_DoesNotUseModelFromViewdata_IfModelExpressionEvalulatesToNull()
+ public async Task ProcessAsync_DoesNotUseModelFromViewdata_IfModelExpressionEvaluatesToNull()
{
// Arrange
var bufferScope = new TestViewBufferScope();
@@ -455,7 +455,7 @@ namespace Microsoft.AspNetCore.Mvc.TagHelpers
}
[Fact]
- public async Task ProcessAsync_UsesModelOnViewContextViewData_WhenModelExpresionIsNull()
+ public async Task ProcessAsync_UsesModelOnViewContextViewData_WhenModelExpressionIsNull()
{
// Arrange
var bufferScope = new TestViewBufferScope();
diff --git a/test/Microsoft.AspNetCore.Mvc.TagHelpers.Test/ValidationSummaryTagHelperTest.cs b/test/Microsoft.AspNetCore.Mvc.TagHelpers.Test/ValidationSummaryTagHelperTest.cs
index fec670ba58..57730851cc 100644
--- a/test/Microsoft.AspNetCore.Mvc.TagHelpers.Test/ValidationSummaryTagHelperTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.TagHelpers.Test/ValidationSummaryTagHelperTest.cs
@@ -98,7 +98,7 @@ namespace Microsoft.AspNetCore.Mvc.TagHelpers
[Theory]
[MemberData(nameof(ProcessAsync_GeneratesExpectedOutput_WithNoErrorsData))]
- public async Task ProcessAsync_SuppressesOutput_IfClientSideValiationDisabled_WithNoErrorsData(
+ public async Task ProcessAsync_SuppressesOutput_IfClientSideValidationDisabled_WithNoErrorsData(
ModelStateDictionary modelStateDictionary)
{
// Arrange
diff --git a/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Internal/DefaultDisplayTemplatesTest.cs b/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Internal/DefaultDisplayTemplatesTest.cs
index 73e3b0cc08..e9526d1d62 100644
--- a/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Internal/DefaultDisplayTemplatesTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Internal/DefaultDisplayTemplatesTest.cs
@@ -143,7 +143,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Internal
}
[Fact]
- public void ObjectTemplate_HonoursHideSurroundingHtml()
+ public void ObjectTemplate_HonorsHideSurroundingHtml()
{
// Arrange
var expected =
@@ -231,7 +231,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Internal
}
[Fact]
- public void HiddenInputTemplate_HonoursHideSurroundingHtml()
+ public void HiddenInputTemplate_HonorsHideSurroundingHtml()
{
// Arrange
var model = "Model string";
diff --git a/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Internal/DefaultEditorTemplatesTest.cs b/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Internal/DefaultEditorTemplatesTest.cs
index a8b6659a91..ad94d3bf9e 100644
--- a/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Internal/DefaultEditorTemplatesTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Internal/DefaultEditorTemplatesTest.cs
@@ -374,7 +374,7 @@ Environment.NewLine;
}
[Fact]
- public void ObjectTemplate_HonoursHideSurroundingHtml()
+ public void ObjectTemplate_HonorsHideSurroundingHtml()
{
// Arrange
var expected =
@@ -470,7 +470,7 @@ Environment.NewLine;
}
[Fact]
- public void HiddenInputTemplate_HonoursHideSurroundingHtml()
+ public void HiddenInputTemplate_HonorsHideSurroundingHtml()
{
// Arrange
var expected = "";
diff --git a/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Internal/ViewDataAttributePropertyProviderTest.cs b/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Internal/ViewDataAttributePropertyProviderTest.cs
index 48f0726884..1ab02127a9 100644
--- a/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Internal/ViewDataAttributePropertyProviderTest.cs
+++ b/test/Microsoft.AspNetCore.Mvc.ViewFeatures.Test/Internal/ViewDataAttributePropertyProviderTest.cs
@@ -54,7 +54,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Internal
Assert.Collection(
result.OrderBy(p => p.Key),
property => Assert.Equal(nameof(BaseController.BaseProperty), property.PropertyInfo.Name),
- property => Assert.Equal(nameof(DerivedController.DeriviedProperty), property.PropertyInfo.Name));
+ property => Assert.Equal(nameof(DerivedController.DerivedProperty), property.PropertyInfo.Name));
}
[Fact]
@@ -90,7 +90,7 @@ namespace Microsoft.AspNetCore.Mvc.ViewFeatures.Internal
public class DerivedController : BaseController
{
[ViewData]
- public string DeriviedProperty { get; set; }
+ public string DerivedProperty { get; set; }
}
public class PropertyWithKeyController
diff --git a/test/Mvc.Analyzers.Test/CodeAnalysisExtensionsTest.cs b/test/Mvc.Analyzers.Test/CodeAnalysisExtensionsTest.cs
index d29b1a2f2b..a9630cba1f 100644
--- a/test/Mvc.Analyzers.Test/CodeAnalysisExtensionsTest.cs
+++ b/test/Mvc.Analyzers.Test/CodeAnalysisExtensionsTest.cs
@@ -34,10 +34,10 @@ namespace Microsoft.AspNetCore.Mvc.Analyzers
public async Task GetAttributes_OnNonOverriddenMethod_ReturnsAllAttributesOnCurrentAction()
{
// Arrange
- var compilation = await GetCompilation("GetAttributes_WithoutMethodOverridding");
+ var compilation = await GetCompilation("GetAttributes_WithoutMethodOverriding");
var attribute = compilation.GetTypeByMetadataName(typeof(ProducesResponseTypeAttribute).FullName);
- var testClass = compilation.GetTypeByMetadataName($"{Namespace}.{nameof(GetAttributes_WithoutMethodOverridding)}");
- var method = (IMethodSymbol)testClass.GetMembers(nameof(GetAttributes_WithoutMethodOverridding.Method)).First();
+ var testClass = compilation.GetTypeByMetadataName($"{Namespace}.{nameof(GetAttributes_WithoutMethodOverriding)}");
+ var method = (IMethodSymbol)testClass.GetMembers(nameof(GetAttributes_WithoutMethodOverriding.Method)).First();
// Act
var attributes = CodeAnalysisExtensions.GetAttributes(method, attribute, inherit: true);
diff --git a/test/Mvc.Analyzers.Test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithoutMethodOverridding.cs b/test/Mvc.Analyzers.Test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithoutMethodOverriding.cs
similarity index 70%
rename from test/Mvc.Analyzers.Test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithoutMethodOverridding.cs
rename to test/Mvc.Analyzers.Test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithoutMethodOverriding.cs
index 653abeb19b..79c2be699b 100644
--- a/test/Mvc.Analyzers.Test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithoutMethodOverridding.cs
+++ b/test/Mvc.Analyzers.Test/TestFiles/CodeAnalysisExtensionsTest/GetAttributes_WithoutMethodOverriding.cs
@@ -1,6 +1,6 @@
namespace Microsoft.AspNetCore.Mvc.Analyzers
{
- public class GetAttributes_WithoutMethodOverridding
+ public class GetAttributes_WithoutMethodOverriding
{
[ProducesResponseType(201)]
public void Method() { }
diff --git a/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilityDisabledByConventionController.cs b/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilityDisabledByConventionController.cs
index d29a11bc5f..be93692211 100644
--- a/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilityDisabledByConventionController.cs
+++ b/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilityDisabledByConventionController.cs
@@ -5,8 +5,8 @@ using Microsoft.AspNetCore.Mvc;
namespace ApiExplorerWebSite
{
- [Route("ApiExplorerVisbilityDisabledByConvention")]
- public class ApiExplorerVisbilityDisabledByConventionController : Controller
+ [Route("ApiExplorerVisibilityDisabledByConvention")]
+ public class ApiExplorerVisibilityDisabledByConventionController : Controller
{
[HttpGet]
public void Get()
diff --git a/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilityEnabledByConventionController.cs b/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilityEnabledByConventionController.cs
index 7b674cb022..055e91e0ea 100644
--- a/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilityEnabledByConventionController.cs
+++ b/test/WebSites/ApiExplorerWebSite/Controllers/ApiExplorerVisibilityEnabledByConventionController.cs
@@ -5,8 +5,8 @@ using Microsoft.AspNetCore.Mvc;
namespace ApiExplorerWebSite
{
- [Route("ApiExplorerVisbilityEnabledByConvention")]
- public class ApiExplorerVisbilityEnabledByConventionController : Controller
+ [Route("ApiExplorerVisibilityEnabledByConvention")]
+ public class ApiExplorerVisibilityEnabledByConventionController : Controller
{
[HttpGet]
public void Get()
diff --git a/test/WebSites/ApiExplorerWebSite/Startup.cs b/test/WebSites/ApiExplorerWebSite/Startup.cs
index f5f96abfd5..08965fe0bf 100644
--- a/test/WebSites/ApiExplorerWebSite/Startup.cs
+++ b/test/WebSites/ApiExplorerWebSite/Startup.cs
@@ -28,7 +28,7 @@ namespace ApiExplorerWebSite
options.Conventions.Add(new ApiExplorerVisibilityEnabledConvention());
options.Conventions.Add(new ApiExplorerVisibilityDisabledConvention(
- typeof(ApiExplorerVisbilityDisabledByConventionController)));
+ typeof(ApiExplorerVisibilityDisabledByConventionController)));
options.Conventions.Add(new ApiExplorerInboundOutboundConvention(
typeof(ApiExplorerInboundOutBoundController)));
options.Conventions.Add(new ApiExplorerRouteChangeConvention(wellKnownChangeToken));
diff --git a/test/WebSites/FormatterWebSite/Controllers/PolymorhpicPropertyBindingController.cs b/test/WebSites/FormatterWebSite/Controllers/PolymorphicPropertyBindingController.cs
similarity index 90%
rename from test/WebSites/FormatterWebSite/Controllers/PolymorhpicPropertyBindingController.cs
rename to test/WebSites/FormatterWebSite/Controllers/PolymorphicPropertyBindingController.cs
index 27a2643cfc..2d428f9f4f 100644
--- a/test/WebSites/FormatterWebSite/Controllers/PolymorhpicPropertyBindingController.cs
+++ b/test/WebSites/FormatterWebSite/Controllers/PolymorphicPropertyBindingController.cs
@@ -6,7 +6,7 @@ using Microsoft.AspNetCore.Mvc;
namespace FormatterWebSite.Controllers
{
- public class PolymorhpicPropertyBindingController : ControllerBase
+ public class PolymorphicPropertyBindingController : ControllerBase
{
[FromBody]
public IModel Person { get; set; }
diff --git a/test/WebSites/HtmlGenerationWebSite/Views/HtmlGeneration_Home/Link.cshtml b/test/WebSites/HtmlGenerationWebSite/Views/HtmlGeneration_Home/Link.cshtml
index ffa657373f..dbd8dd6272 100644
--- a/test/WebSites/HtmlGenerationWebSite/Views/HtmlGeneration_Home/Link.cshtml
+++ b/test/WebSites/HtmlGenerationWebSite/Views/HtmlGeneration_Home/Link.cshtml
@@ -157,7 +157,7 @@
asp-fallback-test-property="visibility"
asp-fallback-test-value="hidden" />
-
+