【问题标题】:FitNesse RowFixture: contains, startsWith, endsWithFitNesse RowFixture:包含、startsWith、endsWith
【发布时间】:2009-04-20 08:11:45
【问题描述】:

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

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

【问题讨论】:

    标签: .net fitnesse


    【解决方案1】:

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

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

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

    然后你可以做一个这样的测试:

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

    【讨论】:

    • 对于那些想要了解更多关于单元处理程序的信息的人,FitNesse 原始 Java 版本的开发者 Bob Martin 叔叔有一个关于它们的页面:butunclebob.com/…
    猜你喜欢
    • 1970-01-01
    • 2010-09-11
    • 2021-01-07
    • 2010-10-24
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多