From b92b8a8fb9ccca3254bf3241eea9d61f17657afd Mon Sep 17 00:00:00 2001 From: Oleksandr Bogomaz Date: Tue, 1 Dec 2015 19:25:41 +0200 Subject: [PATCH] #52 - move common not' code to CustomMatchers --- src/FsUnit.MbUnit/FsUnit.fs | 3 +-- src/FsUnit.MsTestUnit/FsUnit.fs | 3 +-- src/FsUnit.Xunit/FsUnit.fs | 3 +-- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/FsUnit.MbUnit/FsUnit.fs b/src/FsUnit.MbUnit/FsUnit.fs index 0b0b14f2..c9380c83 100644 --- a/src/FsUnit.MbUnit/FsUnit.fs +++ b/src/FsUnit.MbUnit/FsUnit.fs @@ -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 diff --git a/src/FsUnit.MsTestUnit/FsUnit.fs b/src/FsUnit.MsTestUnit/FsUnit.fs index 8faf303d..4d45587b 100644 --- a/src/FsUnit.MsTestUnit/FsUnit.fs +++ b/src/FsUnit.MsTestUnit/FsUnit.fs @@ -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 diff --git a/src/FsUnit.Xunit/FsUnit.fs b/src/FsUnit.Xunit/FsUnit.fs index 4898c24f..18915460 100644 --- a/src/FsUnit.Xunit/FsUnit.fs +++ b/src/FsUnit.Xunit/FsUnit.fs @@ -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