We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a7090c commit 16efb2fCopy full SHA for 16efb2f
docs/core/testing/snippets/testcontext/csharp-cancellation/CancellationToken.cs
@@ -3,6 +3,9 @@
3
[TestClass]
4
public class TestClassCancellationToken
5
{
6
+ // MSTest automatically sets the TestContext property before each test runs.
7
+ // MSTest.Analyzers includes a diagnostic suppressor that removes CS8618
8
+ // (non-nullable property uninitialized) for this property.
9
public TestContext TestContext { get; set; }
10
11
[TestMethod]
docs/core/testing/snippets/testcontext/csharp-cancellation/project.csproj
@@ -8,7 +8,7 @@
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="MSTest" Version="4.0.0" />
+ <PackageReference Include="MSTest" Version="4.1.0" />
12
</ItemGroup>
13
14
</Project>
0 commit comments