FitNesse中,ColumnFixture

最近在学FitNesse框架,而在fixture的代码编写中,demo中的类需要继承ColunmFixture,所以,这里学习下ColunmFixture到底是什么

- 首先,ColumnFixture 的用途是用于测试需要成排的输入和输出的验证测试,下面我以一个小例子做说明,在下图的表格中,我们的需求如下,输入名字(name),输出hello,name.

FitNesse中ColumnFixture

**注意:这里的HelloWorld.AcceptanceTests是包名
HelloWorldTests2是类名**

我们的fixture的代码是:

FitNesse中ColumnFixture
\

我们的运行结果是:

FitNesse中ColumnFixture

相关文章: