Table of Contents

Class ExecutionValidatorBase

Namespace
BenchmarkDotNet.Validators
Assembly
BenchmarkDotNet.dll
public abstract class ExecutionValidatorBase : IValidator
Inheritance
ExecutionValidatorBase
Implements
Derived

Constructors

ExecutionValidatorBase(bool)

protected ExecutionValidatorBase(bool failOnError)

Parameters

failOnError bool

Properties

TreatsWarningsAsErrors

public bool TreatsWarningsAsErrors { get; }

Property Value

bool

Methods

ExecuteBenchmarks(object, IEnumerable<BenchmarkCase>, List<ValidationError>)

protected abstract void ExecuteBenchmarks(object benchmarkTypeInstance, IEnumerable<BenchmarkCase> benchmarks, List<ValidationError> errors)

Parameters

benchmarkTypeInstance object
benchmarks IEnumerable<BenchmarkCase>
errors List<ValidationError>

GetDisplayExceptionMessage(Exception)

protected static string GetDisplayExceptionMessage(Exception ex)

Parameters

ex Exception

Returns

string

Validate(ValidationParameters)

public IEnumerable<ValidationError> Validate(ValidationParameters validationParameters)

Parameters

validationParameters ValidationParameters

Returns

IEnumerable<ValidationError>