[英]FitNesse RowFixture: contains, startsWith, endsWith
Is it possible to express this in a RowFixture in FitNesse for .net: 是否可以在FitNesse for .net的RowFixture中表达这一点:
contains(data)
startswith(data)
endswith(data)
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|
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.