lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ccurr...@apache.org
Subject svn commit: r1300340 [6/6] - in /incubator/lucene.net/trunk: branding/logo/ build/vs2010/test/ src/contrib/Analyzers/ src/contrib/Analyzers/Compound/ src/contrib/Analyzers/El/ src/contrib/Analyzers/Fa/ src/contrib/Analyzers/Miscellaneous/ src/contrib/A...
Date Tue, 13 Mar 2012 20:32:49 GMT
Modified: incubator/lucene.net/trunk/test/contrib/Queries/DuplicateFilterTest.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Queries/DuplicateFilterTest.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/contrib/Queries/DuplicateFilterTest.cs (original)
+++ incubator/lucene.net/trunk/test/contrib/Queries/DuplicateFilterTest.cs Tue Mar 13 20:32:43 2012
@@ -87,7 +87,7 @@ namespace Lucene.Net.Search
             var h = searcher.Search(tq, df, 1000).ScoreDocs;
             for (int i = 0; i < h.Length; i++)
             {
-                Document d = searcher.Doc(h[i].doc);
+                Document d = searcher.Doc(h[i].Doc);
                 String url = d.Get(KEY_FIELD);
                 Assert.IsFalse(results.Contains(url), "No duplicate urls should be returned");
                 results.Add(url,url);
@@ -103,7 +103,7 @@ namespace Lucene.Net.Search
             bool dupsFound = false;
             for (int i = 0; i < h.Length; i++)
             {
-                Document d = searcher.Doc(h[i].doc);
+                Document d = searcher.Doc(h[i].Doc);
                 String url = d.Get(KEY_FIELD);
                 if (!dupsFound)
                     dupsFound = results.Contains(url);
@@ -122,7 +122,7 @@ namespace Lucene.Net.Search
             Assert.IsTrue(h.Length > 0, "Filtered searching should have found some matches");
             for (int i = 0; i < h.Length; i++)
             {
-                Document d = searcher.Doc(h[i].doc);
+                Document d = searcher.Doc(h[i].Doc);
                 String url = d.Get(KEY_FIELD);
                 Assert.IsFalse(results.Contains(url), "No duplicate urls should be returned");
                 results.Add(url,url);
@@ -139,7 +139,7 @@ namespace Lucene.Net.Search
             Assert.IsTrue(h.Length > 0, "Filtered searching should have found some matches");
             for (int i = 0; i < h.Length; i++)
             {
-                Document d = searcher.Doc(h[i].doc);
+                Document d = searcher.Doc(h[i].Doc);
                 String url = d.Get(KEY_FIELD);
                 TermDocs td = reader.TermDocs(new Term(KEY_FIELD, url));
                 int lastDoc = 0;
@@ -147,7 +147,7 @@ namespace Lucene.Net.Search
                 {
                     lastDoc = td.Doc();
                 }
-                Assert.AreEqual(lastDoc, h[i].doc, "Duplicate urls should return last doc");
+                Assert.AreEqual(lastDoc, h[i].Doc, "Duplicate urls should return last doc");
             }
         }
 
@@ -160,13 +160,13 @@ namespace Lucene.Net.Search
             Assert.IsTrue(h.Length > 0, "Filtered searching should have found some matches");
             for (int i = 0; i < h.Length; i++)
             {
-                Document d = searcher.Doc(h[i].doc);
+                Document d = searcher.Doc(h[i].Doc);
                 String url = d.Get(KEY_FIELD);
                 TermDocs td = reader.TermDocs(new Term(KEY_FIELD, url));
                 int lastDoc = 0;
                 td.Next();
                 lastDoc = td.Doc();
-                Assert.AreEqual(lastDoc, h[i].doc, "Duplicate urls should return first doc");
+                Assert.AreEqual(lastDoc, h[i].Doc, "Duplicate urls should return first doc");
             }
         }
     }

Modified: incubator/lucene.net/trunk/test/contrib/Queries/FuzzyLikeThisQueryTest.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Queries/FuzzyLikeThisQueryTest.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/contrib/Queries/FuzzyLikeThisQueryTest.cs (original)
+++ incubator/lucene.net/trunk/test/contrib/Queries/FuzzyLikeThisQueryTest.cs Tue Mar 13 20:32:43 2012
@@ -71,7 +71,7 @@ namespace Lucene.Net.Search
         {
             FuzzyLikeThisQuery flt = new FuzzyLikeThisQuery(10, analyzer);
             flt.AddTerms("smith", "name", 0.3f, 1);
-            Query q = flt.Rewrite(searcher.GetIndexReader());
+            Query q = flt.Rewrite(searcher.IndexReader);
             ISet<Term> queryTerms = new HashSet<Term>();
             q.ExtractTerms(queryTerms);
             Assert.IsTrue(queryTerms.Contains(new Term("name", "smythe")),"Should have variant smythe");
@@ -80,7 +80,7 @@ namespace Lucene.Net.Search
             TopDocs topDocs = searcher.Search(flt, 1);
             ScoreDoc[] sd = topDocs.ScoreDocs;
             Assert.IsTrue((sd != null) && (sd.Length > 0), "score docs must match 1 doc");
-            Document doc = searcher.Doc(sd[0].doc);
+            Document doc = searcher.Doc(sd[0].Doc);
             Assert.AreEqual("2", doc.Get("id"), "Should match most similar not most rare variant");
         }
 
@@ -90,7 +90,7 @@ namespace Lucene.Net.Search
         {
             FuzzyLikeThisQuery flt = new FuzzyLikeThisQuery(10, analyzer);
             flt.AddTerms("jonathin smoth", "name", 0.3f, 1);
-            Query q = flt.Rewrite(searcher.GetIndexReader());
+            Query q = flt.Rewrite(searcher.IndexReader);
             ISet<Term> queryTerms = new HashSet<Term>();
             q.ExtractTerms(queryTerms);
             Assert.IsTrue(queryTerms.Contains(new Term("name", "jonathan")),"Should have variant jonathan");
@@ -98,7 +98,7 @@ namespace Lucene.Net.Search
             TopDocs topDocs = searcher.Search(flt, 1);
             ScoreDoc[] sd = topDocs.ScoreDocs;
             Assert.IsTrue((sd != null) && (sd.Length > 0), "score docs must match 1 doc");
-            Document doc = searcher.Doc(sd[0].doc);
+            Document doc = searcher.Doc(sd[0].Doc);
             Assert.AreEqual("2", doc.Get("id"), "Should match most similar when using 2 words");
         }
 
@@ -108,14 +108,14 @@ namespace Lucene.Net.Search
         {
             FuzzyLikeThisQuery flt = new FuzzyLikeThisQuery(10, analyzer);
             flt.AddTerms("fernando smith", "name", 0.3f, 1);
-            Query q = flt.Rewrite(searcher.GetIndexReader());
+            Query q = flt.Rewrite(searcher.IndexReader);
             ISet<Term> queryTerms = new HashSet<Term>();
             q.ExtractTerms(queryTerms);
             Assert.IsTrue(queryTerms.Contains(new Term("name", "smith")), "Should have variant smith");
             TopDocs topDocs = searcher.Search(flt, 1);
             ScoreDoc[] sd = topDocs.ScoreDocs;
             Assert.IsTrue((sd != null) && (sd.Length > 0), "score docs must match 1 doc");
-            Document doc = searcher.Doc(sd[0].doc);
+            Document doc = searcher.Doc(sd[0].Doc);
             Assert.AreEqual("2", doc.Get("id"), "Should match most similar when using 2 words");
         }
 

Modified: incubator/lucene.net/trunk/test/contrib/Queries/Similar/TestMoreLikeThis.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Queries/Similar/TestMoreLikeThis.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/contrib/Queries/Similar/TestMoreLikeThis.cs (original)
+++ incubator/lucene.net/trunk/test/contrib/Queries/Similar/TestMoreLikeThis.cs Tue Mar 13 20:32:43 2012
@@ -102,12 +102,12 @@ namespace Lucene.Net.Search.Similar
             {
                 BooleanClause clause = (BooleanClause)clauses[i];
                 TermQuery tq = (TermQuery)clause.GetQuery();
-                float termBoost = (float)originalValues[tq.GetTerm().Text()];
-                Assert.IsNotNull(termBoost,"Expected term " + tq.GetTerm().Text());
+                float termBoost = (float)originalValues[tq.Term.Text];
+                Assert.IsNotNull(termBoost,"Expected term " + tq.Term.Text);
 
                 float totalBoost = termBoost * boostFactor;
-                Assert.AreEqual(totalBoost, tq.GetBoost(), 0.0001,"Expected boost of " + totalBoost + " for term '"
-                                 + tq.GetTerm().Text() + "' got " + tq.GetBoost());
+                Assert.AreEqual(totalBoost, tq.Boost, 0.0001,"Expected boost of " + totalBoost + " for term '"
+                                 + tq.Term.Text + "' got " + tq.Boost);
             }
         }
 
