dotnet / dotnet/docs

CancellationToken is not a property on TestContext

Open
#48,677 4 comments 1 reaction 0 assignees View on GitHub
:watch: Not Triaged dotnet-fundamentals/svc
Dominant language
No language data
Stars
4.8k
Forks
6.1k
Avg merge
15h 21m
Merged PRs (30d)
370

Description

### Type of issue

Code doesn't work

### Description

`CancellationToken` is not a property on `TestContext`.
It instead is `CancellationTokenSource`.

### Page URL

https://learn.microsoft.com/en-us/dotnet/core/testing/mstest-analyzers/mstest0049

### Content source URL

https://github.com/dotnet/docs/blob/main/docs/core/testing/mstest-analyzers/mstest0049.md

### Document Version Independent Id

11c7ec45-be3b-5457-c153-7a6e18432673

### Platform Id

a38be9f6-7220-b23e-82fc-69b19cc33c6a

### Article author

@Evangelink

### Metadata

* ID: dcd4363a-81ca-4b25-6147-d0ed5a5f28c0
* PlatformId: a38be9f6-7220-b23e-82fc-69b19cc33c6a
* Service: **dotnet-fundamentals**

[Related Issues](https://github.com/dotnet/docs/issues?q=is%3Aissue+is%3Aopen+11c7ec45-be3b-5457-c153-7a6e18432673)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.