Skip to content

Add a sample on how to get the cancellation token for TimeoutAttribute with CooperativeCancellation #5659

Open
@wizgob

Description

@wizgob

Type of issue

Missing information

Description

There is no indication on how the cancellation token should be passed.

The obvious guess did not work for me with MsTest 3.6.4 and sicne it's not documented, I've no idea of what I'm doing wrong

Page URL

https://learn.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.testtools.unittesting.timeoutattribute.cooperativecancellation?view=mstest-net-3.8

Content source URL

https://github.com/MicrosoftDocs/visualstudio-docs-dotnet-api-pr/blob/live/visualstudiosdk/Microsoft.VisualStudio.TestTools.UnitTesting/TimeoutAttribute.xml

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions