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.
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
_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