@@ -127,7 +127,7 @@ namespace Lucene.Net.Search.Similar
             {
                 BooleanClause clause = (BooleanClause)clauses[i];
                 TermQuery tq = (TermQuery)clause.GetQuery();
-                originalValues.Add(tq.GetTerm().Text(), tq.GetBoost());
+                originalValues.Add(tq.Term.Text, tq.Boost);
             }
             return originalValues;
         }

Modified: incubator/lucene.net/trunk/test/contrib/Regex/TestRegexQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Regex/TestRegexQuery.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/contrib/Regex/TestRegexQuery.cs (original)
+++ incubator/lucene.net/trunk/test/contrib/Regex/TestRegexQuery.cs Tue Mar 13 20:32:43 2012
@@ -91,8 +91,8 @@ namespace Lucene.Net.Search.Regex
         [Test]
         public void TestMatchAll()
         {
-            TermEnum terms = new RegexQuery(new Term(FN, "jum.")).GetEnum(searcher.GetIndexReader());
             Assert.Ignore("Difference in behavior of .NET and Java");
+            //TermEnum terms = new RegexQuery(new Term(FN, "jum.")).GetEnum(searcher.IndexReader);
             //These terms match in .NET's regex engine.  I feel there's not much I can do about it.
             //// no term should match
             //Assert.Null(terms.Term());

Modified: incubator/lucene.net/trunk/test/contrib/Regex/TestSpanRegexQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Regex/TestSpanRegexQuery.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/contrib/Regex/TestSpanRegexQuery.cs (original)
+++ incubator/lucene.net/trunk/test/contrib/Regex/TestSpanRegexQuery.cs Tue Mar 13 20:32:43 2012
@@ -1,4 +1,25 @@
-using System;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
@@ -108,4 +129,4 @@ namespace Contrib.Regex.Test
             writerB.Close();
         }
     }
-}
\ No newline at end of file
+}

Modified: incubator/lucene.net/trunk/test/contrib/SimpleFacetedSearch/TestSimpleFacetedSearch.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/SimpleFacetedSearch/TestSimpleFacetedSearch.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/contrib/SimpleFacetedSearch/TestSimpleFacetedSearch.cs (original)
+++ incubator/lucene.net/trunk/test/contrib/SimpleFacetedSearch/TestSimpleFacetedSearch.cs Tue Mar 13 20:32:43 2012
@@ -120,7 +120,7 @@ namespace Lucene.Net.Search
             {
                 foreach (Document doc in hpg.Documents)
                 {
-                    string text = doc.GetField("text").StringValue();
+                    string text = doc.GetField("text").StringValue;
                     Assert.IsTrue(text.Contains("block"));
                 }
             }
@@ -175,7 +175,7 @@ namespace Lucene.Net.Search
             {
                 foreach (Document doc in hpg.Documents)
                 {
-                    string text = doc.GetField("text").StringValue();
+                    string text = doc.GetField("text").StringValue;
                     Assert.IsTrue(text.Contains("block"));
                 }
             }
@@ -324,7 +324,7 @@ namespace Lucene.Net.Search
                 }
                 foreach (Document doc in hpg.Documents)
                 {
-                    string text = doc.GetField("text").StringValue();
+                    string text = doc.GetField("text").StringValue;
                     System.Diagnostics.Debug.WriteLine(">>" + facetName + ": " + text);
                 }
             }

Modified: incubator/lucene.net/trunk/test/contrib/Snowball/Analysis/Snowball/TestSnowball.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Snowball/Analysis/Snowball/TestSnowball.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/contrib/Snowball/Analysis/Snowball/TestSnowball.cs (original)
+++ incubator/lucene.net/trunk/test/contrib/Snowball/Analysis/Snowball/TestSnowball.cs Tue Mar 13 20:32:43 2012
@@ -103,9 +103,9 @@ namespace Lucene.Net.Analysis.Snowball
             Assert.AreEqual(2, offsetAtt.StartOffset());
             Assert.AreEqual(7, offsetAtt.EndOffset());
             Assert.AreEqual("wrd", typeAtt.Type());
-            Assert.AreEqual(3, posIncAtt.GetPositionIncrement());
-            Assert.AreEqual(77, flagsAtt.GetFlags());
-            Assert.AreEqual(new Payload(new byte[] { 0, 1, 2, 3 }), payloadAtt.GetPayload());
+            Assert.AreEqual(3, posIncAtt.PositionIncrement);
+            Assert.AreEqual(77, flagsAtt.Flags);
+            Assert.AreEqual(new Payload(new byte[] { 0, 1, 2, 3 }), payloadAtt.Payload);
         }
 
         [Test(Description = "LUCENENET-54")]
@@ -144,9 +144,9 @@ namespace Lucene.Net.Analysis.Snowball
                 termAtt.SetTermBuffer("accents");
                 offsetAtt.SetOffset(2, 7);
                 typeAtt.SetType("wrd");
-                posIncAtt.SetPositionIncrement(3);
-                payloadAtt.SetPayload(new Payload(new byte[] { 0, 1, 2, 3 }));
-                flagsAtt.SetFlags(77);
+                posIncAtt.PositionIncrement = 3;
+                payloadAtt.Payload = new Payload(new byte[] { 0, 1, 2, 3 });
+                flagsAtt.Flags = 77;
                 return true;
             }
 

