Search code examples
c#-4.0fitnessefitnesse-slim

How to Pass Todays/Current date from Fitnesse Table Cell to C# fixture


I want to pass !today (yyyy/MM/dd) from fitnesse table cell to C# fixture. It's not working. However, if I use it on wiki, it's working fine.

Working:

!define !today

Not working:

!|classname|

|!today (yyyy/MM/dd)|

where I am going wrong. Need help in how to pass today's date from fitnesse table to C# fixture.


Solution

  • The leading ! in a table means the contents of the table are interpreted literally, so symbols like !today are not expanded. Use a plain table:

    |classname|
    |!today (yyyy/MM/dd)|