Skip to content

Commit e87c259

Browse files
committed
Merge pull request #1173 from nunit/fix/correct-get-latest-nunit-assert-dir
fix: Make "Get latest NUnit Asset dir" work with `v` prefix f03938a
1 parent 3cd5bf6 commit e87c259

124 files changed

Lines changed: 10550 additions & 2692 deletions

File tree

Some content is hidden

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

api/NUnit.Common.CommandLineOptions.html

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -857,6 +857,33 @@ <h5 class="propertyValue">Property Value</h5>
857857
</tbody>
858858
</table>
859859

860+
<span class="small pull-right mobile-hide">
861+
<a href="https://github.com/nunit/nunit/blob/master/src/NUnitFramework/nunitlite/CommandLineOptions.cs">View Source</a>
862+
</span>
863+
<a id="NUnit_Common_CommandLineOptions_Quiet_" data-uid="NUnit.Common.CommandLineOptions.Quiet*"></a>
864+
<h4 id="NUnit_Common_CommandLineOptions_Quiet" data-uid="NUnit.Common.CommandLineOptions.Quiet">Quiet</h4>
865+
<div class="markdown level1 summary"></div>
866+
<div class="markdown level1 conceptual"></div>
867+
<h5 class="declaration">Declaration</h5>
868+
<div class="codewrapper">
869+
<pre><code class="lang-csharp hljs">public bool Quiet { get; }</code></pre>
870+
</div>
871+
<h5 class="propertyValue">Property Value</h5>
872+
<table class="table table-bordered table-condensed">
873+
<thead>
874+
<tr>
875+
<th>Type</th>
876+
<th>Description</th>
877+
</tr>
878+
</thead>
879+
<tbody>
880+
<tr>
881+
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
882+
<td></td>
883+
</tr>
884+
</tbody>
885+
</table>
886+
860887
<span class="small pull-right mobile-hide">
861888
<a href="https://github.com/nunit/nunit/blob/master/src/NUnitFramework/nunitlite/CommandLineOptions.cs">View Source</a>
862889
</span>
@@ -938,6 +965,33 @@ <h5 class="propertyValue">Property Value</h5>
938965
</tbody>
939966
</table>
940967

968+
<span class="small pull-right mobile-hide">
969+
<a href="https://github.com/nunit/nunit/blob/master/src/NUnitFramework/nunitlite/CommandLineOptions.cs">View Source</a>
970+
</span>
971+
<a id="NUnit_Common_CommandLineOptions_RunOnMainThread_" data-uid="NUnit.Common.CommandLineOptions.RunOnMainThread*"></a>
972+
<h4 id="NUnit_Common_CommandLineOptions_RunOnMainThread" data-uid="NUnit.Common.CommandLineOptions.RunOnMainThread">RunOnMainThread</h4>
973+
<div class="markdown level1 summary"></div>
974+
<div class="markdown level1 conceptual"></div>
975+
<h5 class="declaration">Declaration</h5>
976+
<div class="codewrapper">
977+
<pre><code class="lang-csharp hljs">public bool RunOnMainThread { get; }</code></pre>
978+
</div>
979+
<h5 class="propertyValue">Property Value</h5>
980+
<table class="table table-bordered table-condensed">
981+
<thead>
982+
<tr>
983+
<th>Type</th>
984+
<th>Description</th>
985+
</tr>
986+
</thead>
987+
<tbody>
988+
<tr>
989+
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
990+
<td></td>
991+
</tr>
992+
</tbody>
993+
</table>
994+
941995
<span class="small pull-right mobile-hide">
942996
<a href="https://github.com/nunit/nunit/blob/master/src/NUnitFramework/nunitlite/CommandLineOptions.cs">View Source</a>
943997
</span>

api/NUnit.Framework.Assert.html

Lines changed: 3133 additions & 868 deletions
Large diffs are not rendered by default.

api/NUnit.Framework.Assume.html

