Table of Contents

Class StaticMethodValidator

Namespace
NUnit.Framework.Internal.Execution
Assembly
nunit.framework.dll

Checks whether the method to execute is static.

public class StaticMethodValidator : IMethodValidator
Inheritance
StaticMethodValidator
Implements
Inherited Members

Constructors

StaticMethodValidator(string)

Construct a StaticMethodValidator.

public StaticMethodValidator(string failMessage)

Parameters

failMessage string

The error message to output in case the validation fails.

Methods

Validate(MethodInfo)

Determines whether a method to execute is static and throws an InvalidOperationException otherwise.

public void Validate(MethodInfo method)

Parameters

method MethodInfo

The method to validate.