FitNesse RowFixture: contains, startsWith, endsWith

我与影子孤独终老i 提交于 2019-12-11 01:37:48

问题


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

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

回答1:


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|


来源:https://stackoverflow.com/questions/767345/fitnesse-rowfixture-contains-startswith-endswith

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!