C# Class 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.
Afficher le fichier Open project: neutmute/SvnRevisionLabeller

Protected Properties

Свойство Type Description
_mockery Rhino.Mocks.MockRepository

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
Setup ( ) : void
Teardown ( ) : void

Method Details

Act() protected abstract méthode

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
Résultat void

After() protected méthode

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
Résultat void

Arrange() protected abstract méthode

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

Property Details

_mockery protected_oe property

protected MockRepository,Rhino.Mocks _mockery
Résultat Rhino.Mocks.MockRepository