lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From d...@apache.org
Subject svn commit: r940098 - /lucene/lucene.net/trunk/C#/src/Test/Index/TestIndexReader.cs
Date Sat, 01 May 2010 19:48:28 GMT
Author: digy
Date: Sat May  1 19:48:27 2010
New Revision: 940098

URL: http://svn.apache.org/viewvc?rev=940098&view=rev
Log:
LUCENENET-363 Compatibility fix for Mono

Modified:
    lucene/lucene.net/trunk/C#/src/Test/Index/TestIndexReader.cs

Modified: lucene/lucene.net/trunk/C#/src/Test/Index/TestIndexReader.cs
URL: http://svn.apache.org/viewvc/lucene/lucene.net/trunk/C%23/src/Test/Index/TestIndexReader.cs?rev=940098&r1=940097&r2=940098&view=diff
==============================================================================
--- lucene/lucene.net/trunk/C#/src/Test/Index/TestIndexReader.cs (original)
+++ lucene/lucene.net/trunk/C#/src/Test/Index/TestIndexReader.cs Sat May  1 19:48:27 2010
@@ -266,9 +266,9 @@ namespace Lucene.Net.Index
 			Assert.IsTrue(map != null, "map is null and it shouldn't be");
 			Assert.IsTrue(map.Count == 4, "map Size: " + map.Count + " is not: " + 4);
             System.Collections.Generic.SortedDictionary<object, object> set_Renamed
= (System.Collections.Generic.SortedDictionary<object, object>)map["termvector"];
-			for (System.Collections.IEnumerator iterator = set_Renamed.GetEnumerator(); iterator.MoveNext();
)
+            foreach (System.Collections.Generic.KeyValuePair<object, object> item in
set_Renamed)
 			{
-                TermVectorEntry entry = (TermVectorEntry)((System.Collections.Generic.KeyValuePair<object,
object>)iterator.Current).Key;
+                TermVectorEntry entry =  (TermVectorEntry)item.Key;
 				Assert.IsTrue(entry != null, "entry is null and it shouldn't be");
 				System.Console.Out.WriteLine("Entry: " + entry);
 			}



Mime
View raw message