lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [23/58] lucenenet git commit: QueryParser: Fixed casing of test names > Test
Date Tue, 06 Dec 2016 15:11:58 GMT
QueryParser: Fixed casing of test names > Test


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

Branch: refs/heads/master
Commit: e2b7290a0ac7c7f6d5438c7d1228b594843d8c6d
Parents: 2ad30fb
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Sun Dec 4 17:43:49 2016 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Sun Dec 4 22:00:47 2016 +0700

----------------------------------------------------------------------
 .../Flexible/Core/Nodes/TestQueryNode.cs        |  6 +-
 .../Flexible/Messages/TestNLS.cs                | 12 ++--
 .../Precedence/TestPrecedenceQueryParser.cs     | 32 ++++-----
 .../Flexible/Spans/TestSpanQueryParser.cs       |  8 +--
 .../Spans/TestSpanQueryParserSimpleSample.cs    |  2 +-
 .../Standard/TestMultiAnalyzerQPHelper.cs       |  6 +-
 .../Flexible/Standard/TestMultiFieldQPHelper.cs | 20 +++---
 .../Flexible/Standard/TestNumericQueryParser.cs | 20 +++---
 .../Flexible/Standard/TestQPHelper.cs           | 72 ++++++++++----------
 .../Simple/TestSimpleQueryParser.cs             |  4 +-
 10 files changed, 91 insertions(+), 91 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
