Skip to content

Commit 3042be5

Browse files
committed
refactor: Rename TestContext to BunitContext
1 parent 104686d commit 3042be5

File tree

166 files changed

+509
-649
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

166 files changed

+509
-649
lines changed

MIGRATION.md

Lines changed: 28 additions & 5 deletions

docs/samples/tests/mstest/BunitTestContext.cs

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/samples/tests/mstest/HelloWorldExplicitContextTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ public class HelloWorldExplicitContext
1010
public void HelloWorldComponentRendersCorrectly()
1111
{
1212
// Arrange
13-
using var ctx = new Bunit.TestContext();
13+
using var ctx = new Bunit.BunitContext();
1414

1515
// Act
1616
var cut = ctx.Render<HelloWorld>();

docs/samples/tests/mstest/HelloWorldRazorTest.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@attribute [TestClass]
2-
@inherits BunitTestContext
2+
@inherits BunitContext
33
@code
44
{
55
[TestMethod]

docs/samples/tests/mstest/HelloWorldTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ namespace Bunit.Docs.Samples;
44
using Bunit;
55

66
[TestClass]
7-
public class HelloWorldTest : BunitTestContext
7+
public class HelloWorldTest : BunitContext
88
{
99
[TestMethod]
1010
public void HelloWorldComponentRendersCorrectly()

docs/samples/tests/nunit/BunitTestContext.cs

Lines changed: 0 additions & 13 deletions
This file was deleted.

docs/samples/tests/nunit/HelloWorldExplicitContextTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public class HelloWorldExplicitContext
99
public void HelloWorldComponentRendersCorrectly()
1010
{
1111
// Arrange
12-
using var ctx = new Bunit.TestContext();
12+
using var ctx = new Bunit.BunitContext();
1313

1414
// Act
1515
var cut = ctx.Render<HelloWorld>();

docs/samples/tests/nunit/HelloWorldInstancePerTestCase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
namespace Bunit.Docs.Samples;
44

55
[FixtureLifeCycle(LifeCycle.InstancePerTestCase)]
6-
public class HelloWorldInstancePerTestCase : Bunit.TestContext
6+
public class HelloWorldInstancePerTestCase : Bunit.BunitContext
77
{
88
[Test]
99
public void HelloWorldComponentRendersCorrectly()

docs/samples/tests/nunit/HelloWorldRazorInstancePerTestCase.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
@attribute [FixtureLifeCycle(LifeCycle.InstancePerTestCase)]
2-
@inherits Bunit.TestContext
2+
@inherits Bunit.BunitContext
33

44
@code {
55
[Test]

docs/samples/tests/nunit/HelloWorldRazorTest.razor

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@inherits BunitTestContext
1+
@inherits BunitContext
22
@code
33
{
44
[Test]

0 commit comments

Comments
 (0)