lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject lucenenet git commit: Adding helper method for easier porting of tests
Date Sat, 03 Jan 2015 19:15:11 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master 35e882e07 -> fbf7f122f


Adding helper method for easier porting of tests


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

Branch: refs/heads/master
Commit: fbf7f122f1020cff42fe2d2db6ce94a923b78fa0
Parents: 35e882e
Author: Itamar Syn-Hershko <itamar@code972.com>
Authored: Sat Jan 3 21:14:55 2015 +0200
Committer: Itamar Syn-Hershko <itamar@code972.com>
Committed: Sat Jan 3 21:14:55 2015 +0200

----------------------------------------------------------------------
 .../JavaCompatibility/LuceneTestCase.cs                  | 11 +++++++++++
 1 file changed, 11 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/fbf7f122/src/Lucene.Net.TestFramework/JavaCompatibility/LuceneTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/JavaCompatibility/LuceneTestCase.cs b/src/Lucene.Net.TestFramework/JavaCompatibility/LuceneTestCase.cs
index 0f83822..b2c23f5 100644
--- a/src/Lucene.Net.TestFramework/JavaCompatibility/LuceneTestCase.cs
+++ b/src/Lucene.Net.TestFramework/JavaCompatibility/LuceneTestCase.cs
@@ -1,5 +1,6 @@
 ´╗┐using System;
 using System.Collections;
+using System.Collections.Generic;
 using NUnit.Framework;
 
 namespace Lucene.Net
@@ -46,6 +47,16 @@ namespace Lucene.Net
             Assert.AreEqual(expected, actual, message);
         }
 
+        public static void assertEquals<T>(ISet<T> expected, ISet<T> actual)
+        {
+            Assert.True(expected.SetEquals(actual));
+        }
+
+        public static void assertEquals<T>(string message, ISet<T> expected,
ISet<T> actual)
+        {
+            Assert.True(expected.SetEquals(actual), message);
+        }
+
         public static void assertNotSame(object unexpected, object actual)
         {
             Assert.AreNotSame(unexpected, actual);


Mime
View raw message