C# 클래스 CcNet.Labeller.Tests.Specification

Provides a base implementation for Arrange-Act-Assert testing.
All test setup should take place in the Arrange() method; the object being tested should be exercised in the Act() method; assertions are made in the [Test] methods. Any test cleanup takes place in the After() method.
파일 보기 프로젝트 열기: neutmute/SvnRevisionLabeller

보호된 프로퍼티들

프로퍼티 타입 설명
_mockery Rhino.Mocks.MockRepository

보호된 메소드들

메소드 설명
Act ( ) : void

Exercise the object under test. Only one object/operation should be tested per class.

To control the potential explosion of classes in Visual Studio's Solution Explorer, it could be beneficial to create an outer class for each object, and then an inner class for each operation.

After ( ) : void

Tidies up after each test. No test should leave artifacts behind which may affect other tests, especially tests which use a persistence store, such as a database.

Arrange ( ) : void

Sets up the context for the tests. Any initialisation of data should take place here.

비공개 메소드들

메소드 설명
Setup ( ) : void
Teardown ( ) : void

메소드 상세

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

Exercise the object under test. Only one object/operation should be tested per class.
To control the potential explosion of classes in Visual Studio's Solution Explorer, it could be beneficial to create an outer class for each object, and then an inner class for each operation.
protected abstract Act ( ) : void
리턴 void

After() 보호된 메소드

Tidies up after each test. No test should leave artifacts behind which may affect other tests, especially tests which use a persistence store, such as a database.
protected After ( ) : void
리턴 void

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

Sets up the context for the tests. Any initialisation of data should take place here.
protected abstract Arrange ( ) : void
리턴 void

프로퍼티 상세

_mockery 보호되어 있는 프로퍼티

protected MockRepository,Rhino.Mocks _mockery
리턴 Rhino.Mocks.MockRepository