Skip to content

Commit 39a687d

Browse files
committed
Fixed parameter typos
1 parent ff3c24c commit 39a687d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

src/MyTested.AspNetCore.Mvc.Http/Builders/Contracts/Http/IHttpResponseTestBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ public interface IHttpResponseTestBuilder
106106
/// <summary>
107107
/// Tests whether <see cref="HttpResponse.ContentLength"/> is the same as the provided one.
108108
/// </summary>
109-
/// <param name="contentLenght">Expected content length.</param>
109+
/// <param name="contentLength">Expected content length.</param>
110110
/// <returns>The same <see cref="IAndHttpResponseTestBuilder"/> test builder.</returns>
111-
IAndHttpResponseTestBuilder WithContentLength(long? contentLenght);
111+
IAndHttpResponseTestBuilder WithContentLength(long? contentLength);
112112

113113
/// <summary>
114114
/// Tests whether <see cref="HttpResponse.ContentType"/> is the same as the provided one.

src/MyTested.AspNetCore.Mvc.Http/Builders/Http/HttpResponseTestBuilder.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,14 +125,14 @@ public IAndHttpResponseTestBuilder WithJsonBody<TBody>(TBody jsonBody, Encoding
125125
=> this.WithBody(jsonBody, ContentType.ApplicationJson, encoding);
126126

127127
/// <inheritdoc />
128-
public IAndHttpResponseTestBuilder WithContentLength(long? contentLenght)
128+
public IAndHttpResponseTestBuilder WithContentLength(long? contentLength)
129129
{
130130
var actualContentLength = this.httpResponse.ContentLength;
131-
if (contentLenght != actualContentLength)
131+
if (contentLength != actualContentLength)
132132
{
133133
this.ThrowNewHttpResponseAssertionException(
134134
"content length",
135-
$"to be {contentLenght.GetErrorMessageName(includeQuotes: false)}",
135+
$"to be {contentLength.GetErrorMessageName(includeQuotes: false)}",
136136
$"instead received {actualContentLength.GetErrorMessageName(includeQuotes: false)}");
137137
}
138138

test/MyTested.AspNetCore.Mvc.ModelState.Test/BuildersTests/ModelsTests/ModelStateBuilderTests.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ public void WithModelStateWithErrorsDictionaryShouldWorkCorrectly()
4444
public void WithModelStateWithErrorsObjectShouldWorkCorrectly()
4545
{
4646
var requestBody = TestObjectFactory.GetValidRequestModel();
47-
var errorsObjcet = new
47+
var errorsObject = new
4848
{
4949
First = "SomeError",
5050
Second = "AnotherError",
@@ -53,7 +53,7 @@ public void WithModelStateWithErrorsObjectShouldWorkCorrectly()
5353
MyController<MvcController>
5454
.Instance()
5555
.WithModelState(modelState => modelState
56-
.WithErrors(errorsObjcet))
56+
.WithErrors(errorsObject))
5757
.Calling(c => c.BadRequestWithModelState(requestBody))
5858
.ShouldReturn()
5959
.BadRequest();

0 commit comments

Comments
 (0)