Modified: incubator/lucene.net/trunk/test/contrib/Spatial/TestCartesian.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/Spatial/TestCartesian.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/contrib/Spatial/TestCartesian.cs (original)
+++ incubator/lucene.net/trunk/test/contrib/Spatial/TestCartesian.cs Tue Mar 13 20:32:43 2012
@@ -158,12 +158,12 @@ namespace Lucene.Net.Contrib.Spatial.Tes
 			double lastDistance = 0;
 			for (int i = 0; i < results; i++)
 			{
-				Document d = _searcher.Doc(scoreDocs[i].doc);
+				Document d = _searcher.Doc(scoreDocs[i].Doc);
 
 				String name = d.Get("name");
 				double rsLat = NumericUtils.PrefixCodedToDouble(d.Get(LatField));
 				double rsLng = NumericUtils.PrefixCodedToDouble(d.Get(LngField));
-				Double geo_distance = distances[scoreDocs[i].doc];
+				Double geo_distance = distances[scoreDocs[i].Doc];
 
 				double distance = DistanceUtils.GetInstance().GetDistanceMi(_lat, _lng, rsLat, rsLng);
 				double llm = DistanceUtils.GetInstance().GetLLMDistance(_lat, _lng, rsLat, rsLng);
@@ -293,12 +293,12 @@ namespace Lucene.Net.Contrib.Spatial.Tes
 			double lastDistance = 0;
 			for (int i = 0; i < results; i++)
 			{
-				Document d = _searcher.Doc(scoreDocs[i].doc);
+				Document d = _searcher.Doc(scoreDocs[i].Doc);
 
 				String name = d.Get("name");
 				double rsLat = NumericUtils.PrefixCodedToDouble(d.Get(LatField));
 				double rsLng = NumericUtils.PrefixCodedToDouble(d.Get(LngField));
-				Double geo_distance = distances[scoreDocs[i].doc];
+				Double geo_distance = distances[scoreDocs[i].Doc];
 
 				double distance = DistanceUtils.GetInstance().GetDistanceMi(_lat, _lng, rsLat, rsLng);
 				double llm = DistanceUtils.GetInstance().GetLLMDistance(_lat, _lng, rsLat, rsLng);

Modified: incubator/lucene.net/trunk/test/contrib/SpellChecker/Test/TestSpellChecker.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/contrib/SpellChecker/Test/TestSpellChecker.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/contrib/SpellChecker/Test/TestSpellChecker.cs (original)
+++ incubator/lucene.net/trunk/test/contrib/SpellChecker/Test/TestSpellChecker.cs Tue Mar 13 20:32:43 2012
@@ -219,7 +219,7 @@ namespace SpellChecker.Net.Test.Search.S
         private int Numdoc()
         {
             var rs = IndexReader.Open(spellindex);
-            int num = rs.NumDocs();
+            int num = rs.NumDocs;
             Assert.IsTrue(num != 0);
             
             rs.Close();
@@ -378,13 +378,13 @@ namespace SpellChecker.Net.Test.Search.S
                 if (i == searcherArray.Length - 1)
                 {
                     Assert.True(
-                        ((IndexSearcher)searcherArray[i]).GetIndexReader().GetRefCount() > 0,
+                        ((IndexSearcher)searcherArray[i]).IndexReader.RefCount > 0,
                         "expected last searcher Open but was closed");
                 }
                 else
                 {
                     Assert.False(
-                        ((IndexSearcher)searcherArray[i]).GetIndexReader().GetRefCount() > 0,
+                        ((IndexSearcher)searcherArray[i]).IndexReader.RefCount > 0,
                         "expected closed searcher but was Open - Index: " + i);
                 }
             }
@@ -395,7 +395,7 @@ namespace SpellChecker.Net.Test.Search.S
             Object[] searcherArray = searchers.ToArray();
             for (int i = 0; i < searcherArray.Length; i++)
             {
-                Assert.AreEqual(0, ((IndexSearcher)searcherArray[i]).GetIndexReader().GetRefCount());
+                Assert.AreEqual(0, ((IndexSearcher)searcherArray[i]).IndexReader.RefCount);
             }
         }
 
@@ -405,7 +405,7 @@ namespace SpellChecker.Net.Test.Search.S
             Object[] searcherArray = searchers.ToArray();
             for (int i = 0; i < searcherArray.Length; i++)
             {
-                if (((IndexSearcher)searcherArray[i]).GetIndexReader().GetRefCount() > 0)
+                if (((IndexSearcher)searcherArray[i]).IndexReader.RefCount > 0)
                     ++count;
             }
             Console.WriteLine(count);

Modified: incubator/lucene.net/trunk/test/core/Index/TestAddIndexesNoOptimize.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Index/TestAddIndexesNoOptimize.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Index/TestAddIndexesNoOptimize.cs (original)
+++ incubator/lucene.net/trunk/test/core/Index/TestAddIndexesNoOptimize.cs Tue Mar 13 20:32:43 2012
@@ -48,27 +48,27 @@ namespace Lucene.Net.Index
 			writer = NewWriter(dir, true);
 			// add 100 documents
 			AddDocs(writer, 100);
-			Assert.AreEqual(100, writer.MaxDoc());
+			Assert.AreEqual(100, writer.MaxDoc);
 			writer.Close();
 			
 			writer = NewWriter(aux, true);
 			writer.UseCompoundFile = false; // use one without a compound file
 			// add 40 documents in separate files
 			AddDocs(writer, 40);
-            Assert.AreEqual(40, writer.MaxDoc());
+            Assert.AreEqual(40, writer.MaxDoc);
 			writer.Close();
 			
 			writer = NewWriter(aux2, true);
 			// add 40 documents in compound files
 			AddDocs2(writer, 50);
-            Assert.AreEqual(50, writer.MaxDoc());
+            Assert.AreEqual(50, writer.MaxDoc);
 			writer.Close();
 			
 			// test doc count before segments are merged
 			writer = NewWriter(dir, false);
-            Assert.AreEqual(100, writer.MaxDoc());
+            Assert.AreEqual(100, writer.MaxDoc);
 			writer.AddIndexesNoOptimize(new Directory[]{aux, aux2});
-            Assert.AreEqual(190, writer.MaxDoc());
+            Assert.AreEqual(190, writer.MaxDoc);
 			writer.Close();
 			
 			// make sure the old index is correct
@@ -82,14 +82,14 @@ namespace Lucene.Net.Index
 			writer = NewWriter(aux3, true);
 			// add 40 documents
 			AddDocs(writer, 40);
-            Assert.AreEqual(40, writer.MaxDoc());
+            Assert.AreEqual(40, writer.MaxDoc);
 			writer.Close();
 			
 			// test doc count before segments are merged/index is optimized
 			writer = NewWriter(dir, false);
-            Assert.AreEqual(190, writer.MaxDoc());
+            Assert.AreEqual(190, writer.MaxDoc);
 			writer.AddIndexesNoOptimize(new Directory[]{aux3});
-            Assert.AreEqual(230, writer.MaxDoc());
+            Assert.AreEqual(230, writer.MaxDoc);
 			writer.Close();
 			
 			// make sure the new index is correct
@@ -118,9 +118,9 @@ namespace Lucene.Net.Index
 			writer.Close();
 			
 			writer = NewWriter(dir, false);
-            Assert.AreEqual(230, writer.MaxDoc());
+            Assert.AreEqual(230, writer.MaxDoc);
 			writer.AddIndexesNoOptimize(new Directory[]{aux4});
-            Assert.AreEqual(231, writer.MaxDoc());
+            Assert.AreEqual(231, writer.MaxDoc);
 			writer.Close();
 			
 			VerifyNumDocs(dir, 231);
@@ -263,7 +263,7 @@ namespace Lucene.Net.Index
 			writer = NewWriter(dir, true);
 			// add 100 documents
 			AddDocs(writer, 100);
-            Assert.AreEqual(100, writer.MaxDoc());
+            Assert.AreEqual(100, writer.MaxDoc);
 			writer.Close();
 			
 			writer = NewWriter(aux, true);
@@ -287,7 +287,7 @@ namespace Lucene.Net.Index
 			}
 			catch (System.ArgumentException e)
 			{
-                Assert.AreEqual(100, writer.MaxDoc());
+                Assert.AreEqual(100, writer.MaxDoc);
 			}
 			writer.Close();
 			
@@ -314,7 +314,7 @@ namespace Lucene.Net.Index
 			AddDocs(writer, 10);
 			
 			writer.AddIndexesNoOptimize(new Directory[]{aux});
-            Assert.AreEqual(1040, writer.MaxDoc());
+            Assert.AreEqual(1040, writer.MaxDoc);
 			Assert.AreEqual(2, writer.GetSegmentCount());
 			Assert.AreEqual(1000, writer.GetDocCount(0));
 			writer.Close();
@@ -340,7 +340,7 @@ namespace Lucene.Net.Index
 			AddDocs(writer, 2);
 			
 			writer.AddIndexesNoOptimize(new Directory[]{aux});
-            Assert.AreEqual(1032, writer.MaxDoc());
+            Assert.AreEqual(1032, writer.MaxDoc);
 			Assert.AreEqual(2, writer.GetSegmentCount());
 			Assert.AreEqual(1000, writer.GetDocCount(0));
 			writer.Close();
@@ -365,7 +365,7 @@ namespace Lucene.Net.Index
 			writer.SetMergeFactor(4);
 			
 			writer.AddIndexesNoOptimize(new Directory[]{aux, new RAMDirectory(aux)});
-            Assert.AreEqual(1060, writer.MaxDoc());
+            Assert.AreEqual(1060, writer.MaxDoc);
 			Assert.AreEqual(1000, writer.GetDocCount(0));
 			writer.Close();
 			
@@ -397,7 +397,7 @@ namespace Lucene.Net.Index
 			writer.SetMergeFactor(4);
 			
 			writer.AddIndexesNoOptimize(new Directory[]{aux, new RAMDirectory(aux)});
-            Assert.AreEqual(1020, writer.MaxDoc());
+            Assert.AreEqual(1020, writer.MaxDoc);
 			Assert.AreEqual(1000, writer.GetDocCount(0));
 			writer.Close();
 			
@@ -421,7 +421,7 @@ namespace Lucene.Net.Index
 			writer.SetMaxBufferedDocs(100);
 			writer.SetMergeFactor(10);
 			writer.AddIndexesNoOptimize(new Directory[]{aux});
-            Assert.AreEqual(30, writer.MaxDoc());
+            Assert.AreEqual(30, writer.MaxDoc);
 			Assert.AreEqual(3, writer.GetSegmentCount());
 			writer.Close();
 			
@@ -446,7 +446,7 @@ namespace Lucene.Net.Index
 			writer.SetMergeFactor(4);
 			
 			writer.AddIndexesNoOptimize(new Directory[]{aux, aux2});
-            Assert.AreEqual(1025, writer.MaxDoc());
+            Assert.AreEqual(1025, writer.MaxDoc);
 			Assert.AreEqual(1000, writer.GetDocCount(0));
 			writer.Close();
 			
@@ -508,7 +508,7 @@ namespace Lucene.Net.Index
 			writer.SetMaxBufferedDocs(1000);
 			// add 1000 documents in 1 segment
 			AddDocs(writer, 1000);
-            Assert.AreEqual(1000, writer.MaxDoc());
+            Assert.AreEqual(1000, writer.MaxDoc);
 			Assert.AreEqual(1, writer.GetSegmentCount());
 			writer.Close();
 			
@@ -526,7 +526,7 @@ namespace Lucene.Net.Index
 				writer.SetMaxBufferedDocs(100);
 				writer.SetMergeFactor(10);
 			}
-            Assert.AreEqual(30, writer.MaxDoc());
+            Assert.AreEqual(30, writer.MaxDoc);
 			Assert.AreEqual(3, writer.GetSegmentCount());
 			writer.Close();
 		}

