Created
May 22, 2015 19:31
-
-
Save JonCanning/31ef103b309e7fc00edb to your computer and use it in GitHub Desktop.
TestFramework
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [<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 |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Before you say it, I like the parameters that way round!