Skip to content

Commit a851630

Browse files
committed
feat: Add annotation for v3 removal
1 parent cd4a6fa commit a851630

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/bunit/BunitContext.Obsoletes.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
namespace Bunit;
22

3+
[RemovedInFutureVersion("Obsolete in v2, removed in future version")]
34
public partial class BunitContext
45
{
56
/// <summary>

src/bunit/TestContext.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ namespace Bunit;
22

33
/// <inheritdoc />
44
[Obsolete($"Use {nameof(BunitContext)} instead. TestContext will be removed in a future release.", false, UrlFormat = "https://bunit.dev/docs/migrations")]
5+
[RemovedInFutureVersion("Obsolete in v2, removed in future version")]
56
public class TestContext : BunitContext
67
{
78
}

0 commit comments

Comments
 (0)