index bc276ed..103bf37 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Core/Nodes/TestQueryNode.cs
@@ -13,7 +13,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
     {
         /* LUCENE-2227 bug in QueryNodeImpl.add() */
         [Test]
-        public void testAddChildren()
+        public void TestAddChildren()
         {
             IQueryNode nodeA = new FieldQueryNode("foo", "A", 0, 1);
             IQueryNode nodeB = new FieldQueryNode("foo", "B", 1, 2);
@@ -25,7 +25,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         /* LUCENE-3045 bug in QueryNodeImpl.containsTag(String key)*/
         [Test]
-        public void testTags()
+        public void TestTags()
         {
             IQueryNode node = new FieldQueryNode("foo", "A", 0, 1);
 
@@ -38,7 +38,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Core.Nodes
 
         /* LUCENE-5099 - QueryNodeProcessorImpl should set parent to null before returning
on processing */
         [Test]
-        public void testRemoveFromParent()
+        public void TestRemoveFromParent()
         {
             BooleanQueryNode booleanNode = new BooleanQueryNode(Collections.EmptyList<IQueryNode>());
             FieldQueryNode fieldNode = new FieldQueryNode("foo", "A", 0, 1);

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
index a2cf735..841d3fb 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Messages/TestNLS.cs
@@ -12,7 +12,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
     public class TestNLS : LuceneTestCase
     {
         [Test]
-        public void testMessageLoading()
+        public void TestMessageLoading()
         {
             //string message = MessagesTestBundle.ResourceManager.GetString("Q0001E_INVALID_SYNTAX");
 
@@ -31,7 +31,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         }
 
         [Test]
-        public void testMessageLoading_ja()
+        public void TestMessageLoading_ja()
         {
             IMessage invalidSyntax = new MessageImpl(
                 MessagesTestBundle.Q0001E_INVALID_SYNTAX, "XXX");
@@ -40,7 +40,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         }
 
         [Test]
-        public void testNLSLoading()
+        public void TestNLSLoading()
         {
             String message = NLS
                 .GetLocalizedMessage(MessagesTestBundle.Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION,
new CultureInfo("en"));
@@ -65,7 +65,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         }
 
         [Test]
-        public void testNLSLoading_ja()
+        public void TestNLSLoading_ja()
         {
             String message = NLS.GetLocalizedMessage(
                 MessagesTestBundle.Q0004E_INVALID_SYNTAX_ESCAPE_UNICODE_TRUNCATION,
@@ -78,7 +78,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         }
 
         [Test]
-        public void testNLSLoading_xx_XX()
+        public void TestNLSLoading_xx_XX()
         {
             //Locale locale = new Locale("xx", "XX", "");
             CultureInfo locale = new CultureInfo("xx-XX");
@@ -107,7 +107,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Messages
         // LUCENENET TODO: This doesn't compile because the resources don't contain this
message
 
         [Test]
-        public void testMissingMessage()
+        public void TestMissingMessage()
         {
             //Locale locale = Locale.ENGLISH;
             CultureInfo locale = new CultureInfo("en");

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
index 6a3db29..677582c 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Precedence/TestPrecedenceQueryParser.cs
@@ -197,7 +197,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testSimple()
+        public void TestSimple()
         {
             assertQueryEquals("term term term", null, "term term term");
             assertQueryEquals("türm term term", null, "türm term term");
@@ -256,7 +256,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testPunct()
+        public void TestPunct()
         {
             Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
             assertQueryEquals("a&b", a, "a&b");
@@ -265,7 +265,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testSlop()
+        public void TestSlop()
         {
             assertQueryEquals("\"term germ\"~2", null, "\"term germ\"~2");
             assertQueryEquals("\"term germ\"~2 flork", null, "\"term germ\"~2 flork");
@@ -275,7 +275,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testNumber()
+        public void TestNumber()
         {
             // The numbers go away because SimpleAnalzyer ignores them
             assertQueryEquals("3", null, "");
@@ -289,7 +289,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testWildcard()
+        public void TestWildcard()
         {
             assertQueryEquals("term*", null, "term*");
             assertQueryEquals("term*^2", null, "term*^2.0");
@@ -360,7 +360,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testQPA()
+        public void TestQPA()
         {
             assertQueryEquals("term term term", qpAnalyzer, "term term term");
             assertQueryEquals("term +stop term", qpAnalyzer, "term term");
@@ -379,7 +379,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testRange()
+        public void TestRange()
         {
             assertQueryEquals("[ a TO z]", null, "[a TO z]");
             assertTrue(GetQuery("[ a TO z]", null) is TermRangeQuery);
@@ -448,7 +448,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testDateRange()
+        public void TestDateRange()
         {
             String startDate = getLocalizedDate(2002, 1, 1, false);
             String endDate = getLocalizedDate(2002, 1, 4, false);
@@ -532,7 +532,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testEscaped()
+        public void TestEscaped()
         {
             Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
 
@@ -569,7 +569,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testTabNewlineCarriageReturn()
+        public void TestTabNewlineCarriageReturn()
         {
             assertQueryEqualsDOA("+weltbank +worlbank", null, "+weltbank +worlbank");
 
@@ -593,7 +593,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testSimpleDAO()
+        public void TestSimpleDAO()
         {
             assertQueryEqualsDOA("term term term", null, "+term +term +term");
             assertQueryEqualsDOA("term +term term", null, "+term +term +term");
@@ -603,7 +603,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testBoost()
+        public void TestBoost()
         {
             CharacterRunAutomaton stopSet = new CharacterRunAutomaton(BasicAutomata.MakeString("on"));
             Analyzer oneStopAnalyzer = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true,
stopSet);
@@ -627,7 +627,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testException()
+        public void TestException()
         {
             try
             {
@@ -640,7 +640,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
         }
 
         [Test]
-        public void testBooleanQuery()
+        public void TestBooleanQuery()
         {
             BooleanQuery.MaxClauseCount = (2);
             try
@@ -656,7 +656,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
 
         // LUCENE-792
         [Test]
-        public void testNOT()
+        public void TestNOT()
         {
             Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
             assertQueryEquals("NOT foo AND bar", a, "-foo +bar");
@@ -667,7 +667,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Precedence
          * issue has been corrected.
          */
         [Test]
-        public void testPrecedence()
+        public void TestPrecedence()
         {
             PrecedenceQueryParser parser = GetParser(new MockAnalyzer(Random(), MockTokenizer.WHITESPACE,
false));
             Query query1 = parser.Parse("A AND B OR C AND D", "field");

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
index eff0c6e..a59da48 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParser.cs
@@ -119,7 +119,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
         }
 
         [Test]
-        public void testTermSpans()
+        public void TestTermSpans()
         {
             assertEquals(GetSpanQuery("field:term").toString(), "term");
             assertEquals(GetSpanQuery("term").toString(), "term");
@@ -130,7 +130,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
         }
 
         [Test]
-        public void testUniqueField()
+        public void TestUniqueField()
         {
             assertEquals(GetSpanQuery("field", "term").toString(), "field:term");
             assertEquals(GetSpanQuery("field", "field:term").toString(), "field:term");
@@ -140,7 +140,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
         }
 
         [Test]
-        public void testOrSpans()
+        public void TestOrSpans()
         {
             assertEquals(GetSpanQuery("term1 term2").toString(),
             "spanOr([term1, term2])");
@@ -153,7 +153,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
         }
 
         [Test]
-        public void testQueryValidator()
+        public void TestQueryValidator()
         {
 
             try

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
index 1f8f8e4..5b40f51 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Spans/TestSpanQueryParserSimpleSample.cs
@@ -69,7 +69,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Spans
     public class TestSpanQueryParserSimpleSample : LuceneTestCase
     {
         [Test]
-        public void testBasicDemo()
+        public void TestBasicDemo()
         {
             ISyntaxParser queryParser = new StandardSyntaxParser();
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
index b5ab71c..942301d 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiAnalyzerQPHelper.cs
@@ -24,7 +24,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         private static int multiToken = 0;
 
         [Test]
-        public void testMultiAnalyzer()
+        public void TestMultiAnalyzer()
         {
 
             StandardQueryParser qp = new StandardQueryParser();
@@ -90,7 +90,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         }
 
-        // public void testMultiAnalyzerWithSubclassOfQueryParser() throws
+        // public void TestMultiAnalyzerWithSubclassOfQueryParser() throws
         // ParseException {
         // this test doesn't make sense when using the new QueryParser API
         // DumbQueryParser qp = new DumbQueryParser("", new MultiAnalyzer());
@@ -111,7 +111,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         // }
 
         [Test]
-        public void testPosIncrementAnalyzer()
+        public void TestPosIncrementAnalyzer()
         {
             StandardQueryParser qp = new StandardQueryParser();
             qp.Analyzer = (new PosIncrementAnalyzer());

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
index 351be88..f5ce99c 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestMultiFieldQPHelper.cs
@@ -29,7 +29,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         * corresponding static form (qtxt, fields[]).
         */
         [Test]
-        public void testStopwordsParsing()
+        public void TestStopwordsParsing()
         {
             assertStopQueryEquals("one", "b:one t:one");
             assertStopQueryEquals("one stop", "b:one t:one");
@@ -59,7 +59,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testSimple()
+        public void TestSimple()
         {
             String[]
             fields = { "b", "t" };
@@ -128,7 +128,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testBoostsSimple()
+        public void TestBoostsSimple()
         {
             IDictionary<String, float?> boosts = new Dictionary<String, float?>();
// LUCENENET TODO: make this non-nullable..?
             boosts.Put("b", 5);
@@ -163,7 +163,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testStaticMethod1()
+        public void TestStaticMethod1()
         {
             String[]
             fields = { "b", "t" };
@@ -209,7 +209,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testStaticMethod2()
+        public void TestStaticMethod2()
         {
             String[]
             fields = { "b", "t" };
@@ -237,7 +237,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testStaticMethod2Old()
+        public void TestStaticMethod2Old()
         {
             String[]
             fields = { "b", "t" };
@@ -270,7 +270,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testStaticMethod3()
+        public void TestStaticMethod3()
         {
             String[]
             queries = { "one", "two", "three" };
@@ -298,7 +298,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testStaticMethod3Old()
+        public void TestStaticMethod3Old()
         {
             String[]
             queries = { "one", "two" };
@@ -326,7 +326,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testAnalyzerReturningNull()
+        public void TestAnalyzerReturningNull()
         {
             String[]
             fields = new String[] { "f1", "f2", "f3" };
@@ -347,7 +347,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testStopWordSearching()
+        public void TestStopWordSearching()
         {
             Analyzer analyzer = new MockAnalyzer(Random());
             Store.Directory ramDir = NewDirectory();

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
index a516a10..df31e3c 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestNumericQueryParser.cs
@@ -337,7 +337,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testInclusiveNumericRange()
+        public void TestInclusiveNumericRange()
         {
             assertRangeQuery(NumberType.ZERO, NumberType.ZERO, true, true, 1);
             assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, true, true, 2);
@@ -349,7 +349,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         [Test]
         // test disabled since standard syntax parser does not work with inclusive and
         // exclusive at the same time
-        public void testInclusiveLowerNumericRange()
+        public void TestInclusiveLowerNumericRange()
         {
             assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, false, true, 1);
             assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, false, true, 1);
@@ -360,7 +360,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         [Test]
         // test disabled since standard syntax parser does not work with inclusive and
         // exclusive at the same time
-        public void testInclusiveUpperNumericRange()
+        public void TestInclusiveUpperNumericRange()
         {
             assertRangeQuery(NumberType.NEGATIVE, NumberType.ZERO, true, false, 1);
             assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, true, false, 1);
@@ -369,7 +369,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testExclusiveNumericRange()
+        public void TestExclusiveNumericRange()
         {
             assertRangeQuery(NumberType.ZERO, NumberType.ZERO, false, false, 0);
             assertRangeQuery(NumberType.ZERO, NumberType.POSITIVE, false, false, 0);
@@ -379,7 +379,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testOpenRangeNumericQuery()
+        public void TestOpenRangeNumericQuery()
         {
             assertOpenRangeQuery(NumberType.ZERO, "<", 1);
             assertOpenRangeQuery(NumberType.POSITIVE, "<", 2);
@@ -417,7 +417,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testSimpleNumericQuery()
+        public void TestSimpleNumericQuery()
         {
             assertSimpleQuery(NumberType.ZERO, 1);
             assertSimpleQuery(NumberType.POSITIVE, 1);
@@ -499,7 +499,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                     upperInclusiveStr);
 
 
-            testQuery(sb.toString(), expectedDocCount);
+            TestQuery(sb.toString(), expectedDocCount);
 
         }
 
@@ -532,7 +532,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             sb.append("+").append(DATE_FIELD_NAME).append(@operator).append('"').append(boundDateStr).append('"');
 
 
-            testQuery(sb.toString(), expectedDocCount);
+            TestQuery(sb.toString(), expectedDocCount);
         }
 
         public void assertSimpleQuery(NumberType numberType, int expectedDocCount)
@@ -564,11 +564,11 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                     .append('"');
 
 
-            testQuery(sb.toString(), expectedDocCount);
+            TestQuery(sb.toString(), expectedDocCount);
 
         }
 
-        private void testQuery(String queryStr, int expectedDocCount)
+        private void TestQuery(String queryStr, int expectedDocCount)
         {
             if (VERBOSE) Console.WriteLine("Parsing: " + queryStr);
 

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
index b1cae18..7c7132f 100644
--- a/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Flexible/Standard/TestQPHelper.cs
@@ -303,7 +303,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
         [Test]
-        public void testConstantScoreAutoRewrite()
+        public void TestConstantScoreAutoRewrite()
         {
             StandardQueryParser qp = new StandardQueryParser(new MockAnalyzer(Random(), MockTokenizer.WHITESPACE,
false));
             Query q = qp.Parse("foo*bar", "field");
@@ -319,7 +319,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT, ((MultiTermQuery)q).GetRewriteMethod());
         }
         [Test]
-        public void testCJK()
+        public void TestCJK()
         {
             // Test Ideographic Space - As wide as a CJK character cell (fullwidth)
             // used google to translate the word "term" to japanese -> ??
@@ -360,7 +360,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
         [Test]
-        public void testCJKTerm()
+        public void TestCJKTerm()
         {
             // individual CJK chars as terms
             SimpleCJKAnalyzer analyzer = new SimpleCJKAnalyzer();
@@ -380,7 +380,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         }
         [Test]
-        public void testCJKBoostedTerm()
+        public void TestCJKBoostedTerm()
         {
             // individual CJK chars as terms
             SimpleCJKAnalyzer analyzer = new SimpleCJKAnalyzer();
@@ -394,7 +394,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(expected, GetQuery("中国^0.5", analyzer));
         }
         [Test]
-        public void testCJKPhrase()
+        public void TestCJKPhrase()
         {
             // individual CJK chars as terms
             SimpleCJKAnalyzer analyzer = new SimpleCJKAnalyzer();
@@ -407,7 +407,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(expected, GetQuery("\"中国\"", analyzer));
         }
         [Test]
-        public void testCJKBoostedPhrase()
+        public void TestCJKBoostedPhrase()
         {
             // individual CJK chars as terms
             SimpleCJKAnalyzer analyzer = new SimpleCJKAnalyzer();
@@ -421,7 +421,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(expected, GetQuery("\"中国\"^0.5", analyzer));
         }
         [Test]
-        public void testCJKSloppyPhrase()
+        public void TestCJKSloppyPhrase()
         {
             // individual CJK chars as terms
             SimpleCJKAnalyzer analyzer = new SimpleCJKAnalyzer();
@@ -435,7 +435,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(expected, GetQuery("\"中国\"~3", analyzer));
         }
         [Test]
-        public void testSimple()
+        public void TestSimple()
         {
             assertQueryEquals("field=a", null, "a");
             assertQueryEquals("\"term germ\"~2", null, "\"term germ\"~2");
@@ -499,7 +499,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         }
         [Test]
-        public void testPunct()
+        public void TestPunct()
         {
             Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
             assertQueryEquals("a&b", a, "a&b");
@@ -507,7 +507,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertQueryEquals(".NET", a, ".NET");
         }
         [Test]
-        public void testGroup()
+        public void TestGroup()
         {
             assertQueryEquals("!(a AND b) OR c", null, "-(+a +b) c");
             assertQueryEquals("!(a AND b) AND c", null, "-(+a +b) +c");
@@ -517,7 +517,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertQueryEquals("(a AND b)^4 OR c", null, "((+a +b)^4.0) c");
         }
         [Test]
-        public void testSlop()
+        public void TestSlop()
         {
 
             assertQueryEquals("\"term germ\"~2", null, "\"term germ\"~2");
@@ -527,7 +527,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertQueryEquals("\"term germ\"~2^2", null, "\"term germ\"~2^2.0");
         }
         [Test]
-        public void testNumber()
+        public void TestNumber()
         {
             // The numbers go away because SimpleAnalzyer ignores them
             assertQueryEquals("3", null, "");
@@ -540,7 +540,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertQueryEquals("term term1 term2", a, "term term1 term2");
         }
         [Test]
-        public void testWildcard()
+        public void TestWildcard()
         {
             assertQueryEquals("term*", null, "term*");
             assertQueryEquals("term*^2", null, "term*^2.0");
@@ -633,7 +633,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertWildcardQueryEquals("?Term", true, "?term", true);
         }
         [Test]
-        public void testLeadingWildcardType()
+        public void TestLeadingWildcardType()
         {
             StandardQueryParser qp = GetParser(null);
             qp.AllowLeadingWildcard = (true);
@@ -642,7 +642,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(typeof(WildcardQuery), qp.Parse("*term*", "field").GetType());
         }
         [Test]
-        public void testQPA()
+        public void TestQPA()
         {
             assertQueryEquals("term term^3.0 term", qpAnalyzer, "term term^3.0 term");
             assertQueryEquals("term stop^3.0 term", qpAnalyzer, "term term");
@@ -674,7 +674,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertTrue(GetQuery("term +stop", qpAnalyzer) is TermQuery);
         }
         [Test]
-        public void testRange()
+        public void TestRange()
         {
             assertQueryEquals("[ a TO z]", null, "[a TO z]");
             assertEquals(MultiTermQuery.CONSTANT_SCORE_AUTO_REWRITE_DEFAULT, ((TermRangeQuery)GetQuery("[
a TO z]", null)).GetRewriteMethod());
@@ -759,7 +759,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             //return df.format(calendar.getTime());
         }
         [Test]
-        public void testDateRange()
+        public void TestDateRange()
         {
             String startDate = getLocalizedDate(2002, 1, 1);
             String endDate = getLocalizedDate(2002, 1, 4);
@@ -817,7 +817,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 + getDate(endDate, resolution) + "}");
         }
         [Test]
-        public void testEscaped()
+        public void TestEscaped()
         {
             Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
 
@@ -918,7 +918,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertQueryEquals("(\"a\\\\\") or (\"b\")", a, "a\\ or b");
         }
         [Test]
-        public void testQueryStringEscaping()
+        public void TestQueryStringEscaping()
         {
             Analyzer a = new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false);
 
@@ -960,7 +960,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         [Test]
         [Ignore("flexible queryparser shouldn't escape wildcard terms")]
-        public void testEscapedWildcard()
+        public void TestEscapedWildcard()
         {
             StandardQueryParser qp = new StandardQueryParser();
             qp.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
@@ -969,7 +969,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(q, qp.Parse("foo\\?ba?r", "field"));
         }
         [Test]
-        public void testTabNewlineCarriageReturn()
+        public void TestTabNewlineCarriageReturn()
         {
             assertQueryEqualsDOA("+weltbank +worlbank", null, "+weltbank +worlbank");
 
@@ -992,7 +992,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertQueryEqualsDOA("weltbank \t +worlbank", null, "+weltbank +worlbank");
         }
         [Test]
-        public void testSimpleDAO()
+        public void TestSimpleDAO()
         {
             assertQueryEqualsDOA("term term term", null, "+term +term +term");
             assertQueryEqualsDOA("term +term term", null, "+term +term +term");
@@ -1001,7 +1001,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertQueryEqualsDOA("-term term term", null, "-term +term +term");
         }
         [Test]
-        public void testBoost()
+        public void TestBoost()
         {
             CharacterRunAutomaton stopSet = new CharacterRunAutomaton(BasicAutomata.MakeString("on"));
             Analyzer oneStopAnalyzer = new MockAnalyzer(Random(), MockTokenizer.SIMPLE, true,
stopSet);
@@ -1042,7 +1042,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             fail("ParseException expected, not thrown");
         }
         [Test]
-        public void testException()
+        public void TestException()
         {
             assertQueryNodeException("*leadingWildcard"); // disallowed by default
             assertQueryNodeException("\"some phrase");
@@ -1053,7 +1053,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertQueryNodeException("secret AND illegal) AND access:confidential");
         }
         [Test]
-        public void testCustomQueryParserWildcard()
+        public void TestCustomQueryParserWildcard()
         {
             try
             {
@@ -1066,7 +1066,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
         [Test]
-        public void testCustomQueryParserFuzzy()
+        public void TestCustomQueryParserFuzzy()
         {
             try
             {
@@ -1080,7 +1080,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         }
 
         [Test]
-        public void testBooleanQuery()
+        public void TestBooleanQuery()
         {
             BooleanQuery.MaxClauseCount = (2);
             try
@@ -1101,7 +1101,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
          * This test differs from TestPrecedenceQueryParser
          */
         [Test]
-        public void testPrecedence()
+        public void TestPrecedence()
         {
             StandardQueryParser qp = new StandardQueryParser();
             qp.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
@@ -1114,7 +1114,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         // [Test]
         // Todo: Convert from DateField to DateUtil
-        //  public void testLocalDateFormat() throws IOException, QueryNodeException {
+        //  public void TestLocalDateFormat() throws IOException, QueryNodeException {
         //    Directory ramDir = newDirectory();
         //    IndexWriter iw = new IndexWriter(ramDir, newIndexWriterConfig(TEST_VERSION_CURRENT,
new MockAnalyzer(random, MockTokenizer.WHITESPACE, false)));
         //    addDateDoc("a", 2005, 12, 2, 10, 15, 33, iw);
@@ -1143,7 +1143,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
         //  }
 
         [Test]
-        public void testStarParsing()
+        public void TestStarParsing()
         {
             // final int[] type = new int[1];
             // StandardQueryParser qp = new StandardQueryParser("field", new
@@ -1207,7 +1207,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
 
         }
         [Test]
-        public void testRegexps()
+        public void TestRegexps()
         {
             StandardQueryParser qp = new StandardQueryParser();
             String df = "field";
@@ -1258,7 +1258,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             assertEquals(two, qp.Parse("/foo/ /bar/", df));
         }
         [Test]
-        public void testStopwords()
+        public void TestStopwords()
         {
             StandardQueryParser qp = new StandardQueryParser();
             CharacterRunAutomaton stopSet = new CharacterRunAutomaton(new RegExp("the|foo").ToAutomaton());
@@ -1283,7 +1283,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
                 + 2, ((BooleanQuery)result).Clauses.size() == 2);
         }
         [Test]
-        public void testPositionIncrement()
+        public void TestPositionIncrement()
         {
             StandardQueryParser qp = new StandardQueryParser();
             qp.Analyzer = (
@@ -1307,7 +1307,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
         [Test]
-        public void testMatchAllDocs()
+        public void TestMatchAllDocs()
         {
             StandardQueryParser qp = new StandardQueryParser();
             qp.Analyzer = (new MockAnalyzer(Random(), MockTokenizer.WHITESPACE, false));
@@ -1399,7 +1399,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             }
         }
         [Test]
-        public void testMultiPhraseQuery()
+        public void TestMultiPhraseQuery()
         {
             Store.Directory dir = NewDirectory();
             IndexWriter w = new IndexWriter(dir, NewIndexWriterConfig(TEST_VERSION_CURRENT,
new CannedAnalyzer()));
@@ -1417,7 +1417,7 @@ namespace Lucene.Net.QueryParsers.Flexible.Standard
             dir.Dispose();
         }
         [Test]
-        public void testRegexQueryParsing()
+        public void TestRegexQueryParsing()
         {
             String[]
             fields = { "b", "t" };

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/e2b7290a/src/Lucene.Net.Tests.QueryParser/Simple/TestSimpleQueryParser.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests.QueryParser/Simple/TestSimpleQueryParser.cs b/src/Lucene.Net.Tests.QueryParser/Simple/TestSimpleQueryParser.cs
index 1c8ccc6..2c66549 100644
--- a/src/Lucene.Net.Tests.QueryParser/Simple/TestSimpleQueryParser.cs
+++ b/src/Lucene.Net.Tests.QueryParser/Simple/TestSimpleQueryParser.cs
@@ -560,7 +560,7 @@ namespace Lucene.Net.QueryParsers.Simple
 
         /** test a more complex query with field weights */
         [Test]
-        public virtual void testWeightedOR()
+        public virtual void TestWeightedOR()
         {
             IDictionary<string, float> weights = new Dictionary<string, float>();
             weights["field0"] = 5f;
@@ -708,7 +708,7 @@ namespace Lucene.Net.QueryParsers.Simple
         }
 
         [Test]
-        public virtual void testRandomQueries2()
+        public virtual void TestRandomQueries2()
         {
             char[] chars = new char[] { 'a', '1', '|', '&', ' ', '(', ')', '"', '-',
'~' };
             StringBuilder sb = new StringBuilder();


Mime
View raw message