Modified: incubator/lucene.net/trunk/test/core/Index/TestBackwardsCompatibility.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Index/TestBackwardsCompatibility.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Index/TestBackwardsCompatibility.cs (original)
+++ incubator/lucene.net/trunk/test/core/Index/TestBackwardsCompatibility.cs Tue Mar 13 20:32:43 2012
@@ -402,7 +402,7 @@ namespace Lucene.Net.Index
 			{
 				expected = 46;
 			}
-			Assert.AreEqual(expected, writer.MaxDoc(), "wrong doc count");
+			Assert.AreEqual(expected, writer.MaxDoc, "wrong doc count");
 			writer.Close();
 			
 			// make sure searching sees right # hits
@@ -513,7 +513,7 @@ namespace Lucene.Net.Index
 			{
 				AddDoc(writer, i);
 			}
-			Assert.AreEqual(35, writer.MaxDoc(), "wrong doc count");
+			Assert.AreEqual(35, writer.MaxDoc, "wrong doc count");
 			writer.Close();
 			
 			// open fresh writer so we get no prx file in the added segment
@@ -553,7 +553,7 @@ namespace Lucene.Net.Index
                 {
                     AddDoc(writer, i);
                 }
-                Assert.AreEqual(35, writer.MaxDoc(), "wrong doc count");
+                Assert.AreEqual(35, writer.MaxDoc, "wrong doc count");
                 writer.Close();
 
                 // Delete one doc so we get a .del file:

Modified: incubator/lucene.net/trunk/test/core/Index/TestCrash.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Index/TestCrash.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Index/TestCrash.cs (original)
+++ incubator/lucene.net/trunk/test/core/Index/TestCrash.cs Tue Mar 13 20:32:43 2012
@@ -96,7 +96,7 @@ namespace Lucene.Net.Index
 			MockRAMDirectory dir = (MockRAMDirectory) writer.GetDirectory();
 			writer.Close();
 			writer = InitIndex(dir);
