FitNesse RowFixture:包含、开始、结束

发布于 2024-07-17 13:31:04 字数 124 浏览 3 评论 0原文

是否可以在 FitNesse for .net 的 RowFixture 中表达这一点:

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

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

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

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

梦中的蝴蝶 2024-07-24 13:31:04

快速浏览后,我找到了自己问题的答案:

您可以添加单元处理程序以向测试中添加特定行为

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

然后您可以进行如下测试:

!|My fixture|
|Content|
|..contained..|
|starts with..|
|..ends with|

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|
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文