Lines changed: 216 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,8 @@ <h4 id="NUnit_Framework_Assume_That__1_NUnit_Framework_Constraints_ActualValueDe
451451
<div class="markdown level1 conceptual"></div>
452452
<h5 class="declaration">Declaration</h5>
453453
<div class="codewrapper">
454-
<pre><code class="lang-csharp hljs">public static void That&lt;TActual&gt;(ActualValueDelegate&lt;TActual&gt; del, IResolveConstraint expr, NUnitString message = default, string actualExpression = &quot;&quot;, string constraintExpression = &quot;&quot;)</code></pre>
454+
<pre><code class="lang-csharp hljs">[Obsolete(&quot;Use Func&lt;TActual&gt; instead of ActualValueDelegate&lt;TActual&gt;&quot;)]
455+
public static void That&lt;TActual&gt;(ActualValueDelegate&lt;TActual&gt; del, IResolveConstraint expr, NUnitString message = default, string actualExpression = &quot;&quot;, string constraintExpression = &quot;&quot;)</code></pre>
455456
</div>
456457
<h5 class="parameters">Parameters</h5>
457458
<table class="table table-bordered table-condensed">
@@ -521,7 +522,8 @@ <h4 id="NUnit_Framework_Assume_That__1_NUnit_Framework_Constraints_ActualValueDe
521522
<div class="markdown level1 conceptual"></div>
522523
<h5 class="declaration">Declaration</h5>
523524
<div class="codewrapper">
524-
<pre><code class="lang-csharp hljs">public static void That&lt;TActual&gt;(ActualValueDelegate&lt;TActual&gt; del, IResolveConstraint expr, FormattableString message, string actualExpression = &quot;&quot;, string constraintExpression = &quot;&quot;)</code></pre>
525+
<pre><code class="lang-csharp hljs">[Obsolete(&quot;Use Func&lt;TActual&gt; instead of ActualValueDelegate&lt;TActual&gt;&quot;)]
526+
public static void That&lt;TActual&gt;(ActualValueDelegate&lt;TActual&gt; del, IResolveConstraint expr, FormattableString message, string actualExpression = &quot;&quot;, string constraintExpression = &quot;&quot;)</code></pre>
525527
</div>
526528
<h5 class="parameters">Parameters</h5>
527529
<table class="table table-bordered table-condensed">
@@ -591,7 +593,8 @@ <h4 id="NUnit_Framework_Assume_That__1_NUnit_Framework_Constraints_ActualValueDe
591593
<div class="markdown level1 conceptual"></div>
592594
<h5 class="declaration">Declaration</h5>
593595
<div class="codewrapper">
594-
<pre><code class="lang-csharp hljs">public static void That&lt;TActual&gt;(ActualValueDelegate&lt;TActual&gt; del, IResolveConstraint expr, Func&lt;string&gt; getExceptionMessage, string actualExpression = &quot;&quot;, string constraintExpression = &quot;&quot;)</code></pre>
596+
<pre><code class="lang-csharp hljs">[Obsolete(&quot;Use Func&lt;TActual&gt; instead of ActualValueDelegate&lt;TActual&gt;&quot;)]
597+
public static void That&lt;TActual&gt;(ActualValueDelegate&lt;TActual&gt; del, IResolveConstraint expr, Func&lt;string&gt; getExceptionMessage, string actualExpression = &quot;&quot;, string constraintExpression = &quot;&quot;)</code></pre>
595598
</div>
596599
<h5 class="parameters">Parameters</h5>
597600
<table class="table table-bordered table-condensed">
@@ -650,6 +653,216 @@ <h5 class="typeParameters">Type Parameters</h5>
650653
</tbody>
651654
</table>
652655

656+
<span class="small pull-right mobile-hide">
657+
<a href="https://github.com/nunit/nunit/blob/master/src/NUnitFramework/framework/Assume.cs">View Source</a>
658+
</span>
659+
<a id="NUnit_Framework_Assume_That_" data-uid="NUnit.Framework.Assume.That*"></a>
660+
<h4 id="NUnit_Framework_Assume_That__1_System_Func___0__NUnit_Framework_Constraints_IResolveConstraint_NUnit_Framework_NUnitString_System_String_System_String_" data-uid="NUnit.Framework.Assume.That``1(System.Func{``0},NUnit.Framework.Constraints.IResolveConstraint,NUnit.Framework.NUnitString,System.String,System.String)">That&lt;TActual&gt;(Func&lt;TActual&gt;, IResolveConstraint, NUnitString, string, string)</h4>
661+
<div class="markdown level1 summary"><p>Apply a constraint to an actual value, succeeding if the constraint
662+
is satisfied and throwing an InconclusiveException on failure.</p>
663+
</div>
664+
<div class="markdown level1 conceptual"></div>
665+
<h5 class="declaration">Declaration</h5>
666+
<div class="codewrapper">
667+
<pre><code class="lang-csharp hljs">public static void That&lt;TActual&gt;(Func&lt;TActual&gt; code, IResolveConstraint expr, NUnitString message = default, string actualExpression = &quot;&quot;, string constraintExpression = &quot;&quot;)</code></pre>
668+
</div>
669+
<h5 class="parameters">Parameters</h5>
670+
<table class="table table-bordered table-condensed">
671+
<thead>
672+
<tr>
673+
<th>Type</th>
674+
<th>Name</th>
675+
<th>Description</th>
676+
</tr>
677+
</thead>
678+
<tbody>
679+
<tr>
680+
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;TActual&gt;</td>
681+
<td><span class="parametername">code</span></td>
682+
<td><p>A piece of code returning the value to be tested</p>
683+
</td>
684+
</tr>
685+
<tr>
686+
<td><a class="xref" href="NUnit.Framework.Constraints.IResolveConstraint.html">IResolveConstraint</a></td>
687+
<td><span class="parametername">expr</span></td>
688+
<td><p>A Constraint expression to be applied</p>
689+
</td>
690+
</tr>
691+
<tr>
692+
<td><a class="xref" href="NUnit.Framework.NUnitString.html">NUnitString</a></td>
693+
<td><span class="parametername">message</span></td>
694+
<td><p>The message that will be displayed on failure</p>
695+
</td>
696+
</tr>
697+
<tr>
698+
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
699+
<td><span class="parametername">actualExpression</span></td>
700+
<td></td>
701+
</tr>
702+
<tr>
703+
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
704+
<td><span class="parametername">constraintExpression</span></td>
705+
<td></td>
706+
</tr>
707+
</tbody>
708+
</table>
709+
<h5 class="typeParameters">Type Parameters</h5>
710+
<table class="table table-bordered table-condensed">
711+
<thead>
712+
<tr>
713+
<th>Name</th>
714+
<th>Description</th>
715+
</tr>
716+
</thead>
717+
<tbody>
718+
<tr>
719+
<td><span class="parametername">TActual</span></td>
720+
<td><p>The Type being compared.</p>
721+
</td>
722+
</tr>
723+
</tbody>
724+
</table>
725+
726+
<span class="small pull-right mobile-hide">
727+
<a href="https://github.com/nunit/nunit/blob/master/src/NUnitFramework/framework/Assume.cs">View Source</a>
728+
</span>
729+
<a id="NUnit_Framework_Assume_That_" data-uid="NUnit.Framework.Assume.That*"></a>
730+
<h4 id="NUnit_Framework_Assume_That__1_System_Func___0__NUnit_Framework_Constraints_IResolveConstraint_System_FormattableString_System_String_System_String_" data-uid="NUnit.Framework.Assume.That``1(System.Func{``0},NUnit.Framework.Constraints.IResolveConstraint,System.FormattableString,System.String,System.String)">That&lt;TActual&gt;(Func&lt;TActual&gt;, IResolveConstraint, FormattableString, string, string)</h4>
731+
<div class="markdown level1 summary"><p>Apply a constraint to an actual value, succeeding if the constraint
732+
is satisfied and throwing an InconclusiveException on failure.</p>
733+
</div>
734+
<div class="markdown level1 conceptual"></div>
735+
<h5 class="declaration">Declaration</h5>
736+
<div class="codewrapper">
737+
<pre><code class="lang-csharp hljs">public static void That&lt;TActual&gt;(Func&lt;TActual&gt; code, IResolveConstraint expr, FormattableString message, string actualExpression = &quot;&quot;, string constraintExpression = &quot;&quot;)</code></pre>
738+
</div>
739+
<h5 class="parameters">Parameters</h5>
740+
<table class="table table-bordered table-condensed">
741+
<thead>
742+
<tr>
743+
<th>Type</th>
744+
<th>Name</th>
745+
<th>Description</th>
746+
</tr>
747+
</thead>
748+
<tbody>
749+
<tr>
750+
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;TActual&gt;</td>
751+
<td><span class="parametername">code</span></td>
752+
<td><p>A piece of code returning the value to be tested</p>
753+
</td>
754+
</tr>
755+
<tr>
756+
<td><a class="xref" href="NUnit.Framework.Constraints.IResolveConstraint.html">IResolveConstraint</a></td>
757+
<td><span class="parametername">expr</span></td>
758+
<td><p>A Constraint expression to be applied</p>
759+
</td>
760+
</tr>
761+
<tr>
762+
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.formattablestring">FormattableString</a></td>
763+
<td><span class="parametername">message</span></td>
764+
<td><p>The message that will be displayed on failure</p>
765+
</td>
766+
</tr>
767+
<tr>
768+
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
769+
<td><span class="parametername">actualExpression</span></td>
770+
<td></td>
771+
</tr>
772+
<tr>
773+
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
774+
<td><span class="parametername">constraintExpression</span></td>
775+
<td></td>
776+
</tr>
777+
</tbody>
778+
</table>
779+
<h5 class="typeParameters">Type Parameters</h5>
780+
<table class="table table-bordered table-condensed">
781+
<thead>
782+
<tr>
783+
<th>Name</th>
784+
<th>Description</th>
785+
</tr>
786+
</thead>
787+
<tbody>
788+
<tr>
789+
<td><span class="parametername">TActual</span></td>
790+
<td><p>The Type being compared.</p>
791+
</td>
792+
</tr>
793+
</tbody>
794+
</table>
795+
796+
<span class="small pull-right mobile-hide">
797+
<a href="https://github.com/nunit/nunit/blob/master/src/NUnitFramework/framework/Assume.cs">View Source</a>
798+
</span>
799+
<a id="NUnit_Framework_Assume_That_" data-uid="NUnit.Framework.Assume.That*"></a>
800+
<h4 id="NUnit_Framework_Assume_That__1_System_Func___0__NUnit_Framework_Constraints_IResolveConstraint_System_Func_System_String__System_String_System_String_" data-uid="NUnit.Framework.Assume.That``1(System.Func{``0},NUnit.Framework.Constraints.IResolveConstraint,System.Func{System.String},System.String,System.String)">That&lt;TActual&gt;(Func&lt;TActual&gt;, IResolveConstraint, Func&lt;string&gt;, string, string)</h4>
801+
<div class="markdown level1 summary"><p>Apply a constraint to an actual value, succeeding if the constraint
802+
is satisfied and throwing an InconclusiveException on failure.</p>
803+
</div>
804+
<div class="markdown level1 conceptual"></div>
805+
<h5 class="declaration">Declaration</h5>
806+
<div class="codewrapper">
807+
<pre><code class="lang-csharp hljs">public static void That&lt;TActual&gt;(Func&lt;TActual&gt; code, IResolveConstraint expr, Func&lt;string&gt; getExceptionMessage, string actualExpression = &quot;&quot;, string constraintExpression = &quot;&quot;)</code></pre>
808+
</div>
809+
<h5 class="parameters">Parameters</h5>
810+
<table class="table table-bordered table-condensed">
811+
<thead>
812+
<tr>
813+
<th>Type</th>
814+
<th>Name</th>
815+
<th>Description</th>
816+
</tr>
817+
</thead>
818+
<tbody>
819+
<tr>
820+
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;TActual&gt;</td>
821+
<td><span class="parametername">code</span></td>
822+
<td><p>A piece of code returning the value to be tested</p>
823+
</td>
824+
</tr>
825+
<tr>
826+
<td><a class="xref" href="NUnit.Framework.Constraints.IResolveConstraint.html">IResolveConstraint</a></td>
827+
<td><span class="parametername">expr</span></td>
828+
<td><p>A Constraint expression to be applied</p>
829+
</td>
830+
</tr>
831+
<tr>
832+
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.func-1">Func</a>&lt;<a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a>&gt;</td>
833+
<td><span class="parametername">getExceptionMessage</span></td>
834+
<td><p>A function to build the message included with the Exception</p>
835+
</td>
836+
</tr>
837+
<tr>
838+
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
839+
<td><span class="parametername">actualExpression</span></td>
840+
<td></td>
841+
</tr>
842+
<tr>
843+
<td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
844+
<td><span class="parametername">constraintExpression</span></td>
845+
<td></td>
846+
</tr>
847+
</tbody>
848+
</table>
849+
<h5 class="typeParameters">Type Parameters</h5>
850+
<table class="table table-bordered table-condensed">
851+
<thead>
852+
<tr>
853+
<th>Name</th>
854+
<th>Description</th>
855+
</tr>
856+
</thead>
857+
<tbody>
858+
<tr>
859+
<td><span class="parametername">TActual</span></td>
860+
<td><p>The Type being compared.</p>
861+
</td>
862+
</tr>
863+
</tbody>
864+
</table>
865+
653866
<span class="small pull-right mobile-hide">
654867
<a href="https://github.com/nunit/nunit/blob/master/src/NUnitFramework/framework/Assume.cs">View Source</a>
655868
</span>

