Show / Hide Table of Contents

Class ExecutionValidatorBase

Inheritance
Object
ExecutionValidatorBase
ExecutionValidator
ReturnValueValidator
Implements
IValidator
Namespace: BenchmarkDotNet.Validators
Assembly: BenchmarkDotNet.dll
Syntax
public abstract class ExecutionValidatorBase : IValidator

Constructors

ExecutionValidatorBase(Boolean)

Declaration
protected ExecutionValidatorBase(bool failOnError)
Parameters
Type Name Description
Boolean failOnError

Properties

TreatsWarningsAsErrors

Declaration
public bool TreatsWarningsAsErrors { get; }
Property Value
Type Description
Boolean

Methods

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

Declaration
protected abstract void ExecuteBenchmarks(object benchmarkTypeInstance, IEnumerable<BenchmarkCase> benchmarks, List<ValidationError> errors)
Parameters
Type Name Description
Object benchmarkTypeInstance
IEnumerable<BenchmarkCase> benchmarks
List<ValidationError> errors

GetDisplayExceptionMessage(Exception)

Declaration
protected static string GetDisplayExceptionMessage(Exception ex)
Parameters
Type Name Description
Exception ex
Returns
Type Description
String

Validate(ValidationParameters)

Declaration
public IEnumerable<ValidationError> Validate(ValidationParameters validationParameters)
Parameters
Type Name Description
ValidationParameters validationParameters
Returns
Type Description
IEnumerable<ValidationError>

Implements

IValidator
In This Article
Back to top Copyright © 2013–2021 .NET Foundation and contributors