Add test for new CancellationTokenSource(0) (dotnet/corefx#34832)
authorStephen Toub <stoub@microsoft.com>
Thu, 31 Jan 2019 14:26:38 +0000 (09:26 -0500)
committerGitHub <noreply@github.com>
Thu, 31 Jan 2019 14:26:38 +0000 (09:26 -0500)
commit01d19b04a22c0f32afd03f031f0d6acf71b2ae44
treefdb42a723e127b591dfe20e91a96cd3c85c10bf0
parent558ddcde1b336dbf6cb48f495721655c7ccbf057
Add test for new CancellationTokenSource(0) (dotnet/corefx#34832)

Validate correct behavior when a CTS is constructed to be immediately canceled via a 0 timeout.

Commit migrated from https://github.com/dotnet/corefx/commit/fdf1d66f37cc09e2b9de05eadcaa14c9dd5fb223
src/libraries/System.Threading.Tasks/tests/CancellationTokenTests.netcoreapp.cs