Skip to content

Commit 58f519a

Browse files
authored
Merge pull request #341 - Typo fixes
Typo fixes
2 parents 59dbd43 + 9d3a773 commit 58f519a

File tree

15 files changed

+42
-42
lines changed

15 files changed

+42
-42
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.Caching.Test/BuildersTests/DataTests/MemoryCacheEntryTestBuilderTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public void WithValidShouldNotThrowExceptionWithCorrectValue()
3535
}
3636

3737
[Fact]
38-
public void WithValidShouldThrowExceptionWithInvorrectValue()
38+
public void WithValidShouldThrowExceptionWithIncorrectValue()
3939
{
4040
Test.AssertException<DataProviderAssertionException>(
4141
() =>
@@ -72,7 +72,7 @@ public void WithAbsoluteExpirationShouldNotThrowExceptionWithCorrectValue()
7272
}
7373

7474
[Fact]
75-
public void WithAbsoluteExpirationShouldThrowExceptionWithInvorrectValue()
75+
public void WithAbsoluteExpirationShouldThrowExceptionWithIncorrectValue()
7676
{
7777
Test.AssertException<DataProviderAssertionException>(
7878
() =>
@@ -109,7 +109,7 @@ public void WithAbsoluteExpirationRelativeToNowShouldNotThrowExceptionWithCorrec
109109
}
110110

111111
[Fact]
112-
public void WithAbsoluteExpirationRelativeToNowShouldThrowExceptionWithInvorrectValue()
112+
public void WithAbsoluteExpirationRelativeToNowShouldThrowExceptionWithIncorrectValue()
113113
{
114114
Test.AssertException<DataProviderAssertionException>(
115115
() =>
@@ -146,7 +146,7 @@ public void WithPriorityShouldNotThrowExceptionWithCorrectValue()
146146
}
147147

148148
[Fact]
149-
public void WithPriorityShouldThrowExceptionWithInvorrectValue()
149+
public void WithPriorityShouldThrowExceptionWithIncorrectValue()
150150
{
151151
Test.AssertException<DataProviderAssertionException>(
152152
() =>
@@ -183,7 +183,7 @@ public void WithSlidingExpirationShouldNotThrowExceptionWithCorrectValue()
183183
}
184184

185185
[Fact]
186-
public void WithSlidingExpirationShouldThrowExceptionWithInvorrectValue()
186+
public void WithSlidingExpirationShouldThrowExceptionWithIncorrectValue()
187187
{
188188
Test.AssertException<DataProviderAssertionException>(
189189
() =>

test/MyTested.AspNetCore.Mvc.Caching.Test/ServicesTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
public class ServicesTests
1818
{
1919
[Fact]
20-
public void MockMemoryCacheShouldBeRegistedWithAddedCaching()
20+
public void MockMemoryCacheShouldBeRegisteredWithAddedCaching()
2121
{
2222
MyApplication
2323
.StartsFrom<DefaultStartup>()

test/MyTested.AspNetCore.Mvc.Controllers.ActionResults.Test/BuildersTests/ActionResultsTests/RedirectTests/RedirectTestBuilderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public void ToUrlPassingShouldThrowExceptionWithInvalidPredicate()
109109
}
110110

111111
[Fact]
112-
public void ToUrlPassingShouldNotThrowExceptionWithValidaAssertions()
112+
public void ToUrlPassingShouldNotThrowExceptionWithValidAssertions()
113113
{
114114
MyController<MvcController>
115115
.Instance()

test/MyTested.AspNetCore.Mvc.Controllers.Test/BuildersTests/ActionsTests/ShouldHaveTests/ShouldHaveActionAttributesTests.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ public void NoActionAttributesShouldThrowExceptionWithVoidActionContainingAttrib
5858
}
5959

6060
[Fact]
61-
public void ActionAttributesShouldNotThrowEceptionWithActionContainingAttributes()
61+
public void ActionAttributesShouldNotThrowExceptionWithActionContainingAttributes()
6262
{
6363
MyController<MvcController>
6464
.Instance()
@@ -68,7 +68,7 @@ public void ActionAttributesShouldNotThrowEceptionWithActionContainingAttributes
6868
}
6969

7070
[Fact]
71-
public void ActionAttributesShouldThrowEceptionWithActionContainingNoAttributes()
71+
public void ActionAttributesShouldThrowExceptionWithActionContainingNoAttributes()
7272
{
7373
Test.AssertException<AttributeAssertionException>(
7474
() =>
@@ -83,7 +83,7 @@ public void ActionAttributesShouldThrowEceptionWithActionContainingNoAttributes(
8383
}
8484

8585
[Fact]
86-
public void ActionAttributesShouldNotThrowEceptionWithVoidActionContainingAttributes()
86+
public void ActionAttributesShouldNotThrowExceptionWithVoidActionContainingAttributes()
8787
{
8888
MyController<MvcController>
8989
.Instance()
@@ -93,7 +93,7 @@ public void ActionAttributesShouldNotThrowEceptionWithVoidActionContainingAttrib
9393
}
9494

9595
[Fact]
96-
public void ActionAttributesShouldThrowEceptionWithVoidActionContainingNoAttributes()
96+
public void ActionAttributesShouldThrowExceptionWithVoidActionContainingNoAttributes()
9797
{
9898
Test.AssertException<AttributeAssertionException>(
9999
() =>
@@ -108,7 +108,7 @@ public void ActionAttributesShouldThrowEceptionWithVoidActionContainingNoAttribu
108108
}
109109

110110
[Fact]
111-
public void ActionAttributesShouldNotThrowEceptionWithActionContainingNumberOfAttributes()
111+
public void ActionAttributesShouldNotThrowExceptionWithActionContainingNumberOfAttributes()
112112
{
113113
MyController<MvcController>
114114
.Instance()
@@ -118,7 +118,7 @@ public void ActionAttributesShouldNotThrowEceptionWithActionContainingNumberOfAt
118118
}
119119

120120
[Fact]
121-
public void ActionAttributesShouldThrowEceptionWithActionContainingNumberOfAttributes()
121+
public void ActionAttributesShouldThrowExceptionWithActionContainingNumberOfAttributes()
122122
{
123123
Test.AssertException<AttributeAssertionException>(
124124
() =>
@@ -133,7 +133,7 @@ public void ActionAttributesShouldThrowEceptionWithActionContainingNumberOfAttri
133133
}
134134

135135
[Fact]
136-
public void ActionAttributesShouldThrowEceptionWithActionContainingNumberOfAttributesTestingWithOne()
136+
public void ActionAttributesShouldThrowExceptionWithActionContainingNumberOfAttributesTestingWithOne()
137137
{
138138
Test.AssertException<AttributeAssertionException>(
139139
() =>

test/MyTested.AspNetCore.Mvc.Controllers.Views.ActionResults.Test/BuildersTests/ActionsTests/ShouldReturnTests/ShouldReturnViewTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ public void ShouldReturnPartialViewShouldThrowExceptionWithNullViewName()
185185
}
186186

187187
[Fact]
188-
public void ShouldReturnParrtialViewShouldThrowExceptionWithIncorrectViewResult()
188+
public void ShouldReturnPartialViewShouldThrowExceptionWithIncorrectViewResult()
189189
{
190190
Test.AssertException<InvocationResultAssertionException>(
191191
() =>

test/MyTested.AspNetCore.Mvc.EntityFrameworkCore.Test/BuildersTests/ViewComponentsTests/ViewComponentBuilderTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
public class ViewComponentBuilderTests
1111
{
1212
[Fact]
13-
public void WithEntitesShouldSetupDbContext()
13+
public void WithEntitiesShouldSetupDbContext()
1414
{
1515
MyApplication
1616
.StartsFrom<DefaultStartup>()

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();

test/MyTested.AspNetCore.Mvc.Models.Test/BuildersTests/ActionResultsTests/OkTests/OkTestBuilderTests.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public void WithNoResponseModelShouldNotThrowExceptionIfNoResponseModelIsProvide
1616
.Instance()
1717
.Calling(c => c.OkResultAction())
1818
.ShouldReturn()
19-
.Ok(ок => ок
19+
.Ok(ok => ok
2020
.WithNoModel());
2121
}
2222

@@ -30,7 +30,7 @@ public void WithNoResponseModelShouldThrowExceptionIfResponseModelIsProvided()
3030
.Instance()
3131
.Calling(c => c.OkResultWithResponse())
3232
.ShouldReturn()
33-
.Ok(ок => ок
33+
.Ok(ok => ok
3434
.WithNoModel());
3535
},
3636
"When calling OkResultWithResponse action in MvcController expected to not have a response model but in fact such was found.");
@@ -46,7 +46,7 @@ public void WithResponseModelShouldWorkCorrectly()
4646
.NoActionAttributes()
4747
.AndAlso()
4848
.ShouldReturn()
49-
.Ok(ок => ок
49+
.Ok(ok => ok
5050
.WithModelOfType<List<ResponseModel>>());
5151
}
5252

@@ -60,7 +60,7 @@ public void WithResponseModelOfTypeShouldWorkCorrectly()
6060
.NoActionAttributes()
6161
.AndAlso()
6262
.ShouldReturn()
63-
.Ok(ок => ок
63+
.Ok(ok => ok
6464
.WithModelOfType(typeof(IList<>))
6565
.AndAlso()
6666
.ShouldPassForThe<ICollection<ResponseModel>>(m => m != null));

0 commit comments

Comments
 (0)