PerformanceTestBaseTDelegate, TResultAddCase Method
Adds a test case to the test suit.
See the
Examples section of the
PerformanceTest class for some examples.
Namespace: KGySoft.DiagnosticsAssembly: KGySoft.CoreLibraries (in KGySoft.CoreLibraries.dll) Version: 7.1.0
public PerformanceTestBase<TDelegate, TResult> AddCase(
TDelegate testCase,
string? name = null
)
Public Function AddCase (
testCase As TDelegate,
Optional name As String = Nothing
) As PerformanceTestBase(Of TDelegate, TResult)
public:
PerformanceTestBase<TDelegate, TResult>^ AddCase(
TDelegate testCase,
String^ name = nullptr
)
member AddCase :
testCase : 'TDelegate *
?name : string
(* Defaults:
let _name = defaultArg name null
*)
-> PerformanceTestBase<'TDelegate, 'TResult>
- testCase TDelegate
- The test case.
- name String (Optional)
- The name of the test. If not specified, a default name will be added.
PerformanceTestBaseTDelegate,
TResultThe self
PerformanceTestBaseTDelegate, TResult instance to provide fluent initialization syntax.