Commit Graph
7 Commits
Author SHA1 Message Date
dotnet-bot 3184718282 Deploy nameof throughout corefx in exception construction
Mostly automated replacement of parameter name string literals with corresponding usage of nameof.


Commit migrated from https://github.com/dotnet/corefx/commit/396b41ddec99d01505c1bc4fa02fb0f0c5844990
2016-02-18 23:58:06 -05:00
Stephen Toub 46c88ec294 Merge pull request dotnet/corefx#5738 from hughbe/parallel-tests
Cleanup System.Threading.Tasks.Parallel.Tests, fix dotnet/corefx#790

Commit migrated from https://github.com/dotnet/corefx/commit/8839c5ef85f4ccc04a0231dc9670ddda232e3da1
2016-01-28 23:02:03 -08:00
Hugh Bellamy 20991f2e56 Cleanup System.Threading.Tasks.Parallel.Tests, fix dotnet/corefx#790
Merge tests into single tests using [Theory] attributes
Fix minor formatting issues when I encountered them


Commit migrated from https://github.com/dotnet/corefx/commit/03846a4079c3f7ad17839dc65441f24cc6b0866d
2016-01-28 19:02:47 +00:00
dotnet-bot 39d1eab950 Update licensing headers
Commit migrated from https://github.com/dotnet/corefx/commit/7cad8486cbabbce0236bdf530e30db7036335524
2016-01-27 08:02:28 -08:00
Stephen A. Imhoff f1e5348c5f Update test namespaces in System.Threading.Tasks.Parallel, per dotnet/corefx#2898 .
- Clean up `using`s.
 - Some types moved inside existing namespace.
 - ParallelStateTest only updated to reference moved logger (indentation changes too large).


Commit migrated from https://github.com/dotnet/corefx/commit/fba0f761d6c49e802f0db12521e764772cf3a4f1
2015-10-02 18:10:21 +09:00
Stephen A. Imhoff 7c088fcd28 Remove most instances ofcustom error checking from tests.
Patterns mostly were of the form:

```
if (someBooleanCondition)
{
    Assert.True(false, ....);
    // Or sometimes Assert.False(true, ....);
}
```
or
```
try
{
    SomeErrorThrowingOperation
    Assert.True(false, ....);
    // Or sometimes Assert.False(true, ....);
}
catch (ExpectedExceptionType e)
{
}
```
This replaces most instances with calls to the proper Xunit.Assert#### .
Some additional minor work was performed as noted with the affected package.

Add common ShouldNotBeInvokedException
System.Collections
 - Partially unwind edges of internal test framework.
System.Collections.Concurrent
 - Switch some tests to use InlineData instead of delegated method calls.
System.Collections.Immutable
 - Use ShouldNotBeInvokedException to state some lambdas should not be called.
System.Collections.NonGeneric
System.Composition
 - Partially unwind internal test famework.
 - Switch to using xunit asserts where possible.
System.Diagnostics.Contracts
 - Use ShouldNotBeInvokedException to state some lambdas should not be called.
 - Update project file to use upper case letter in hash.
System.Diagnostics.FileVersionInfo
 - Switch to direct equals comparison.
System.Diagnostics.Process
 - Use ShouldNotBeInvokedException to state a task should exit.
System.Diagnostics.Tracing.Telemetry
 - Use ShouldNotBeInvokedException to state an overridden method should not be called.
System.Globalization
 - Switch to direct equals comparisons in some cases.
System.Globalization.Extensions
 - Switch to direct equals comparison in some cases.
System.IO.Compression.ZipFile
System.IO.FileSystem
 - Partially unwind internal test framework.
System.IO.Packaging
 - Correct test T006 to check that adding absolute Uri part in internal mode is invalid.
System.ObjectModel
 - Use ShouldNotBeInvokedException to state some observables should execute.
System.Reflection
 - Update readonly-set test to verify that the field is set (previous test implied it was not).
System.Reflection.Extensions
System.Reflection.Metadata
 - Partially remove internal test framework.
 - Switch to xunit asserts where possible.
System.Reflection.TypeExtensions
System.Runtime
System.Runtime.Extensions
 - Switch to xunit bounded equals for doubles.
 - Switch to verifying non-varags Path.Combine override.
System.Runtime.Numerics
 - Switch to xunit Assert.Throws from internal version.
System.ServiceProcess.ServiceController
System.Text.Encoding
System.Text.Encodings.Web
System.Threading
System.Threading.Tasks.Dataflow
System.Threading.Tasks.Parallel
System.Xml.ReaderWriter
 - Switch to form verifying exception is thrown.
System.Xml.XmlDocument
 - Use ShouldNotBeInvokedException to state some handlers should not be called.


Commit migrated from https://github.com/dotnet/corefx/commit/ab1743b45213e88295a38e2bf9d80ded09058b18
2015-09-24 20:17:38 +09:00
dotnet-bot 658d828df7 Add System.Threading.Tasks.Parallel source and tests
Commit migrated from https://github.com/dotnet/corefx/commit/a8c7b9552fad2d9ccf9b171c34d8bb1ce2f7256a
2015-02-16 16:06:58 -08:00