Revert "Lucene.Net.Tests.Util.TestRamUsageEstimatorOnWildAnimals: Reworked test 
so it exists in .NET Standard but does not run"

This reverts commit 4854038058d384703ed7219e9661764f1f23fff6.


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

Branch: refs/heads/master
Commit: 40632593b32f7b2879b4f8b1c05478c4d058816c
Parents: 206f2e1
Author: Shad Storhaug <[email protected]>
Authored: Fri Sep 22 20:04:30 2017 +0700
Committer: Shad Storhaug <[email protected]>
Committed: Fri Sep 22 20:04:30 2017 +0700

----------------------------------------------------------------------
 .../Util/TestRamUsageEstimatorOnWildAnimals.cs                 | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucenenet/blob/40632593/src/Lucene.Net.Tests/Util/TestRamUsageEstimatorOnWildAnimals.cs
----------------------------------------------------------------------
diff --git a/src/Lucene.Net.Tests/Util/TestRamUsageEstimatorOnWildAnimals.cs 
b/src/Lucene.Net.Tests/Util/TestRamUsageEstimatorOnWildAnimals.cs
index f86016e..c34ca84 100644
--- a/src/Lucene.Net.Tests/Util/TestRamUsageEstimatorOnWildAnimals.cs
+++ b/src/Lucene.Net.Tests/Util/TestRamUsageEstimatorOnWildAnimals.cs
@@ -25,18 +25,15 @@ namespace Lucene.Net.Util
     [TestFixture]
     public class TestRamUsageEstimatorOnWildAnimals : LuceneTestCase
     {
+#if !NETSTANDARD // StackOverflowException cannot be caught in .NET Core. This 
test does not apply.
         public class ListElement
         {
             internal ListElement Next;
         }
 
-
         [Test]
         public virtual void TestOverflowMaxChainLength()
         {
-#if NETSTANDARD
-            AssumeTrue("StackOverflowException cannot be caught in .NET Core. 
This test does not apply.", false);
-#endif
             int UPPERLIMIT = 100000;
             int lower = 0;
             int upper = UPPERLIMIT;
@@ -68,5 +65,6 @@ namespace Lucene.Net.Util
                 Assert.Fail("Max object chain length till stack overflow: " + 
lower);
             }
         }
+#endif
     }
 }
\ No newline at end of file

Reply via email to