Here are some tips that you can use to name your F# test methods.

Back-Ticked Names

F# allows you to name your type members with spaces and other special characters. Just place double back-ticks around your name.

Using this technique, standard test member names like:
    member x.test_that_uses_snakecase_to_name_its_tests() =
    member x.TestThatUsesCamelCaseToNameItsTests() =
can become:
    member x.``Test that is free to use spaces and other special characters like "quotes" and periods.``() =

Last edited Mar 27, 2010 at 3:02 AM by Ray_V, version 1


No comments yet.