Skip to content

Commit

Permalink
fsprojects#52 - move common not' code to CustomMatchers
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-bogomaz committed Dec 1, 2015
1 parent f3ded21 commit b92b8a8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
3 changes: 1 addition & 2 deletions src/FsUnit.MbUnit/FsUnit.fs
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ let equal expected = CustomMatchers.equal expected

let equalWithin (tolerance:obj) (expected:obj) = CustomMatchers.equalWithin tolerance expected

let not' (expected:obj) =
if box expected = null then CustomMatchers.not' (IsNull()) else (CustomMatchers.not' expected)
let not' (expected:obj) = CustomMatchers.not' expected

let throw (t:Type) = CustomMatchers.throw t

Expand Down
3 changes: 1 addition & 2 deletions src/FsUnit.MsTestUnit/FsUnit.fs
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ let equal expected = CustomMatchers.equal expected

let equalWithin (tolerance:obj) (expected:obj) = CustomMatchers.equalWithin tolerance expected

let not' (expected:obj) =
if box expected = null then CustomMatchers.not' (IsNull()) else (CustomMatchers.not' expected)
let not' (expected:obj) = CustomMatchers.not' expected

let throw (t:Type) = CustomMatchers.throw t

Expand Down
3 changes: 1 addition & 2 deletions src/FsUnit.Xunit/FsUnit.fs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,7 @@ let equal expected = CustomMatchers.equal expected

let equalWithin (tolerance:obj) (expected:obj) = CustomMatchers.equalWithin tolerance expected

let not' (expected:obj) =
if box expected = null then CustomMatchers.not' (IsNull()) else (CustomMatchers.not' expected)
let not' (expected:obj) = CustomMatchers.not' expected

let throw (t:Type) = CustomMatchers.throw t

Expand Down

0 comments on commit b92b8a8

Please sign in to comment.