FitNesse中ColumnFixture

FitNesse中,ColumnFixture

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

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

这里写图片描述

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

我们的fixture的代码是:

这里写图片描述
\

我们的运行结果是:

这里写图片描述

猜你喜欢

转载自blog.csdn.net/shuocham/article/details/81179424
今日推荐