@@ -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<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, NUnitString message = default, string actualExpression = "", string constraintExpression = "")</ code > </ pre >
454+ < pre > < code class ="lang-csharp hljs "> [Obsolete("Use Func<TActual> instead of ActualValueDelegate<TActual>")]
455+ public static void That<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, NUnitString message = default, string actualExpression = "", string constraintExpression = "")</ 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<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, FormattableString message, string actualExpression = "", string constraintExpression = "")</ code > </ pre >
525+ < pre > < code class ="lang-csharp hljs "> [Obsolete("Use Func<TActual> instead of ActualValueDelegate<TActual>")]
526+ public static void That<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, FormattableString message, string actualExpression = "", string constraintExpression = "")</ 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<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, Func<string> getExceptionMessage, string actualExpression = "", string constraintExpression = "")</ code > </ pre >
596+ < pre > < code class ="lang-csharp hljs "> [Obsolete("Use Func<TActual> instead of ActualValueDelegate<TActual>")]
597+ public static void That<TActual>(ActualValueDelegate<TActual> del, IResolveConstraint expr, Func<string> getExceptionMessage, string actualExpression = "", string constraintExpression = "")</ 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<TActual>(Func<TActual>, 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<TActual>(Func<TActual> code, IResolveConstraint expr, NUnitString message = default, string actualExpression = "", string constraintExpression = "")</ 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 > <TActual></ 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<TActual>(Func<TActual>, 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<TActual>(Func<TActual> code, IResolveConstraint expr, FormattableString message, string actualExpression = "", string constraintExpression = "")</ 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 > <TActual></ 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<TActual>(Func<TActual>, IResolveConstraint, Func<string>, 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<TActual>(Func<TActual> code, IResolveConstraint expr, Func<string> getExceptionMessage, string actualExpression = "", string constraintExpression = "")</ 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 > <TActual></ 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 > << a class ="xref " href ="https://learn.microsoft.com/dotnet/api/system.string "> string</ a > ></ 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 >
0 commit comments