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() =
or
    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

Comments

No comments yet.