You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
System.ArgumentException
HResult=0x80070057
Message=At least one IBenchmarkCandidate must be provided
Source=Benchmark
StackTrace:
at Benchmark.BuilderSteps.CandidateRunnerWithContextArgs`1.Go()
The text was updated successfully, but these errors were encountered:
The problem is within the CandidateRunnerWithContextArgs class. The property "Candidates" doesn't get initialized in the constructor (or anywhere else) when using Measure.Candidates().Go().
publicCandidateRunnerWithContextArgs(IBenchmarkCandidate<TContext>[] candidates){Candidates=candidates??thrownew ArgumentNullException(nameof(candidates));}publicCandidateRunnerWithContextArgs(
IBenchmarkCandidate<TContext>[] candidates,
TContext[] benchmarkTestContexts,
int? numberOfRuns,
TimeSpan? durationPerContext,
TimeSpan? durationPerCandidate,
int? numberOfWarmUpRuns,
TContext warmUpRunBenchmarkTestContext): this(candidates)// < Call to other constructor should be added{// !!! Candidates doesn't get set...
BenchmarkTestContexts = benchmarkTestContexts;FixedNumberOfRuns=numberOfRuns;DurationPerContext=durationPerContext;DurationPerCandidate=durationPerCandidate;FixedNumberOfWarmUpRuns=numberOfWarmUpRuns;WarmUpContext=warmUpRunBenchmarkTestContext;}
Hi,
I love the design of this lib. Still, when I tried to use it I got the an
ArgumentException
on the following trivial example:Throws
The text was updated successfully, but these errors were encountered: