Skip to content

Commit

Permalink
Changed NUnit3TestGeneratorProvider.SetTestMethod() and NUnit3TestGen…
Browse files Browse the repository at this point in the history
…eratorProvider.SetRowTest() to virtual (#2567)

Co-authored-by: Piotr Niedzialek <[email protected]>
  • Loading branch information
farum12 and Piotr Niedzialek authored Mar 10, 2022
1 parent 5a732c6 commit f6c5765
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ public void SetTestCleanupMethod(TestClassGenerationContext generationContext)
CodeDomHelper.AddAttribute(generationContext.TestCleanupMethod, TESTTEARDOWN_ATTR);
}

public void SetTestMethod(TestClassGenerationContext generationContext, CodeMemberMethod testMethod, string friendlyTestName)
public virtual void SetTestMethod(TestClassGenerationContext generationContext, CodeMemberMethod testMethod, string friendlyTestName)
{
CodeDomHelper.AddAttribute(testMethod, TEST_ATTR);
CodeDomHelper.AddAttribute(testMethod, DESCRIPTION_ATTR, friendlyTestName);
Expand All @@ -109,7 +109,7 @@ public virtual void SetTestMethodCategories(TestClassGenerationContext generatio
CodeDomHelper.AddAttributeForEachValue(testMethod, CATEGORY_ATTR, scenarioCategories);
}

public void SetRowTest(TestClassGenerationContext generationContext, CodeMemberMethod testMethod, string scenarioTitle)
public virtual void SetRowTest(TestClassGenerationContext generationContext, CodeMemberMethod testMethod, string scenarioTitle)
{
SetTestMethod(generationContext, testMethod, scenarioTitle);
}
Expand Down
1 change: 1 addition & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

Changes:
+ improve Service.GetValueRetrieverFor performance
+ Update NUnit3TestGeneratorProvider - SetTestMethod and SetRowTest are now virtual so that it can be replaced by generator plugins

3.9.40

Expand Down

0 comments on commit f6c5765

Please sign in to comment.