* Add missing pre-cancelled combinatorial tests (output options only).
* Change Pre-cancelled tests to get token from Functions.AssertAlreadyCanceled.
* Add missing `Any` existence check pre-cancellation test.
* Wrap usual query cancellation to hide complexity.
* Add base helpers and sources for in-flight cancellation.
* Add Aggregate in-flight cancellation tests.
* Add All in-flight cancellation tests.
* Add Any in-flight cancellation tests.
* Add Average in-flight cancellation tests.
* Add Contains in-flight cancellation tests.
* Add Count/LongCount in-flight cancellation tests.
* Add ElementAt/ElementAtOrDefault in-flight cancellation tests.
* Add First/FirstOrDefault in-flight cancellation tests.
* Add ForAll in-flight cancellation tests.
* Add Last/LastOrDefault in-flight cancellation tests.
* Add Max in-flight cancellation tests.
* Add Min in-flight cancellation tests.
* Add SequenceEqual in-flight cancellation tests.
* Add Single/SingleOrDefault in-flight cancellation tests.
* Add Sum in-flight cancellation tests.
* Add ToArray in-flight cancellation tests.
* Add ToDictionary in-flight cancellation tests.
* Add ToList in-flight cancellation tests.
* Add ToLookup in-flight cancellation tests.
* Add foreach in-flight cancellation tests.
* Add cancellation for inner query of binaries.
* Remove basic pre-canceled token tests from `WithCancellationTests` (handled in combinatorial testing).
* Remove in-flight cancellation tests (handled in combinatorial and elsewhere)
* Move enumerator dispose test to GetEnumeratorTests
* Add/correct multiple WithCancellation test (original called WithDegreesOfParallelism)
* Add tests with not cancelable and pre canceled cancellation tokens.
* Remove SelectMany regression test (covered by existing SelectMany tests).
* Add tests for alternate (canceled) cancellation source throwing wrapped OCE.
* Add non-canceled thrown OCE test.
* Condense dealing with disposing the enumerator.
Original tests were liable to cause deadlock due to calling Dispose in a child thread (using an ordered source in an attempt to expand the tests made it a certainty).
* Update and expand ephemeral ODE test (potentially covered in combinatorial?).
* Update test for canceled-then-disposed enumerator.
* Re-use throws wrapped.
* Tweak comment, correct element counts.
* Replace regression test comment in SelectMany tests, tweak PE.Range expander
This comment was originally for a test in WithCancellationTests, but
that test didn't call WithCancellation at all. Given the nature of the
original test, it was felt that _all_ SelectMany tests would check for
the failure; the original test was thus removed.
* Correct operation.
* Comparers sealed/readonly
* Add missing min/max func cancel combinations.
* Knock down delay time.
* Move (implicit in foreach) MoveNext cancellation test.
* Reduce counts for WithCancellation ProducerBlocked tests.
* Create new AssertThrows helper.
- Cancellation-related throws provide default source
Switch to new cancellation throws.
- GetEnumerator switched to internal methods to explicitly run over all sources.
* Split Single/SingleDefault cancellation tests.
Commit migrated from https://github.com/dotnet/corefx/commit/2d1d84d28e45d1d08179dc5ff7bbe4cacb1d5e64
We removed the lifting from the lineup so tests should reference the
latest packages in order to ensure an implementation is available.
The latest pacakges exclude implementation dependencies so I needed to
add these to projects that were depending on them coming in transitively.
Commit migrated from https://github.com/dotnet/corefx/commit/bef9061fd1238adf47b864d8924d121e4134465b
Some fixes (adding imports, adding Platforms package) were tooled, but more complex ones (forking project.jsons, editing csproj's) were not.
Also makes dependency version validation rules case-insensitive. (I used this fix to update the versions of some packages.)
[tfs-changeset: 1573868]
Commit migrated from https://github.com/dotnet/corefx/commit/84af04317505d48feaa1e83dd5dc27ddc0f6de76
This wasn't caught previously because System.Linq.Parallel.Tests is depending on the System.Linq.dll NuGet package, not the live bits. Two tests were explicitly verifying object equality. This isn't necessary; I've simply deleted the offending checks.
Commit migrated from https://github.com/dotnet/corefx/commit/a7d743c973b2eea287c5c6dcde807fe640ed491a
A change was made to DNX to no longer restore project.jsons
that are in nested folders. This caused my batch update to miss
a number of tests and reference assembly projects.
This fixes the stale lock files, but restore is still broken.
[tfs-changeset: 1540448]
Commit migrated from https://github.com/dotnet/corefx/commit/3622cccc1b22fa1947a72d5126b59864e9d2fd0d
We need a new DNX to understand the latest packages.
We also need to move all "dotnet" projects to use dotnetX.X (generations)
now that the packages no longer have "dotnet" assets.
The new version of DNX dropped support for the aspnetcore
so I needed to update a few projects/packages that depended
on old package versions that had this moniker.
[tfs-changeset: 1540388]
Commit migrated from https://github.com/dotnet/corefx/commit/38f8d7a3ca1ee819c2b8eabb1c07ee4e99683c97
Several of the test projects are doing Console.WriteLine, but aren't actually using System.Console.dll, and are instead including a dummy Console.cs file where WriteLine just calls Debug.WriteLine. This commit deletes that dummy file and updates the consuming test projects to just use Debug.WriteLine. (We don't want our tests to be using Console.WriteLine for this kind of debug spew, anyway.)
Commit migrated from https://github.com/dotnet/corefx/commit/fbddea55638921186299e9c0eb51d3f3a8dd73b7
Enumerators, even those produced by PLINQ, are not safe to be used concurrently from multiple threads. Two PLINQ tests are doing exactly that, trying to Dispose of an enumerator concurrently with calling MoveNext on it and potentially concurrently with other calls to Dispose. This is resulting in sporadic hangs in CI.
I'm simply deleting the tests, as their sole purpose is to test this particular unsupported and unsafe situation.
Commit migrated from https://github.com/dotnet/corefx/commit/8ba6140a8c9d9584f71731e8856f6e2bdcfc8d17