FitNesse RowFixture: contains, startsWith, endsWit

2019-07-15 16:06发布

Is it possible to express this in a RowFixture in FitNesse for .net:

contains(data)
startswith(data)
endswith(data)

标签: .net fitnesse
1条回答
We Are One
2楼-- · 2019-07-15 16:57

After a quick look around, I found the answer to my own question:

You can add cell handlers to add specific behavior to your tests

!|cell handler loader|
|load|SubstringHandler|
|load|StartsWithHandler|
|load|EndsWithHandler|

You can then do a test like this:

!|My fixture|
|Content|
|..contained..|
|starts with..|
|..ends with|
查看更多
登录 后发表回答