Our collection types are some of the biggest users of DebuggerDisplayAttribute and DebuggerTypeProxyAttribute. In the past as we've done refactorings, we've broken these on multiple occasions, and such breaks are often only discovered later on by someone using the types in the IDE.
This change adds some basic tests to exercise these debugger attributes, verifying their existence, that fields/properties they refer to exist, that properties on type proxies don't throw exceptions, etc. We already had some debugger attribute tests in the System.Threading.Tasks.Dataflow library's tests; I've extracted those into some common helpers which I then use in the various test projects.
These helpers could be used in more test projects in the future. They could also be expanded to cover more scenarios, as desired.
Commit migrated from https://github.com/dotnet/corefx/commit/f98612e1278908ad3998c90f982e8d1b4c44c320
After this change we are going to have unified model for handling resources which is we always use resx files placed under Resources folder and the code will be automatically generated in SR.cs file.
We’ll access ant string resource using the SR class (e.g. SR.ArgumentException).
Commit migrated from https://github.com/dotnet/corefx/commit/db7180f04ef9789a7f199fcd9f8c527990e14673
The ObjectModel tests were pulling in System.ObjectModel from NuGet, not via a P2P reference. This not only meant that the tests were testing an older version of the library, it also broke code coverage due to the System.ObjectModel.pdb not being copied to the tests directory.
This commit fixes the tests project file to use a project-to-project reference for System.ObjectModel. It also updates the test project's packages.config to use the same versions of assemblies as System.ObjectModel is defined to use, as failures otherwise result.
Commit migrated from https://github.com/dotnet/corefx/commit/472e220b9a514ffd4dab7accec0645eab2049da5