lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [22/34] lucenenet git commit: Exposing external getters for ClassEnvRule.TimeZone and Similarity
Date Fri, 12 Aug 2016 13:20:36 GMT
Exposing external getters for ClassEnvRule.TimeZone and Similarity


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

Branch: refs/heads/lucenenet-indexablefield-api
Commit: 3930ae4a014c336e73ed4bc24a867e18be4b008f
Parents: 95bd05b
Author: Connie Yau <conniey@microsoft.com>
Authored: Sun Jul 31 22:51:02 2016 -0700
Committer: Connie Yau <conniey@microsoft.com>
Committed: Sun Jul 31 22:51:02 2016 -0700

----------------------------------------------------------------------
 src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs | 10 ++++++++++
 1 file changed, 10 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/3930ae4a/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs b/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
index f63d5cc..ac143ba 100644
--- a/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
@@ -440,6 +440,16 @@ namespace Lucene.Net.Util
         /// </summary>
         internal TestRuleSetupAndRestoreClassEnv ClassEnvRule { get; private set; }
 
+        /// <summary>
+        /// Gets the Similarity from the Class Environment setup rule
+        /// </summary>
+        public Similarity Similarity { get { return ClassEnvRule.Similarity; } }
+
+        /// <summary>
+        /// Gets the Timezone from the Class Environment setup rule
+        /// </summary>
+        public TimeZone TimeZone { get { return ClassEnvRule.TimeZone; } }
+
         // LUCENENET TODO
         /// <summary>
         /// Suite failure marker (any error in the test or suite scope).


Mime
View raw message