C# 클래스 NUnit.Framework.Internal.Builders.NUnitTestCaseBuilder

NUnitTestCaseBuilder is a utility class used by attributes that build test cases.
파일 보기 프로젝트 열기: nunit/nunit 1 사용 예제들

공개 메소드들

메소드 설명
BuildTestMethod ( IMethodInfo method, System.Test parentSuite, TestCaseParameters parms ) : TestMethod

Builds a single NUnitTestMethod, either as a child of the fixture or as one of a set of test cases under a ParameterizedTestMethodSuite.

NUnitTestCaseBuilder ( ) : System

Constructs an NUnitTestCaseBuilder

비공개 메소드들

메소드 설명
CheckTestMethodSignature ( TestMethod testMethod, TestCaseParameters parms ) : bool

Helper method that checks the signature of a TestMethod and any supplied parameters to determine if the test is valid. Currently, NUnitTestMethods are required to be public, non-abstract methods, either static or instance, returning void. They may take arguments but the _values must be provided or the TestMethod is not considered runnable. Methods not meeting these criteria will be marked as non-runnable and the method will return false in that case.

The return value is no longer used internally, but is retained for testing purposes.

MarkAsNotRunnable ( TestMethod testMethod, string reason ) : bool

메소드 상세

BuildTestMethod() 공개 메소드

Builds a single NUnitTestMethod, either as a child of the fixture or as one of a set of test cases under a ParameterizedTestMethodSuite.
public BuildTestMethod ( IMethodInfo method, System.Test parentSuite, TestCaseParameters parms ) : TestMethod
method IMethodInfo The MethodInfo from which to construct the TestMethod
parentSuite System.Test The suite or fixture to which the new test will be added
parms TestCaseParameters The ParameterSet to be used, or null
리턴 TestMethod

NUnitTestCaseBuilder() 공개 메소드

Constructs an NUnitTestCaseBuilder
public NUnitTestCaseBuilder ( ) : System
리턴 System