lucenenet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From synhers...@apache.org
Subject [1/2] lucenenet git commit: enable assumetrue/false
Date Fri, 02 Jan 2015 10:28:06 GMT
Repository: lucenenet
Updated Branches:
  refs/heads/master e86fa731b -> 1b3a5212a


enable assumetrue/false


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

Branch: refs/heads/master
Commit: d7bf8bd1a5905384e22307522d5dc241b51ce3d3
Parents: e86fa73
Author: Laimonas Simutis <laimis@gmail.com>
Authored: Thu Jan 1 22:00:38 2015 -0500
Committer: Laimonas Simutis <laimis@gmail.com>
Committed: Thu Jan 1 22:00:38 2015 -0500

----------------------------------------------------------------------
 src/Lucene.Net.TestFramework/Support/RandomizedTest.cs | 8 ++++----
 src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs    | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d7bf8bd1/src/Lucene.Net.TestFramework/Support/RandomizedTest.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.TestFramework/Support/RandomizedTest.cs b/src/Lucene.Net.TestFramework/Support/RandomizedTest.cs
index c5d645b..ca0cfd0 100644
--- a/src/Lucene.Net.TestFramework/Support/RandomizedTest.cs
+++ b/src/Lucene.Net.TestFramework/Support/RandomizedTest.cs
@@ -35,14 +35,14 @@ namespace Lucene.Net.TestFramework.Support
             return defaultValue;
         }
 
-        public void AssumeTrue(string msg, bool value)
+        public static void AssumeTrue(string msg, bool value)
         {
-            Assume.That(value);
+            Assume.That(value, msg);
         }
 
-        public void AssumeFalse(string msg, bool value)
+        public static void AssumeFalse(string msg, bool value)
         {
-            Assume.That(!value);
+            Assume.That(!value, msg);
         }
     }
 }
\ No newline at end of file

http://git-wip-us.apache.org/repos/asf/lucenenet/blob/d7bf8bd1/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 0abe721..e2e02fd 100644
--- a/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
+++ b/src/Lucene.Net.TestFramework/Util/LuceneTestCase.cs
@@ -340,7 +340,7 @@ namespace Lucene.Net.Util
         /// </summary>
         public static bool VERBOSE = RandomizedTest.SystemPropertyAsBoolean("tests.verbose",
 #if DEBUG
-            true
+            false
 #else
             false
 #endif
@@ -822,12 +822,12 @@ namespace Lucene.Net.Util
 
         public static void AssumeTrue(string msg, bool condition)
         {
-            //RandomizedTest.AssumeTrue(msg, condition);
+            RandomizedTest.AssumeTrue(msg, condition);
         }
 
         public static void AssumeFalse(string msg, bool condition)
         {
-            //RandomizedTest.AssumeFalse(msg, condition);
+            RandomizedTest.AssumeFalse(msg, condition);
         }
 
         public static void AssumeNoException(string msg, Exception e)


Mime
View raw message