From 5498084b252e9db14afd361d78b85231eaccdae9 Mon Sep 17 00:00:00 2001 From: Paul Irwin Date: Sat, 24 Feb 2024 17:56:19 -0700 Subject: [PATCH] Add back redundant override of TestRegexps in case some test runners don't report failures correctly --- .../Search/TestFieldCacheRewriteMethod.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/Lucene.Net.Tests/Search/TestFieldCacheRewriteMethod.cs b/src/Lucene.Net.Tests/Search/TestFieldCacheRewriteMethod.cs index c5befbe452..d045771dcb 100644 --- a/src/Lucene.Net.Tests/Search/TestFieldCacheRewriteMethod.cs +++ b/src/Lucene.Net.Tests/Search/TestFieldCacheRewriteMethod.cs @@ -61,5 +61,17 @@ public virtual void TestEquals() Assert.IsFalse(a1.Equals(b)); QueryUtils.Check(a1); } + + // LUCENENET NOTE: Tests in a base class are not pulled into the correct + // context in Visual Studio or Azure DevOps. This fixes that with the minimum amount of code necessary + // to run them in the correct context without duplicating all of the tests. + + /// + /// test a bunch of random regular expressions + [Test] + public override void TestRegexps() + { + base.TestRegexps(); + } } }