Skip to content

Commit

Permalink
Lucene.Net.Util.LuceneTestCase.RepeatAttribute: Fixed method name of …
Browse files Browse the repository at this point in the history
…SetResultErrorNonLuceneTestCaseSubclass
  • Loading branch information
NightOwl888 committed Jan 27, 2025
1 parent 347ad09 commit c20462e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ public override TestResult Execute(TestExecutionContext context)
{
if (context.CurrentTest.TypeInfo is null || !context.CurrentTest.TypeInfo.Type.IsSubclassOf(typeof(LuceneTestCase)))
{
return SetResultErrorNonLuceneNetTestCaseSubclass(context);
return SetResultErrorNonLuceneTestCaseSubclass(context);
}

RandomizedContext? randomizedContext = context.CurrentTest.GetRandomizedContext();
if (randomizedContext is null)
{
return SetResultErrorNonLuceneNetTestCaseSubclass(context);
return SetResultErrorNonLuceneTestCaseSubclass(context);
}

var random = new J2N.Randomizer(randomizedContext.RandomSeed);
Expand Down Expand Up @@ -130,7 +130,7 @@ public override TestResult Execute(TestExecutionContext context)
return context.CurrentResult;
}

private static TestResult SetResultErrorNonLuceneNetTestCaseSubclass(TestExecutionContext context)
private static TestResult SetResultErrorNonLuceneTestCaseSubclass(TestExecutionContext context)
{
if (context.CurrentResult is null) context.CurrentResult = context.CurrentTest.MakeTestResult();
// We only want this attribute to be used on subclasses of LuceneTestCase. This is an error.
Expand Down

0 comments on commit c20462e

Please sign in to comment.