You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucenenet.apache.org by sy...@apache.org on 2016/08/12 13:25:31 UTC

[18/32] lucenenet git commit: Exposing external getters for ClassEnvRule.TimeZone and Similarity

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/master
Commit: 3930ae4a014c336e73ed4bc24a867e18be4b008f
Parents: 95bd05b
Author: Connie Yau <co...@microsoft.com>
Authored: Sun Jul 31 22:51:02 2016 -0700
Committer: Connie Yau <co...@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).