lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From nightowl...@apache.org
Subject [2/5] lucenenet git commit: TestFramework: Updated error description of TestProtectedFieldNames and TestPrivateFieldNames to instruct how to fix the problem.
Date Thu, 26 Jan 2017 05:28:08 GMT
TestFramework: Updated error description of TestProtectedFieldNames and TestPrivateFieldNames
to instruct how to fix the problem.


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

Branch: refs/heads/api-work
Commit: 3649847000714f3ac81eb5f7771191c48b6b7120
Parents: fa62828
Author: Shad Storhaug <shad@shadstorhaug.com>
Authored: Thu Jan 26 12:00:27 2017 +0700
Committer: Shad Storhaug <shad@shadstorhaug.com>
Committed: Thu Jan 26 12:00:27 2017 +0700

----------------------------------------------------------------------
 src/Lucene.Net.TestFramework/Util/ApiScanTestBase.cs | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/36498470/src/Lucene.Net.TestFramework/Util/ApiScanTestBase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Util/ApiScanTestBase.cs b/src/Lucene.Net.TestFramework/Util/ApiScanTestBase.cs
index 542a4c2..bf7678c 100644
--- a/src/Lucene.Net.TestFramework/Util/ApiScanTestBase.cs
+++ b/src/Lucene.Net.TestFramework/Util/ApiScanTestBase.cs
@@ -76,7 +76,8 @@ namespace Lucene.Net.Util
             }
             //}
 
-            Assert.IsFalse(names.Any(), names.Count() + " invalid protected field names detected.");
+            Assert.IsFalse(names.Any(), names.Count() + " invalid protected field names detected.
" +
+                "Protected fields must be camelCase and prefixed with 'm_' to prevent naming
conflicts with properties.");
         }
 
         //[Test, LuceneNetSpecific]
@@ -92,7 +93,8 @@ namespace Lucene.Net.Util
             }
             //}
 
-            Assert.IsFalse(names.Any(), names.Count() + " invalid private field names detected.");
+            Assert.IsFalse(names.Any(), names.Count() + " invalid private field names detected.
" +
+                "Private field names should be camelCase.");
         }
 
         //[Test, LuceneNetSpecific]


Mime
View raw message