2

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

contains(data)
startswith(data)
endswith(data)
Martin Brown
  • 24,692
  • 14
  • 77
  • 122
grootjans
  • 592
  • 1
  • 6
  • 17

1 Answers1

4

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|
grootjans
  • 592
  • 1
  • 6
  • 17
  • For those wanting more information about cell handlers Uncle Bob Martin, the developer of the original Java version of FitNesse, has a page about them: http://butunclebob.com/FitNesse.UserGuide.DotNet.SuiteAcceptanceTests.SuiteCellHandlerTests.SuiteOptionalAndCustomHandlerTests.TestCustomHandler – Simon Elms Apr 17 '19 at 12:05