api/NUnit.Framework.AsyncTestDelegate.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ <h6><strong>Namespace</strong>: <a class="xref" href="NUnit.html">NUnit</a>.<a c
9696
<h6><strong>Assembly</strong>: nunit.framework.dll</h6>
9797
<h5 id="NUnit_Framework_AsyncTestDelegate_syntax">Syntax</h5>
9898
<div class="codewrapper">
99-
<pre><code class="lang-csharp hljs">public delegate Task AsyncTestDelegate()</code></pre>
99+
<pre><code class="lang-csharp hljs">[Obsolete(&quot;Use Func&lt;Task&gt; instead of AsyncTestDelegate&quot;)]
100+
public delegate Task AsyncTestDelegate()</code></pre>
100101
</div>
101102
<h5 class="returns">Returns</h5>
102103
<table class="table table-bordered table-condensed">

api/NUnit.Framework.CancelAfterAttribute.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ <h6><strong>Namespace</strong>: <a class="xref" href="NUnit.html">NUnit</a>.<a c
244244
<h6><strong>Assembly</strong>: nunit.framework.dll</h6>
245245
<h5 id="NUnit_Framework_CancelAfterAttribute_syntax">Syntax</h5>
246246
<div class="codewrapper">
247-
<pre><code class="lang-csharp hljs">[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = false)]
247+
<pre><code class="lang-csharp hljs">[AttributeUsage(AttributeTargets.Class|AttributeTargets.Method, AllowMultiple = false, Inherited = true)]
248248
public class CancelAfterAttribute : PropertyAttribute, IApplyToTest, IApplyToContext</code></pre>
249249
</div>
250250
<h5 id="NUnit_Framework_CancelAfterAttribute_remarks"><strong>Remarks</strong></h5>