-			Assert.AreEqual(314, writer.MaxDoc());
+			Assert.AreEqual(314, writer.MaxDoc);
 			Crash(writer);
 			
 			/*

Modified: incubator/lucene.net/trunk/test/core/Index/TestDeletionPolicy.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Index/TestDeletionPolicy.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Index/TestDeletionPolicy.cs (original)
+++ incubator/lucene.net/trunk/test/core/Index/TestDeletionPolicy.cs Tue Mar 13 20:32:43 2012
@@ -95,7 +95,7 @@ namespace Lucene.Net.Index
 			{
 				IndexCommit lastCommit = (IndexCommit) commits[commits.Count - 1];
 				IndexReader r = IndexReader.Open(dir, true);
-				Assert.AreEqual(r.IsOptimized, lastCommit.IsOptimized(), "lastCommit.isOptimized()=" + lastCommit.IsOptimized() + " vs IndexReader.isOptimized=" + r.IsOptimized);
+				Assert.AreEqual(r.IsOptimized, lastCommit.IsOptimized, "lastCommit.isOptimized()=" + lastCommit.IsOptimized + " vs IndexReader.isOptimized=" + r.IsOptimized);
 				r.Close();
 				Enclosing_Instance.VerifyCommitOrder(commits);
 				numOnCommit++;

Modified: incubator/lucene.net/trunk/test/core/Index/TestFilterIndexReader.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Index/TestFilterIndexReader.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Index/TestFilterIndexReader.cs (original)
+++ incubator/lucene.net/trunk/test/core/Index/TestFilterIndexReader.cs Tue Mar 13 20:32:43 2012
@@ -48,7 +48,7 @@ namespace Lucene.Net.Index
 				{
 					while (in_Renamed.Next())
 					{
-						if (in_Renamed.Term().Text().IndexOf('e') != - 1)
+						if (in_Renamed.Term().Text.IndexOf('e') != - 1)
 							return true;
 					}
 					return false;
@@ -128,7 +128,7 @@ namespace Lucene.Net.Index
 			TermEnum terms = reader.Terms();
 			while (terms.Next())
 			{
-				Assert.IsTrue(terms.Term().Text().IndexOf('e') != - 1);
+				Assert.IsTrue(terms.Term().Text.IndexOf('e') != - 1);
 			}
 			terms.Close();
 			

Modified: incubator/lucene.net/trunk/test/core/Index/TestIndexCommit.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Index/TestIndexCommit.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Index/TestIndexCommit.cs (original)
+++ incubator/lucene.net/trunk/test/core/Index/TestIndexCommit.cs Tue Mar 13 20:32:43 2012
@@ -1,4 +1,25 @@
-using System;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;
@@ -40,9 +61,9 @@ namespace Lucene.Net.Index
                 get { return false; }
             }
 
-            public override bool IsOptimized()
+            public override bool IsOptimized
             {
-                return false;
+                get { return false; }
             }
 
             public override long Version
@@ -97,9 +118,9 @@ namespace Lucene.Net.Index
                 get { return false; }
             }
 
-            public override bool IsOptimized()
+            public override bool IsOptimized
             {
-                return false;
+                get { return false; }
             }
 
             public override long Version

Modified: incubator/lucene.net/trunk/test/core/Index/TestIndexReader.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Index/TestIndexReader.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Index/TestIndexReader.cs (original)
+++ incubator/lucene.net/trunk/test/core/Index/TestIndexReader.cs Tue Mar 13 20:32:43 2012
@@ -106,7 +106,7 @@ namespace Lucene.Net.Index
 			
 			IndexReader r3 = r2.Reopen();
 			Assert.IsFalse(c.Equals(r3.IndexCommit));
-			Assert.IsFalse(r2.IndexCommit.IsOptimized());
+			Assert.IsFalse(r2.IndexCommit.IsOptimized);
 			r3.Close();
 
             writer = new IndexWriter(d, new StandardAnalyzer(Util.Version.LUCENE_CURRENT), false, IndexWriter.MaxFieldLength.LIMITED);
@@ -114,7 +114,7 @@ namespace Lucene.Net.Index
 			writer.Close();
 			
 			r3 = r2.Reopen();
-			Assert.IsTrue(r3.IndexCommit.IsOptimized());
+			Assert.IsTrue(r3.IndexCommit.IsOptimized);
 			r2.Close();
 			r3.Close();
 			d.Close();
@@ -312,7 +312,7 @@ namespace Lucene.Net.Index
 			writer = new IndexWriter(dir, new WhitespaceAnalyzer(), true, IndexWriter.MaxFieldLength.LIMITED);
 			for (int i = 0; i < 100; i++)
 			{
-				AddDoc(writer, searchTerm.Text());
+				AddDoc(writer, searchTerm.Text);
 			}
 			writer.Close();
 			
@@ -435,7 +435,7 @@ namespace Lucene.Net.Index
 			writer = new IndexWriter(dir, new WhitespaceAnalyzer(), true, IndexWriter.MaxFieldLength.LIMITED);
 			for (int i = 0; i < 11; i++)
 			{
-				AddDoc(writer, searchTerm.Text());
+				AddDoc(writer, searchTerm.Text);
 			}
 			writer.Close();
 			
@@ -490,7 +490,7 @@ namespace Lucene.Net.Index
 			writer = new IndexWriter(dir, new WhitespaceAnalyzer(), true, IndexWriter.MaxFieldLength.LIMITED);
 			for (int i = 0; i < 11; i++)
 			{
-				AddDoc(writer, searchTerm.Text());
+				AddDoc(writer, searchTerm.Text);
 			}
 			
 			// Create reader:
@@ -547,7 +547,7 @@ namespace Lucene.Net.Index
 			
 			//  add 1 documents with term : aaa
 			writer = new IndexWriter(dir, new WhitespaceAnalyzer(), true, IndexWriter.MaxFieldLength.LIMITED);
-			AddDoc(writer, searchTerm.Text());
+			AddDoc(writer, searchTerm.Text);
 			writer.Close();
 			
 			//  now open reader & set norm for doc 0
@@ -594,7 +594,7 @@ namespace Lucene.Net.Index
 			//  add 1 documents with term : aaa
 			writer = new IndexWriter(dir, new WhitespaceAnalyzer(), true, IndexWriter.MaxFieldLength.LIMITED);
 			writer.UseCompoundFile = false;
-			AddDoc(writer, searchTerm.Text());
+			AddDoc(writer, searchTerm.Text);
 			writer.Close();
 			
 			//  now open reader & set norm for doc 0 (writes to
@@ -663,7 +663,7 @@ namespace Lucene.Net.Index
 			IndexWriter writer = new IndexWriter(dir, new WhitespaceAnalyzer(), true, IndexWriter.MaxFieldLength.LIMITED);
 			for (int i = 0; i < 100; i++)
 			{
-				AddDoc(writer, searchTerm.Text());
+				AddDoc(writer, searchTerm.Text);
 			}
 			writer.Close();
 			
@@ -679,7 +679,7 @@ namespace Lucene.Net.Index
 			writer = new IndexWriter(dir, new WhitespaceAnalyzer(), false, IndexWriter.MaxFieldLength.LIMITED);
 			for (int i = 0; i < 100; i++)
 			{
-				AddDoc(writer, searchTerm2.Text());
+				AddDoc(writer, searchTerm2.Text);
 			}
 			
 			// REQUEST OPTIMIZATION
@@ -1342,9 +1342,9 @@ namespace Lucene.Net.Index
 			IndexWriter writer = new IndexWriter(dir, new WhitespaceAnalyzer(), true, IndexWriter.MaxFieldLength.LIMITED);
 			for (int i = 0; i < 100; i++)
 			{
-				AddDoc(writer, searchTerm1.Text());
-				AddDoc(writer, searchTerm2.Text());
-				AddDoc(writer, searchTerm3.Text());
+				AddDoc(writer, searchTerm1.Text);
+				AddDoc(writer, searchTerm2.Text);
+				AddDoc(writer, searchTerm3.Text);
 			}
 			if (optimize)
 				writer.Optimize();
@@ -1634,7 +1634,7 @@ namespace Lucene.Net.Index
 			
 			IndexReader r2 = r.Reopen();
 			Assert.IsFalse(c.Equals(r2.IndexCommit));
-			Assert.IsFalse(r2.IndexCommit.IsOptimized());
+			Assert.IsFalse(r2.IndexCommit.IsOptimized);
 			r2.Close();
 			
 			writer = new IndexWriter(d, new StandardAnalyzer(Util.Version.LUCENE_CURRENT), false, IndexWriter.MaxFieldLength.LIMITED);
@@ -1642,7 +1642,7 @@ namespace Lucene.Net.Index
 			writer.Close();
 			
 			r2 = r.Reopen();
-			Assert.IsTrue(r2.IndexCommit.IsOptimized());
+			Assert.IsTrue(r2.IndexCommit.IsOptimized);
 			
 			r.Close();
 			r2.Close();

Modified: incubator/lucene.net/trunk/test/core/Index/TestIndexWriter.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Index/TestIndexWriter.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Index/TestIndexWriter.cs (original)
+++ incubator/lucene.net/trunk/test/core/Index/TestIndexWriter.cs Tue Mar 13 20:32:43 2012
@@ -441,7 +441,7 @@ namespace Lucene.Net.Index
             {
                 AddDoc(writer);
             }
-            Assert.AreEqual(100, writer.MaxDoc());
+            Assert.AreEqual(100, writer.MaxDoc);
             writer.Close();
 
             // delete 40 documents
@@ -454,7 +454,7 @@ namespace Lucene.Net.Index
 
             // test doc count before segments are merged/index is optimized
             writer = new IndexWriter(dir, new WhitespaceAnalyzer(), IndexWriter.MaxFieldLength.LIMITED);
-            Assert.AreEqual(100, writer.MaxDoc());
+            Assert.AreEqual(100, writer.MaxDoc);
             writer.Close();
 
             reader = IndexReader.Open(dir, true);
@@ -464,10 +464,10 @@ namespace Lucene.Net.Index
 
             // optimize the index and check that the new doc count is correct
             writer = new IndexWriter(dir, new WhitespaceAnalyzer(), IndexWriter.MaxFieldLength.UNLIMITED);
-            Assert.AreEqual(100, writer.MaxDoc());
+            Assert.AreEqual(100, writer.MaxDoc);
             Assert.AreEqual(60, writer.NumDocs());
             writer.Optimize();
-            Assert.AreEqual(60, writer.MaxDoc());
+            Assert.AreEqual(60, writer.MaxDoc);
             Assert.AreEqual(60, writer.NumDocs());
             writer.Close();
 
@@ -480,7 +480,7 @@ namespace Lucene.Net.Index
             // make sure opening a new index for create over
             // this existing one works correctly:
             writer = new IndexWriter(dir, new WhitespaceAnalyzer(), true, IndexWriter.MaxFieldLength.LIMITED);
-            Assert.AreEqual(0, writer.MaxDoc());
+            Assert.AreEqual(0, writer.MaxDoc);
             Assert.AreEqual(0, writer.NumDocs());
             writer.Close();
         }
@@ -1180,7 +1180,7 @@ namespace Lucene.Net.Index
 
                 // now open index for create:
                 writer = new IndexWriter(dir, new WhitespaceAnalyzer(), true, IndexWriter.MaxFieldLength.LIMITED);
-                Assert.AreEqual(writer.MaxDoc(), 0, "should be zero documents");
+                Assert.AreEqual(writer.MaxDoc, 0, "should be zero documents");
                 AddDoc(writer);
                 writer.Close();
 
@@ -3643,7 +3643,7 @@ namespace Lucene.Net.Index
 
             writer = new IndexWriter(dir, new StandardAnalyzer(Util.Version.LUCENE_CURRENT), IndexWriter.MaxFieldLength.LIMITED);
             Assert.AreEqual(8, writer.NumDocs());
-            Assert.AreEqual(10, writer.MaxDoc());
+            Assert.AreEqual(10, writer.MaxDoc);
             writer.ExpungeDeletes();
             Assert.AreEqual(8, writer.NumDocs());
             writer.Close();

Modified: incubator/lucene.net/trunk/test/core/Index/TestIndexWriterMergePolicy.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Index/TestIndexWriterMergePolicy.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Index/TestIndexWriterMergePolicy.cs (original)
+++ incubator/lucene.net/trunk/test/core/Index/TestIndexWriterMergePolicy.cs Tue Mar 13 20:32:43 2012
@@ -226,7 +226,7 @@ namespace Lucene.Net.Index
             ((ConcurrentMergeScheduler)writer.MergeScheduler).Sync();
 		    writer.Commit();
 			CheckInvariants(writer);
-			Assert.AreEqual(10, writer.MaxDoc());
+			Assert.AreEqual(10, writer.MaxDoc);
 			
 			writer.Close();
 		}

Modified: incubator/lucene.net/trunk/test/core/Index/TestMultiLevelSkipList.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Index/TestMultiLevelSkipList.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Index/TestMultiLevelSkipList.cs (original)
+++ incubator/lucene.net/trunk/test/core/Index/TestMultiLevelSkipList.cs Tue Mar 13 20:32:43 2012
@@ -54,7 +54,7 @@ namespace Lucene.Net.Index
 			for (int i = 0; i < 5000; i++)
 			{
 				Document d1 = new Document();
-				d1.Add(new Field(term.Field(), term.Text(), Field.Store.NO, Field.Index.ANALYZED));
+				d1.Add(new Field(term.Field, term.Text, Field.Store.NO, Field.Index.ANALYZED));
 				writer.AddDocument(d1);
 			}
 			writer.Commit();

Modified: incubator/lucene.net/trunk/test/core/Index/TestPayloads.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Index/TestPayloads.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Index/TestPayloads.cs (original)
+++ incubator/lucene.net/trunk/test/core/Index/TestPayloads.cs Tue Mar 13 20:32:43 2012
@@ -239,7 +239,7 @@ namespace Lucene.Net.Index
 			System.Text.StringBuilder sb = new System.Text.StringBuilder();
 			for (int i = 0; i < terms.Length; i++)
 			{
-				sb.Append(terms[i].text_ForNUnit);
+				sb.Append(terms[i].text);
 				sb.Append(" ");
 			}
 			System.String content = sb.ToString();
@@ -584,7 +584,7 @@ namespace Lucene.Net.Index
 					for (int i = 0; i < freq; i++)
 					{
 						tp.NextPosition();
-						Assert.AreEqual(pool.BytesToString(tp.GetPayload(new byte[5], 0)), terms.Term().text_ForNUnit);
+						Assert.AreEqual(pool.BytesToString(tp.GetPayload(new byte[5], 0)), terms.Term().text);
 					}
 				}
 				tp.Close();

Modified: incubator/lucene.net/trunk/test/core/Index/TestSegmentReader.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Index/TestSegmentReader.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Index/TestSegmentReader.cs (original)
+++ incubator/lucene.net/trunk/test/core/Index/TestSegmentReader.cs Tue Mar 13 20:32:43 2012
@@ -145,8 +145,8 @@ namespace Lucene.Net.Index
 				Term term = terms.Term();
 				Assert.IsTrue(term != null);
 				//System.out.println("Term: " + term);
-				System.String fieldValue = (System.String) DocHelper.nameValues[term.Field()];
-				Assert.IsTrue(fieldValue.IndexOf(term.Text()) != - 1);
+				System.String fieldValue = (System.String) DocHelper.nameValues[term.Field];
+				Assert.IsTrue(fieldValue.IndexOf(term.Text) != - 1);
 			}
 			
 			TermDocs termDocs = reader.TermDocs();

Modified: incubator/lucene.net/trunk/test/core/Index/TestSegmentTermEnum.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Index/TestSegmentTermEnum.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Index/TestSegmentTermEnum.cs (original)
+++ incubator/lucene.net/trunk/test/core/Index/TestSegmentTermEnum.cs Tue Mar 13 20:32:43 2012
@@ -76,12 +76,12 @@ namespace Lucene.Net.Index
 			SegmentReader reader = SegmentReader.GetOnlySegmentReader(dir);
 			SegmentTermEnum termEnum = (SegmentTermEnum) reader.Terms();
 			Assert.IsTrue(termEnum.Next());
-			Assert.AreEqual("aaa", termEnum.Term().Text());
+			Assert.AreEqual("aaa", termEnum.Term().Text);
 			Assert.IsTrue(termEnum.Next());
-			Assert.AreEqual("aaa", termEnum.Prev().Text());
-			Assert.AreEqual("bbb", termEnum.Term().Text());
+			Assert.AreEqual("aaa", termEnum.Prev().Text);
+			Assert.AreEqual("bbb", termEnum.Term().Text);
 			Assert.IsFalse(termEnum.Next());
-			Assert.AreEqual("bbb", termEnum.Prev().Text());
+			Assert.AreEqual("bbb", termEnum.Prev().Text);
 		}
 		
 		private void  VerifyDocFreq()
@@ -94,12 +94,12 @@ namespace Lucene.Net.Index
 			// go to the first term (aaa)
 			termEnum.Next();
 			// assert that term is 'aaa'
-			Assert.AreEqual("aaa", termEnum.Term().Text());
+			Assert.AreEqual("aaa", termEnum.Term().Text);
 			Assert.AreEqual(200, termEnum.DocFreq());
 			// go to the second term (bbb)
 			termEnum.Next();
 			// assert that term is 'bbb'
-			Assert.AreEqual("bbb", termEnum.Term().Text());
+			Assert.AreEqual("bbb", termEnum.Term().Text);
 			Assert.AreEqual(100, termEnum.DocFreq());
 			
 			termEnum.Close();
@@ -108,12 +108,12 @@ namespace Lucene.Net.Index
 			// create enumeration of terms after term 'aaa', including 'aaa'
 			termEnum = reader.Terms(new Term("content", "aaa"));
 			// assert that term is 'aaa'
-			Assert.AreEqual("aaa", termEnum.Term().Text());
+			Assert.AreEqual("aaa", termEnum.Term().Text);
 			Assert.AreEqual(200, termEnum.DocFreq());
 			// go to term 'bbb'
 			termEnum.Next();
 			// assert that term is 'bbb'
-			Assert.AreEqual("bbb", termEnum.Term().Text());
+			Assert.AreEqual("bbb", termEnum.Term().Text);
 			Assert.AreEqual(100, termEnum.DocFreq());
 			
 			termEnum.Close();

Modified: incubator/lucene.net/trunk/test/core/Index/TestStressIndexing2.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Index/TestStressIndexing2.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Index/TestStressIndexing2.cs (original)
+++ incubator/lucene.net/trunk/test/core/Index/TestStressIndexing2.cs Tue Mar 13 20:32:43 2012
@@ -332,7 +332,7 @@ namespace Lucene.Net.Index
 			do 
 			{
 				Term term = termEnum.Term();
-				if (term == null || (System.Object) term.Field() != (System.Object) idField)
+				if (term == null || (System.Object) term.Field != (System.Object) idField)
 					break;
 				
 				termDocs1.Seek(termEnum);
@@ -679,7 +679,7 @@ namespace Lucene.Net.Index
 				
 				System.Collections.ArrayList fields = new System.Collections.ArrayList();
 				System.String idString = GetIdString();
-				Field idField = new Field(Lucene.Net.Index.TestStressIndexing2.idTerm.Field(), idString, Field.Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS);
+				Field idField = new Field(Lucene.Net.Index.TestStressIndexing2.idTerm.Field, idString, Field.Store.YES, Field.Index.NOT_ANALYZED_NO_NORMS);
 				fields.Add(idField);
 				
 				int nFields = NextInt(Lucene.Net.Index.TestStressIndexing2.maxFields);

Modified: incubator/lucene.net/trunk/test/core/Index/TestThreadedOptimize.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Index/TestThreadedOptimize.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Index/TestThreadedOptimize.cs (original)
+++ incubator/lucene.net/trunk/test/core/Index/TestThreadedOptimize.cs Tue Mar 13 20:32:43 2012
@@ -153,7 +153,7 @@ namespace Lucene.Net.Index
 				
 				// System.out.println("TEST: now index=" + writer.segString());
 				
-				Assert.AreEqual(expectedDocCount, writer.MaxDoc());
+				Assert.AreEqual(expectedDocCount, writer.MaxDoc);
 				
 				writer.Close();
 				writer = new IndexWriter(directory, ANALYZER, false, IndexWriter.MaxFieldLength.UNLIMITED);

Modified: incubator/lucene.net/trunk/test/core/QueryParser/TestQueryParser.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/QueryParser/TestQueryParser.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/QueryParser/TestQueryParser.cs (original)
+++ incubator/lucene.net/trunk/test/core/QueryParser/TestQueryParser.cs Tue Mar 13 20:32:43 2012
@@ -1019,36 +1019,36 @@ namespace Lucene.Net.QueryParsers
 			TermQuery tq;
 			
 			tq = (TermQuery) qp.Parse("foo:zoo*");
-			Assert.AreEqual("zoo", tq.Term.Text());
+			Assert.AreEqual("zoo", tq.Term.Text);
 			Assert.AreEqual(2, type[0]);
 			
 			tq = (TermQuery) qp.Parse("foo:zoo*^2");
-			Assert.AreEqual("zoo", tq.Term.Text());
+			Assert.AreEqual("zoo", tq.Term.Text);
 			Assert.AreEqual(2, type[0]);
 			Assert.AreEqual(tq.Boost, 2, 0);
 			
 			tq = (TermQuery) qp.Parse("foo:*");
-			Assert.AreEqual("*", tq.Term.Text());
+			Assert.AreEqual("*", tq.Term.Text);
 			Assert.AreEqual(1, type[0]); // could be a valid prefix query in the future too
 			
 			tq = (TermQuery) qp.Parse("foo:*^2");
-			Assert.AreEqual("*", tq.Term.Text());
+			Assert.AreEqual("*", tq.Term.Text);
 			Assert.AreEqual(1, type[0]);
 			Assert.AreEqual(tq.Boost, 2, 0);
 			
 			tq = (TermQuery) qp.Parse("*:foo");
-			Assert.AreEqual("*", tq.Term.Field());
-			Assert.AreEqual("foo", tq.Term.Text());
+			Assert.AreEqual("*", tq.Term.Field);
+			Assert.AreEqual("foo", tq.Term.Text);
 			Assert.AreEqual(3, type[0]);
 			
 			tq = (TermQuery) qp.Parse("*:*");
-			Assert.AreEqual("*", tq.Term.Field());
-			Assert.AreEqual("*", tq.Term.Text());
+			Assert.AreEqual("*", tq.Term.Field);
+			Assert.AreEqual("*", tq.Term.Text);
 			Assert.AreEqual(1, type[0]); // could be handled as a prefix query in the future
 			
 			tq = (TermQuery) qp.Parse("(*:*)");
-			Assert.AreEqual("*", tq.Term.Field());
-			Assert.AreEqual("*", tq.Term.Text());
+			Assert.AreEqual("*", tq.Term.Field);
+			Assert.AreEqual("*", tq.Term.Text);
 			Assert.AreEqual(1, type[0]);
 		}
 		

Modified: incubator/lucene.net/trunk/test/core/Search/CheckHits.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Search/CheckHits.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Search/CheckHits.cs (original)
+++ incubator/lucene.net/trunk/test/core/Search/CheckHits.cs Tue Mar 13 20:32:43 2012
@@ -54,7 +54,7 @@ namespace Lucene.Net.Search
 				CollectionsHelper.AddIfNotContains(ignore, (System.Int32) results[i]);
 			}
 			
-			int maxDoc = searcher.MaxDoc();
+			int maxDoc = searcher.MaxDoc;
 			for (int doc = 0; doc < maxDoc; doc++)
 			{
 				if (ignore.Contains((System.Int32) doc))

Modified: incubator/lucene.net/trunk/test/core/Search/JustCompileSearch.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Search/JustCompileSearch.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Search/JustCompileSearch.cs (original)
+++ incubator/lucene.net/trunk/test/core/Search/JustCompileSearch.cs Tue Mar 13 20:32:43 2012
@@ -109,9 +109,12 @@ namespace Lucene.Net.Search
 				throw new System.NotSupportedException(Lucene.Net.Search.JustCompileSearch.UNSUPPORTED_MSG);
 			}
 			
-			public override int MaxDoc()
+			public override int MaxDoc
 			{
-				throw new System.NotSupportedException(Lucene.Net.Search.JustCompileSearch.UNSUPPORTED_MSG);
+                get
+                {
+                    throw new System.NotSupportedException(Lucene.Net.Search.JustCompileSearch.UNSUPPORTED_MSG);
+                }
 			}
 			
 			public override Query Rewrite(Query query)

Modified: incubator/lucene.net/trunk/test/core/Search/QueryUtils.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Search/QueryUtils.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Search/QueryUtils.cs (original)
+++ incubator/lucene.net/trunk/test/core/Search/QueryUtils.cs Tue Mar 13 20:32:43 2012
@@ -416,7 +416,7 @@ namespace Lucene.Net.Search
 			if (0 < numDeletedDocs)
 				Assert.IsTrue(w.HasDeletions(), "writer has no deletions");
 			
-			Assert.AreEqual(numDeletedDocs, w.MaxDoc(), "writer is missing some deleted docs");
+			Assert.AreEqual(numDeletedDocs, w.MaxDoc, "writer is missing some deleted docs");
 			Assert.AreEqual(0, w.NumDocs(), "writer has non-deleted docs");
 			w.Close();
             IndexReader r = IndexReader.Open(d, true);

Modified: incubator/lucene.net/trunk/test/core/Search/TestBoolean2.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Search/TestBoolean2.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Search/TestBoolean2.cs (original)
+++ incubator/lucene.net/trunk/test/core/Search/TestBoolean2.cs Tue Mar 13 20:32:43 2012
@@ -99,7 +99,7 @@ namespace Lucene.Net.Search
 		        Directory copy = new RAMDirectory(dir2);
                 IndexWriter indexWriter = new IndexWriter(dir2, new WhitespaceAnalyzer(), IndexWriter.MaxFieldLength.UNLIMITED);
 		        indexWriter.AddIndexesNoOptimize(new[] {copy});
-		        docCount = indexWriter.MaxDoc();
+		        docCount = indexWriter.MaxDoc;
 		        indexWriter.Close();
 		        mulFactor *= 2;
 		    } while (docCount < 3000);

Modified: incubator/lucene.net/trunk/test/core/Search/TestMultiPhraseQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Search/TestMultiPhraseQuery.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Search/TestMultiPhraseQuery.cs (original)
+++ incubator/lucene.net/trunk/test/core/Search/TestMultiPhraseQuery.cs Tue Mar 13 20:32:43 2012
@@ -70,7 +70,7 @@ namespace Lucene.Net.Search
 			TermEnum te = ir.Terms(new Term("body", prefix));
 			do 
 			{
-				if (te.Term().Text().StartsWith(prefix))
+				if (te.Term().Text.StartsWith(prefix))
 				{
 					termsWithPrefix.Add(te.Term());
 				}
@@ -95,7 +95,7 @@ namespace Lucene.Net.Search
 			te = ir.Terms(new Term("body", prefix));
 			do 
 			{
-				if (te.Term().Text().StartsWith(prefix))
+				if (te.Term().Text.StartsWith(prefix))
 				{
 					termsWithPrefix.Add(te.Term());
 				}

Modified: incubator/lucene.net/trunk/test/core/Search/TestNumericRangeQuery32.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Search/TestNumericRangeQuery32.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Search/TestNumericRangeQuery32.cs (original)
+++ incubator/lucene.net/trunk/test/core/Search/TestNumericRangeQuery32.cs Tue Mar 13 20:32:43 2012
@@ -512,7 +512,7 @@ namespace Lucene.Net.Search
                     Term t = termEnum.Term();
                     if (t != null)
                     {
-                        int val = NumericUtils.PrefixCodedToInt(t.Text());
+                        int val = NumericUtils.PrefixCodedToInt(t.Text);
                         Assert.True(val >= lower && val <= upper, "value not in bounds");
                         count++;
                     }

Modified: incubator/lucene.net/trunk/test/core/Search/TestPhrasePrefixQuery.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Search/TestPhrasePrefixQuery.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Search/TestPhrasePrefixQuery.cs (original)
+++ incubator/lucene.net/trunk/test/core/Search/TestPhrasePrefixQuery.cs Tue Mar 13 20:32:43 2012
@@ -81,7 +81,7 @@ namespace Lucene.Net.Search
 			TermEnum te = ir.Terms(new Term("body", prefix + "*"));
 			do 
 			{
-				if (te.Term().Text().StartsWith(prefix))
+				if (te.Term().Text.StartsWith(prefix))
 				{
 					termsWithPrefix.Add(te.Term());
 				}

Modified: incubator/lucene.net/trunk/test/core/Search/TestScorerPerf.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Search/TestScorerPerf.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Search/TestScorerPerf.cs (original)
+++ incubator/lucene.net/trunk/test/core/Search/TestScorerPerf.cs Tue Mar 13 20:32:43 2012
@@ -104,7 +104,7 @@ namespace Lucene.Net.Search
 				{
 					if (r.Next(freq[j]) == 0)
 					{
-						d.Add(new Field("f", terms[j].Text(), Field.Store.NO, Field.Index.NOT_ANALYZED));
+						d.Add(new Field("f", terms[j].Text, Field.Store.NO, Field.Index.NOT_ANALYZED));
 						//System.out.println(d);
 					}
 				}

Modified: incubator/lucene.net/trunk/test/core/Search/TestTermVectors.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Search/TestTermVectors.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Search/TestTermVectors.cs (original)
+++ incubator/lucene.net/trunk/test/core/Search/TestTermVectors.cs Tue Mar 13 20:32:43 2012
@@ -289,7 +289,7 @@ namespace Lucene.Net.Search
 						//System.out.println("Doc Id: " + docId + " freq " + freq);
 						TermFreqVector vector = knownSearcher.reader_ForNUnit.GetTermFreqVector(docId, "field");
 						float tf = sim.Tf(freq);
-						float idf = sim.Idf(knownSearcher.DocFreq(term), knownSearcher.MaxDoc());
+						float idf = sim.Idf(knownSearcher.DocFreq(term), knownSearcher.MaxDoc);
 						//float qNorm = sim.queryNorm()
 						//This is fine since we don't have stop words
 						float lNorm = sim.LengthNorm("field", vector.GetTerms().Length);
@@ -300,7 +300,7 @@ namespace Lucene.Net.Search
 						int[] freqs = vector.GetTermFrequencies();
 						for (int i = 0; i < vTerms.Length; i++)
 						{
-							if (term.Text().Equals(vTerms[i]))
+							if (term.Text.Equals(vTerms[i]))
 							{
 								Assert.IsTrue(freqs[i] == freq);
 							}

Modified: incubator/lucene.net/trunk/test/core/Store/TestMultiMMap.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Store/TestMultiMMap.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Store/TestMultiMMap.cs (original)
+++ incubator/lucene.net/trunk/test/core/Store/TestMultiMMap.cs Tue Mar 13 20:32:43 2012
@@ -1,4 +1,25 @@
-using System;
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
+using System;
 using System.Collections.Generic;
 using System.Linq;
 using System.Text;

Modified: incubator/lucene.net/trunk/test/core/Store/TestRAMDirectory.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Store/TestRAMDirectory.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Store/TestRAMDirectory.cs (original)
+++ incubator/lucene.net/trunk/test/core/Store/TestRAMDirectory.cs Tue Mar 13 20:32:43 2012
@@ -106,7 +106,7 @@ namespace Lucene.Net.Store
 				doc.Add(new Field("content", English.IntToEnglish(i).Trim(), Field.Store.YES, Field.Index.NOT_ANALYZED));
 				writer.AddDocument(doc);
 			}
-			Assert.AreEqual(docsToAdd, writer.MaxDoc());
+			Assert.AreEqual(docsToAdd, writer.MaxDoc);
 			writer.Close();
 		    dir.Close();
 		}

Modified: incubator/lucene.net/trunk/test/core/Support/BigObject.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Support/BigObject.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Support/BigObject.cs (original)
+++ incubator/lucene.net/trunk/test/core/Support/BigObject.cs Tue Mar 13 20:32:43 2012
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 namespace Lucene.Net.Support
 {
     internal class BigObject
@@ -11,4 +32,4 @@ namespace Lucene.Net.Support
             buf = new byte[1024 * 1024]; //1MB
         }
     }
-}
\ No newline at end of file
+}

Modified: incubator/lucene.net/trunk/test/core/Support/CollisionTester.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Support/CollisionTester.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Support/CollisionTester.cs (original)
+++ incubator/lucene.net/trunk/test/core/Support/CollisionTester.cs Tue Mar 13 20:32:43 2012
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 namespace Lucene.Net.Support
 {
     class CollisionTester
@@ -26,4 +47,4 @@ namespace Lucene.Net.Support
                 return base.Equals(obj);
         }
     }
-}
\ No newline at end of file
+}

Modified: incubator/lucene.net/trunk/test/core/Support/SmallObject.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Support/SmallObject.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Support/SmallObject.cs (original)
+++ incubator/lucene.net/trunk/test/core/Support/SmallObject.cs Tue Mar 13 20:32:43 2012
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 namespace Lucene.Net.Support
 {
     internal class SmallObject
@@ -9,4 +30,4 @@ namespace Lucene.Net.Support
             this.i = i;
         }
     }
-}
\ No newline at end of file
+}

Modified: incubator/lucene.net/trunk/test/core/Support/TestCase.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Support/TestCase.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Support/TestCase.cs (original)
+++ incubator/lucene.net/trunk/test/core/Support/TestCase.cs Tue Mar 13 20:32:43 2012
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 namespace Lucene.Net
 {
     /// <summary>
@@ -30,4 +51,4 @@ namespace Lucene.Net
             return "GetTestCaseName[UnknownTestMethod]";
         }
     }
-}
\ No newline at end of file
+}

Modified: incubator/lucene.net/trunk/test/core/Support/TestCloseableThreadLocal.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Support/TestCloseableThreadLocal.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Support/TestCloseableThreadLocal.cs (original)
+++ incubator/lucene.net/trunk/test/core/Support/TestCloseableThreadLocal.cs Tue Mar 13 20:32:43 2012
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 using System;
 using Lucene.Net.Analysis;
 using Lucene.Net.Documents;
@@ -66,4 +87,4 @@ namespace Lucene.Net.Support
             Assert.AreEqual(0, aliveObjects);
         }
     }
-}
\ No newline at end of file
+}

Modified: incubator/lucene.net/trunk/test/core/Support/TestEquatableList.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Support/TestEquatableList.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Support/TestEquatableList.cs (original)
+++ incubator/lucene.net/trunk/test/core/Support/TestEquatableList.cs Tue Mar 13 20:32:43 2012
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 using System;
 using System.Collections;
 using System.Collections.Generic;
@@ -143,4 +164,4 @@ namespace Lucene.Net.Support
             Assert.IsTrue(hashTable.ContainsKey(list2));
         }
     }
-}
\ No newline at end of file
+}

Modified: incubator/lucene.net/trunk/test/core/Support/TestHashMap.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Support/TestHashMap.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Support/TestHashMap.cs (original)
+++ incubator/lucene.net/trunk/test/core/Support/TestHashMap.cs Tue Mar 13 20:32:43 2012
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 using System;
 using System.Collections.Generic;
 using NUnit.Framework;
@@ -189,4 +210,4 @@ namespace Lucene.Net.Support
             Assert.AreEqual(2, dict._dict.Count, "0 (default(int)) was not stored in internal dict!");
         }
     }
-}
\ No newline at end of file
+}

Modified: incubator/lucene.net/trunk/test/core/Support/TestIDisposable.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Support/TestIDisposable.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Support/TestIDisposable.cs (original)
+++ incubator/lucene.net/trunk/test/core/Support/TestIDisposable.cs Tue Mar 13 20:32:43 2012
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 using Lucene.Net.Analysis;
 using Lucene.Net.Documents;
 using Lucene.Net.Index;
@@ -56,4 +77,4 @@ namespace Lucene.Net.Support
             Assert.IsFalse(dir.isOpen_ForNUnit, "RAMDirectory");
         }
     }
-}
\ No newline at end of file
+}

Modified: incubator/lucene.net/trunk/test/core/Support/TestLRUCache.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Support/TestLRUCache.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Support/TestLRUCache.cs (original)
+++ incubator/lucene.net/trunk/test/core/Support/TestLRUCache.cs Tue Mar 13 20:32:43 2012
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 using NUnit.Framework;
 
 namespace Lucene.Net.Support
@@ -23,4 +44,4 @@ namespace Lucene.Net.Support
             Assert.IsNotNull(cache.Get("c"));
         }
     }
-}
\ No newline at end of file
+}

Modified: incubator/lucene.net/trunk/test/core/Support/TestOSClass.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Support/TestOSClass.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Support/TestOSClass.cs (original)
+++ incubator/lucene.net/trunk/test/core/Support/TestOSClass.cs Tue Mar 13 20:32:43 2012
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 using NUnit.Framework;
 
 namespace Lucene.Net.Support
@@ -24,4 +45,4 @@ namespace Lucene.Net.Support
             }
         }
     }
-}
\ No newline at end of file
+}

Modified: incubator/lucene.net/trunk/test/core/Support/TestOldPatches.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Support/TestOldPatches.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Support/TestOldPatches.cs (original)
+++ incubator/lucene.net/trunk/test/core/Support/TestOldPatches.cs Tue Mar 13 20:32:43 2012
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 using System;
 using Lucene.Net.Analysis;
 using Lucene.Net.Documents;
@@ -268,4 +289,4 @@ namespace Lucene.Net.Support
 
         //-------------------------------------------
     }
-}
\ No newline at end of file
+}

Modified: incubator/lucene.net/trunk/test/core/Support/TestSerialization.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Support/TestSerialization.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Support/TestSerialization.cs (original)
+++ incubator/lucene.net/trunk/test/core/Support/TestSerialization.cs Tue Mar 13 20:32:43 2012
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 using NUnit.Framework;
 
 namespace Lucene.Net.Support
@@ -74,4 +95,4 @@ namespace Lucene.Net.Support
             Assert.AreEqual(hitCount, hitCount2,"Error in serialization - different hit counts");
         }
     }
-}
\ No newline at end of file
+}

Modified: incubator/lucene.net/trunk/test/core/Support/TestThreadClass.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Support/TestThreadClass.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Support/TestThreadClass.cs (original)
+++ incubator/lucene.net/trunk/test/core/Support/TestThreadClass.cs Tue Mar 13 20:32:43 2012
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 using NUnit.Framework;
 
 namespace Lucene.Net.Support
@@ -35,4 +56,4 @@ namespace Lucene.Net.Support
             }
         }
     }
-}
\ No newline at end of file
+}

Modified: incubator/lucene.net/trunk/test/core/Support/TestWeakHashTable.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Support/TestWeakHashTable.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Support/TestWeakHashTable.cs (original)
+++ incubator/lucene.net/trunk/test/core/Support/TestWeakHashTable.cs Tue Mar 13 20:32:43 2012
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 using System;
 using System.Collections;
 using NUnit.Framework;
@@ -123,4 +144,4 @@ namespace Lucene.Net.Support
         }
 
     }
-}
\ No newline at end of file
+}

Modified: incubator/lucene.net/trunk/test/core/Support/TestWeakHashTableBehavior.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Support/TestWeakHashTableBehavior.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Support/TestWeakHashTableBehavior.cs (original)
+++ incubator/lucene.net/trunk/test/core/Support/TestWeakHashTableBehavior.cs Tue Mar 13 20:32:43 2012
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 using System;
 using System.Collections;
 using NUnit.Framework;
@@ -293,4 +314,4 @@ namespace Lucene.Net.Support
             Assert.IsNotNull(keys1);
         }
     }
-}
\ No newline at end of file
+}

Modified: incubator/lucene.net/trunk/test/core/Support/TestWeakHashTableMultiThreadAccess.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Support/TestWeakHashTableMultiThreadAccess.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Support/TestWeakHashTableMultiThreadAccess.cs (original)
+++ incubator/lucene.net/trunk/test/core/Support/TestWeakHashTableMultiThreadAccess.cs Tue Mar 13 20:32:43 2012
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 using System;
 using System.Threading;
 using NUnit.Framework;
@@ -83,4 +104,4 @@ namespace Lucene.Net.Support
             }
         }
     }
-}
\ No newline at end of file
+}

Modified: incubator/lucene.net/trunk/test/core/Support/TestWeakHashTablePerformance.cs
URL: http://svn.apache.org/viewvc/incubator/lucene.net/trunk/test/core/Support/TestWeakHashTablePerformance.cs?rev=1300340&r1=1300339&r2=1300340&view=diff
==============================================================================
--- incubator/lucene.net/trunk/test/core/Support/TestWeakHashTablePerformance.cs (original)
+++ incubator/lucene.net/trunk/test/core/Support/TestWeakHashTablePerformance.cs Tue Mar 13 20:32:43 2012
@@ -1,3 +1,24 @@
+/*
+ *
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License.  You may obtain a copy of the License at
+ *
+ *   http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied.  See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ *
+*/
+
 using System.Collections;
 using NUnit.Framework;
 
@@ -122,4 +143,4 @@ namespace Lucene.Net.Support
             }
         }
     }
-}
\ No newline at end of file
+}



Mime
View raw message