Skip to content

Instantly share code, notes, and snippets.

@JonCanning
Created May 22, 2015 19:31
Show Gist options
  • Select an option

  • Save JonCanning/31ef103b309e7fc00edb to your computer and use it in GitHub Desktop.

Select an option

Save JonCanning/31ef103b309e7fc00edb to your computer and use it in GitHub Desktop.
TestFramework
[<AutoOpen>]
module TestFramework
open NUnit.Framework
let private assrt assertion actual expected = assertion(box expected, box actual, sprintf "Expected: %+A\rActual: %+A" expected actual)
let (==) actual expected = assrt Assert.AreEqual actual expected
let (!=) actual expected = assrt Assert.AreNotEqual actual expected
type Test = TestAttribute
@JonCanning

Copy link
Copy Markdown
Author

Before you say it, I like the parameters that way round!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment