C# 클래스 Testeroids.ContextSpecificationBase

상속: IContextSpecification
파일 보기 프로젝트 열기: Testeroids/Testeroids 1 사용 예제들

Private Properties

프로퍼티 타입 설명
Act void
BaseSetUp void
BaseTestFixtureSetUp void
BaseTestFixtureTearDown void
ContextSpecificationBase System
DisposeContext void
EstablishContext void
GetNumberOfTestsInTestFixture int
IContextSpecification void
InstantiateMocks void
OutputContextTypeName void
PreTestFixtureSetUp void
RegisterTestFixtureWithAspects void

보호된 메소드들

메소드 설명
Because ( ) : void

The because method as overridable by the user of Testeroids. Will be called by Act.

Because will be injected through AOP on entering a test method. Internally, Act does make sure any verified mock created by the MockRepository has its recorded calls reset. This means that any call to a mocked method will "forget" about the method calls done prior to calling Because.

InitializeSubjectUnderTest ( ) : void

Performs additional initialization after the subject under test has been created.

RunPrerequisites ( ) : void

This will be called before the actual assert method. Executes all methods in the context marked with the PrerequisiteAttribute.

비공개 메소드들

메소드 설명
Act ( ) : void

This will be called by the InstrumentTestsAspect aspect. Performs the "Act" part, or the logic which is to be tested.

BaseSetUp ( ) : void
BaseTestFixtureSetUp ( ) : void
BaseTestFixtureTearDown ( ) : void
ContextSpecificationBase ( ) : System

Initializes static members of the ContextSpecificationBase class.

DisposeContext ( ) : void
EstablishContext ( ) : void
GetNumberOfTestsInTestFixture ( ) : int

Calculates the number of tests (marked with TestAttribute) in this test fixture.

IContextSpecification ( MethodBase testMethodInfo, bool isExceptionResilient ) : void

This will be called by the InstrumentTestsAspect aspect. Rethrows any exception logged during the test run.

InstantiateMocks ( ) : void
OutputContextTypeName ( Type contextType ) : void
PreTestFixtureSetUp ( ) : void
RegisterTestFixtureWithAspects ( ) : void

Registers this context with each attribute derived from TestFixtureSetupAttributeBase. Those attributes will get invoked for setup and teardown notifications.

메소드 상세

Because() 보호된 추상적인 메소드

The because method as overridable by the user of Testeroids. Will be called by Act.
Because will be injected through AOP on entering a test method. Internally, Act does make sure any verified mock created by the MockRepository has its recorded calls reset. This means that any call to a mocked method will "forget" about the method calls done prior to calling Because.
protected abstract Because ( ) : void
리턴 void

InitializeSubjectUnderTest() 보호된 추상적인 메소드

Performs additional initialization after the subject under test has been created.
protected abstract InitializeSubjectUnderTest ( ) : void
리턴 void

RunPrerequisites() 보호된 메소드

This will be called before the actual assert method. Executes all methods in the context marked with the PrerequisiteAttribute.
protected RunPrerequisites ( ) : void
리턴 void