Skip to content

Commit

Permalink
hide nunit setup methods in base classes
Browse files Browse the repository at this point in the history
  • Loading branch information
fakefeik committed Feb 22, 2024
1 parent ed290dd commit 5555c51
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions NUnit.Middlewares/SimpleSuiteBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace SkbKontur.NUnit.Middlewares
public abstract class SimpleSuiteBase
{
[OneTimeSetUp]
public Task OneTimeSetUp()
public Task _OneTimeSetUp()
{
var builder = new SetupBuilder();

Expand All @@ -20,7 +20,7 @@ public Task OneTimeSetUp()
}

[OneTimeTearDown]
public Task OneTimeTearDown()
public Task _OneTimeTearDown()
{
return suiteSetup?.TearDownAsync(TestExecutionContext.CurrentContext.CurrentTest) ?? Task.CompletedTask;
}
Expand Down
8 changes: 4 additions & 4 deletions NUnit.Middlewares/SimpleTestBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace SkbKontur.NUnit.Middlewares
public abstract class SimpleTestBase
{
[OneTimeSetUp]
public Task OneTimeSetUp()
public Task _OneTimeSetUp()
{
var fixture = new SetupBuilder();
var test = new SetupBuilder();
Expand All @@ -22,19 +22,19 @@ public Task OneTimeSetUp()
}

[OneTimeTearDown]
public Task OneTimeTearDown()
public Task _OneTimeTearDown()
{
return fixtureSetup?.TearDownAsync(TestExecutionContext.CurrentContext.CurrentTest) ?? Task.CompletedTask;
}

[SetUp]
public Task SetUp()
public Task _SetUp()
{
return testSetup?.SetUpAsync(TestExecutionContext.CurrentContext.CurrentTest) ?? Task.CompletedTask;
}

[TearDown]
public Task TearDown()
public Task _TearDown()
{
return testSetup?.TearDownAsync(TestExecutionContext.CurrentContext.CurrentTest) ?? Task.CompletedTask;
}
Expand Down

0 comments on commit 5555c51

Please sign in to comment.