api/NUnit.Framework.Constraints.ActualValueDelegate-1.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,8 @@ <h6><strong>Namespace</strong>: <a class="xref" href="NUnit.html">NUnit</a>.<a c
9696
<h6><strong>Assembly</strong>: nunit.framework.dll</h6>
9797
<h5 id="NUnit_Framework_Constraints_ActualValueDelegate_1_syntax">Syntax</h5>
9898
<div class="codewrapper">
99-
<pre><code class="lang-csharp hljs">public delegate TActual ActualValueDelegate&lt;TActual&gt;()</code></pre>
99+
<pre><code class="lang-csharp hljs">[Obsolete(&quot;Use Func&lt;TActual&gt; instead of ActualValueDelegate&lt;TActual&gt;&quot;)]
100+
public delegate TActual ActualValueDelegate&lt;TActual&gt;()</code></pre>
100101
</div>
101102
<h5 class="returns">Returns</h5>
102103
<table class="table table-bordered table-condensed">

api/NUnit.Framework.Constraints.AllItemsConstraint.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,17 @@ <h5>Inherited Members</h5>
120120
<a class="xref" href="NUnit.Framework.Constraints.Constraint.html#NUnit_Framework_Constraints_Constraint_ApplyTo__1_NUnit_Framework_Constraints_ActualValueDelegate___0__">Constraint.ApplyTo&lt;TActual&gt;(ActualValueDelegate&lt;TActual&gt;)</a>
121121
</div>
122122
<div>
123-
<a class="xref" href="NUnit.Framework.Constraints.Constraint.html#NUnit_Framework_Constraints_Constraint_ApplyTo__1___0__">Constraint.ApplyTo&lt;TActual&gt;(ref TActual)</a>
123+
<a class="xref" href="NUnit.Framework.Constraints.Constraint.html#NUnit_Framework_Constraints_Constraint_ApplyTo__1_System_Func___0__">Constraint.ApplyTo&lt;TActual&gt;(Func&lt;TActual&gt;)</a>
124124
</div>
125125
<div>
126126
<a class="xref" href="NUnit.Framework.Constraints.Constraint.html#NUnit_Framework_Constraints_Constraint_ApplyToAsync__1_System_Func_System_Threading_Tasks_Task___0___">Constraint.ApplyToAsync&lt;TActual&gt;(Func&lt;Task&lt;TActual&gt;&gt;)</a>
127127
</div>
128128
<div>
129129
<a class="xref" href="NUnit.Framework.Constraints.Constraint.html#NUnit_Framework_Constraints_Constraint_GetTestObject__1_NUnit_Framework_Constraints_ActualValueDelegate___0__">Constraint.GetTestObject&lt;TActual&gt;(ActualValueDelegate&lt;TActual&gt;)</a>
130130
</div>
131+
<div>
132+
<a class="xref" href="NUnit.Framework.Constraints.Constraint.html#NUnit_Framework_Constraints_Constraint_GetTestObject__1_System_Func___0__">Constraint.GetTestObject&lt;TActual&gt;(Func&lt;TActual&gt;)</a>
133+
</div>
131134
<div>
132135
<a class="xref" href="NUnit.Framework.Constraints.Constraint.html#NUnit_Framework_Constraints_Constraint_ToString">Constraint.ToString()</a>
133136
</div>

0 commit comments

Comments
 (0)