Skip to content

Commit 4163053

Browse files
committed
Added option to test model state errors without any model specified (#49)
1 parent e3f48cc commit 4163053

File tree

332 files changed

+3677
-2652
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

332 files changed

+3677
-2652
lines changed

docs/_docfx/api/.manifest

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

docs/_docfx/troubleshoot/intro.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ Here you will find [My Tested ASP.NET Core MVC](https://mytestedasp.net/Core/Mvc
44

55
<strong class="article-contents">Table of contents</strong>
66

7-
- [When I run a test, I receive a type initializer exception without any descriptive message](/troubleshoot/typeinitexception.html)
7+
- [When I run a test, I receive a type initializer exception without any descriptive message](/troubleshoot/typeinitexception.html)
8+
- [Visual Studio test runner returns strange results from time to time](/troubleshoot/randomtestresults.html)
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Visual Studio test runner returns strange results from time to time
2+
3+
Most probably Visual Studio has a compilation version mismatch and it runs tests from an old DLL library. Clean/Rebuild the solution/project and run the tests again to fix the problem.

docs/_docfx/troubleshoot/toc.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@
22
- name: Introduction
33
href: intro.md
44
- name: Type Initializer Exception
5+
href: typeinitexception.md
6+
- name: Visual Studio Random Results
57
href: typeinitexception.md

docs/api/MyTested.AspNetCore.Mvc.ActionAttributesTestBuilderViewFeaturesExtensions.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ <h3 id="methods">Methods
8787
</h3>
8888
<span class="small pull-right mobile-hide">
8989
<span class="divider">|</span>
90-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/documentation/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_ActionAttributesTestBuilderViewFeaturesExtensions_ValidatingAntiForgeryToken_MyTested_AspNetCore_Mvc_Builders_Contracts_Attributes_IActionAttributesTestBuilder_.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.ActionAttributesTestBuilderViewFeaturesExtensions.ValidatingAntiForgeryToken(MyTested.AspNetCore.Mvc.Builders.Contracts.Attributes.IActionAttributesTestBuilder)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
90+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/development/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_ActionAttributesTestBuilderViewFeaturesExtensions_ValidatingAntiForgeryToken_MyTested_AspNetCore_Mvc_Builders_Contracts_Attributes_IActionAttributesTestBuilder_.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.ActionAttributesTestBuilderViewFeaturesExtensions.ValidatingAntiForgeryToken(MyTested.AspNetCore.Mvc.Builders.Contracts.Attributes.IActionAttributesTestBuilder)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
9191
</span>
9292
<span class="small pull-right mobile-hide">
93-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/documentation/src/MyTested.AspNetCore.Mvc.ViewFeatures/ActionAttributesTestBuilderViewFeaturesExtensions.cs/#L16">View Source</a>
93+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/development/src/MyTested.AspNetCore.Mvc.ViewFeatures/ActionAttributesTestBuilderViewFeaturesExtensions.cs/#L16">View Source</a>
9494
</span>
9595
<h4 id="MyTested_AspNetCore_Mvc_ActionAttributesTestBuilderViewFeaturesExtensions_ValidatingAntiForgeryToken_MyTested_AspNetCore_Mvc_Builders_Contracts_Attributes_IActionAttributesTestBuilder_" data-uid="MyTested.AspNetCore.Mvc.ActionAttributesTestBuilderViewFeaturesExtensions.ValidatingAntiForgeryToken(MyTested.AspNetCore.Mvc.Builders.Contracts.Attributes.IActionAttributesTestBuilder)">ValidatingAntiForgeryToken(IActionAttributesTestBuilder)</h4>
9696
<div class="markdown level1 summary"><p sourcefile="api/MyTested.AspNetCore.Mvc.ActionAttributesTestBuilderViewFeaturesExtensions.yml" sourcestartlinenumber="2" sourceendlinenumber="2">Tests whether the action attributes contain <span class="xref">Microsoft.AspNetCore.Mvc.ValidateAntiForgeryTokenAttribute</span>.</p>
@@ -142,10 +142,10 @@ <h5 class="returns">Returns</h5>
142142
<div class="contribution">
143143
<ul class="nav">
144144
<li>
145-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/documentation/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_ActionAttributesTestBuilderViewFeaturesExtensions.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.ActionAttributesTestBuilderViewFeaturesExtensions%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
145+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/development/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_ActionAttributesTestBuilderViewFeaturesExtensions.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.ActionAttributesTestBuilderViewFeaturesExtensions%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
146146
</li>
147147
<li>
148-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/documentation/src/MyTested.AspNetCore.Mvc.ViewFeatures/ActionAttributesTestBuilderViewFeaturesExtensions.cs/#L9" class="contribution-link">View Source</a>
148+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/development/src/MyTested.AspNetCore.Mvc.ViewFeatures/ActionAttributesTestBuilderViewFeaturesExtensions.cs/#L9" class="contribution-link">View Source</a>
149149
</li>
150150
</ul>
151151
</div>

docs/api/MyTested.AspNetCore.Mvc.AuthenticationScheme.html

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ <h3 id="fields">Fields
8787
</h3>
8888
<span class="small pull-right mobile-hide">
8989
<span class="divider">|</span>
90-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/documentation/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_AuthenticationScheme_Anonymous.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.AuthenticationScheme.Anonymous%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
90+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/development/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_AuthenticationScheme_Anonymous.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.AuthenticationScheme.Anonymous%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
9191
</span>
9292
<span class="small pull-right mobile-hide">
93-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/documentation/src/MyTested.AspNetCore.Mvc.Abstractions/AuthenticationScheme.cs/#L11">View Source</a>
93+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/development/src/MyTested.AspNetCore.Mvc.Abstractions/AuthenticationScheme.cs/#L11">View Source</a>
9494
</span>
9595
<h4 id="MyTested_AspNetCore_Mvc_AuthenticationScheme_Anonymous" data-uid="MyTested.AspNetCore.Mvc.AuthenticationScheme.Anonymous">Anonymous</h4>
9696
<div class="markdown level1 summary"><p sourcefile="api/MyTested.AspNetCore.Mvc.AuthenticationScheme.yml" sourcestartlinenumber="2" sourceendlinenumber="2">&quot;Anonymous&quot; authentication header scheme.</p>
@@ -117,10 +117,10 @@ <h5 class="fieldValue">Field Value</h5>
117117
</table>
118118
<span class="small pull-right mobile-hide">
119119
<span class="divider">|</span>
120-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/documentation/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_AuthenticationScheme_Basic.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.AuthenticationScheme.Basic%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
120+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/development/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_AuthenticationScheme_Basic.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.AuthenticationScheme.Basic%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
121121
</span>
122122
<span class="small pull-right mobile-hide">
123-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/documentation/src/MyTested.AspNetCore.Mvc.Abstractions/AuthenticationScheme.cs/#L16">View Source</a>
123+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/development/src/MyTested.AspNetCore.Mvc.Abstractions/AuthenticationScheme.cs/#L16">View Source</a>
124124
</span>
125125
<h4 id="MyTested_AspNetCore_Mvc_AuthenticationScheme_Basic" data-uid="MyTested.AspNetCore.Mvc.AuthenticationScheme.Basic">Basic</h4>
126126
<div class="markdown level1 summary"><p sourcefile="api/MyTested.AspNetCore.Mvc.AuthenticationScheme.yml" sourcestartlinenumber="2" sourceendlinenumber="2">&quot;Basic&quot; authentication header scheme.</p>
@@ -147,10 +147,10 @@ <h5 class="fieldValue">Field Value</h5>
147147
</table>
148148
<span class="small pull-right mobile-hide">
149149
<span class="divider">|</span>
150-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/documentation/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_AuthenticationScheme_Digest.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.AuthenticationScheme.Digest%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
150+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/development/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_AuthenticationScheme_Digest.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.AuthenticationScheme.Digest%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
151151
</span>
152152
<span class="small pull-right mobile-hide">
153-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/documentation/src/MyTested.AspNetCore.Mvc.Abstractions/AuthenticationScheme.cs/#L21">View Source</a>
153+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/development/src/MyTested.AspNetCore.Mvc.Abstractions/AuthenticationScheme.cs/#L21">View Source</a>
154154
</span>
155155
<h4 id="MyTested_AspNetCore_Mvc_AuthenticationScheme_Digest" data-uid="MyTested.AspNetCore.Mvc.AuthenticationScheme.Digest">Digest</h4>
156156
<div class="markdown level1 summary"><p sourcefile="api/MyTested.AspNetCore.Mvc.AuthenticationScheme.yml" sourcestartlinenumber="2" sourceendlinenumber="2">&quot;Digest&quot; authentication header scheme.</p>
@@ -177,10 +177,10 @@ <h5 class="fieldValue">Field Value</h5>
177177
</table>
178178
<span class="small pull-right mobile-hide">
179179
<span class="divider">|</span>
180-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/documentation/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_AuthenticationScheme_Negotiate.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.AuthenticationScheme.Negotiate%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
180+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/development/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_AuthenticationScheme_Negotiate.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.AuthenticationScheme.Negotiate%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
181181
</span>
182182
<span class="small pull-right mobile-hide">
183-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/documentation/src/MyTested.AspNetCore.Mvc.Abstractions/AuthenticationScheme.cs/#L31">View Source</a>
183+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/development/src/MyTested.AspNetCore.Mvc.Abstractions/AuthenticationScheme.cs/#L31">View Source</a>
184184
</span>
185185
<h4 id="MyTested_AspNetCore_Mvc_AuthenticationScheme_Negotiate" data-uid="MyTested.AspNetCore.Mvc.AuthenticationScheme.Negotiate">Negotiate</h4>
186186
<div class="markdown level1 summary"><p sourcefile="api/MyTested.AspNetCore.Mvc.AuthenticationScheme.yml" sourcestartlinenumber="2" sourceendlinenumber="2">&quot;Negotiate&quot; authentication header scheme.</p>
@@ -207,10 +207,10 @@ <h5 class="fieldValue">Field Value</h5>
207207
</table>
208208
<span class="small pull-right mobile-hide">
209209
<span class="divider">|</span>
210-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/documentation/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_AuthenticationScheme_NTLM.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.AuthenticationScheme.NTLM%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
210+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/development/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_AuthenticationScheme_NTLM.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.AuthenticationScheme.NTLM%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
211211
</span>
212212
<span class="small pull-right mobile-hide">
213-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/documentation/src/MyTested.AspNetCore.Mvc.Abstractions/AuthenticationScheme.cs/#L26">View Source</a>
213+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/development/src/MyTested.AspNetCore.Mvc.Abstractions/AuthenticationScheme.cs/#L26">View Source</a>
214214
</span>
215215
<h4 id="MyTested_AspNetCore_Mvc_AuthenticationScheme_NTLM" data-uid="MyTested.AspNetCore.Mvc.AuthenticationScheme.NTLM">NTLM</h4>
216216
<div class="markdown level1 summary"><p sourcefile="api/MyTested.AspNetCore.Mvc.AuthenticationScheme.yml" sourcestartlinenumber="2" sourceendlinenumber="2">&quot;NTLM&quot; authentication header scheme.</p>
@@ -243,10 +243,10 @@ <h5 class="fieldValue">Field Value</h5>
243243
<div class="contribution">
244244
<ul class="nav">
245245
<li>
246-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/documentation/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_AuthenticationScheme.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.AuthenticationScheme%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
246+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/new/development/docs/_docfx/apispec/new?filename=MyTested_AspNetCore_Mvc_AuthenticationScheme.md&amp;value=---%0Auid%3A%20MyTested.AspNetCore.Mvc.AuthenticationScheme%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
247247
</li>
248248
<li>
249-
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/documentation/src/MyTested.AspNetCore.Mvc.Abstractions/AuthenticationScheme.cs/#L6" class="contribution-link">View Source</a>
249+
<a href="https://github.com/ivaylokenov/MyTested.AspNetCore.Mvc/blob/development/src/MyTested.AspNetCore.Mvc.Abstractions/AuthenticationScheme.cs/#L6" class="contribution-link">View Source</a>
250250
</li>
251251
</ul>
252252
</div>

0 commit comments

Comments
 (0)