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
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
- Made the existing perf tests for Linq follow the new syntax and use the new runner
- Removed all references to v5.0 libraries being required as they no longer are
- Added new tests using usage data from aspnet/benchmarks
- Modified some existing tests to be more easily comparable using analysis tools that look at inlinedata/memberdata (e.g. System.IO.Compression)
- Updated the lock files to use the latest xunit-performance package
- Modified test structure and innerIteration loops to produce more consistently repeatable results
- Updated docs with change to csproj requirements
Commit migrated from https://github.com/dotnet/corefx/commit/2ad9a6ffa7f6bcd31382372609849af5caa6a1bd
Our common tests folder has gotten a bit unwieldy in its organization. This change simply moves files around to better map to how src\Common\src is organized. Files are now stored in a path based on functionality/namespace.
I mostly kept groups of functionality together and did not attempt to reorganize at that level, e.g. I moved the src\Common\tests\System.Xml.XPath\ folder to be src\Common\tests\System\Xml\XPath\ and did not further reorganize all of the folders/files it contains. Such cleanup can be done separately on each individual area.
Some of the files also need to be cleaned up internally, e.g. the namespace (or lack thereof), so I put such things in a path that I thought made sense even if it differs from the current namespace in the file; I wanted this change to be relatively simple and just be about moving files around to clean up the main hierarchy.
Commit migrated from https://github.com/dotnet/corefx/commit/9a5546c439f7700d3462564678aa4206c7fbf4f1
- PerfUtils is no longer static and is instantiated on a test-by-test basis
- Greatly increased the size of the testable area for a number of the tests
- Tweaked the collection and innerIteration sizes for a number of tests
- Fixed some namespace bugs
Commit migrated from https://github.com/dotnet/corefx/commit/82a82c16418f094e82117825940368c8c5da2ef4
- Added "Performance" folders containing perf xunit tests to a number of highly-used libraries (determined by Usage data)
- Two sets of usage data from store apps; I added a test for every function used in more than 5% of the covered assemblies in both data sets.
- This is a first-round pass of the most highly used libraries and does not include: abstract classes, interfaces, or Attributes
- Created a static utility class for commonly used functions across perf tests, stored in src\Common\tests\Performance.
- These tests will run using ```msbuild /t:BuildAndTest /p:performance=true``` from the projects test directory
- Added conditional properties that check if v5.0 is installed on the user's computer when running perf tests. If it isn't, a detailed error is thrown with a link to a performance-test github page that I've also added.
Commit migrated from https://github.com/dotnet/corefx/commit/11ea534258ced35948e53a4ece8fb1284698bf8a
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