lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [4/4] git commit: Use the correct assertion
Date Tue, 05 Aug 2014 00:29:03 GMT
Use the correct assertion


Project: http://git-wip-us.apache.org/repos/asf/lucenenet/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucenenet/commit/27cae3f4
Tree: http://git-wip-us.apache.org/repos/asf/lucenenet/tree/27cae3f4
Diff: http://git-wip-us.apache.org/repos/asf/lucenenet/diff/27cae3f4

Branch: refs/heads/branch_4x
Commit: 27cae3f46224f4cf8e9f8af59f142536ac2b13db
Parents: 27d435b
Author: Itamar Syn-Hershko <itamar@code972.com>
Authored: Tue Aug 5 03:28:31 2014 +0300
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Tue Aug 5 03:28:31 2014 +0300

----------------------------------------------------------------------
 test/test-framework/JavaCompatibility/LuceneTestCase.cs | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/27cae3f4/test/test-framework/JavaCompatibility/LuceneTestCase.cs
----------------------------------------------------------------------
diff --git a/test/test-framework/JavaCompatibility/LuceneTestCase.cs b/test/test-framework/JavaCompatibility/LuceneTestCase.cs
index 57c3818..7441052 100644
--- a/test/test-framework/JavaCompatibility/LuceneTestCase.cs
+++ b/test/test-framework/JavaCompatibility/LuceneTestCase.cs
@@ -89,8 +89,7 @@ namespace Lucene.Net
 
         protected static void assertArrayEquals(IEnumerable a1, IEnumerable a2)
         {
-            if (!a1.Equals(a2))
-                Fail();
+            CollectionAssert.AreEqual(a1, a2);
         }
 
         protected static void fail()


Mime
View raw message