Snippets tagged unit testing

  • Easy string approvals testing

    This simple tool is useful for string based approvals testing. When tests are run in DEBUG mode, the code opens the p4merge diff tool (change it to point to yours) to clearly show the differences between the expected and actual strings. The actual, or received string is copied, in escaped form, to the clipboard so that it can be easily pasted into the associated test to approve the changes if appropriate. When a debugger isn't attached, this tool reverts to using a standard Assert so that it won't attempt to open a diff viewer when executed on a CI server.

    1 people like this

    Posted: 12 years ago by Russell Politzky

  • TAP runner

    Test Anything Protocol runner for NUnit lets you run unit tests within an F# interactive session.

    3 people like this

    Posted: 10 years ago by Phillip Trelford