Mechanical/automated change. The only manual changes were a) removing the two rules from the CodeAnalysis.ruleset file, b) removing spaces from one line of a .targets file that is used to generate a .cs file, and c) reverting the changes in a few test files where the naive replacement happened in the middle of a verbatim string where the whitespace actually mattered.
Commit migrated from https://github.com/dotnet/corefx/commit/09a6e66b0c2b31bd0f6e7e3170537d14027aeed0
* Enable xUnit2000 analyzer
This commit enables xUnit2000 (Constants and literals should be the expected argument) and apply fixes for the existing violating codes.
* a Massive commit fixing xUnit2000
* fixing some 2003 errors
* Fix mistakes
* Fix missed errors for unix
Commit migrated from https://github.com/dotnet/corefx/commit/93d7aa1c1737b6da29d04b78557215e18eb786d4
* Removed null checks on value types and enabled xunit 2002
* Updated Fill_OpenDataReader_Throws to use range check
Updated Fill_OpenDataReader_Throws to use range check for passing path
* Removed uneeded asserts and updated others
- Removed any assert for a valuetype where it was succeeded by a value type assertion (e.g. Assert.Equal(1, 1))
- Updated reflection tests to check flags for the specified scenario
* Update src/Microsoft.VisualBasic.Core/tests/FileSystemTests.cs
Co-Authored-By: Jeremy Barton <[email protected]>
* Update src/System.Reflection/tests/AssemblyNameTests.cs
Co-Authored-By: Jeremy Barton <[email protected]>
* Fixed failing reflection tests and removed Assert.NotNull for enum
* Pulled ruleset up from master to merge
* Cleaned up assert ordering for TestGuid
* Updated TestResponseWithoutContentEvents
- Asserted for 200 OK based on response from DefaultAzureServer + EmptyContentHandler
Commit migrated from https://github.com/dotnet/corefx/commit/c96e389f803b043753558878fefb575f3f85c934
* Replace "Assert.Equal(true, " with "Assert.True("
* Replace "Assert.Equal(false, " with "Assert.False("
And fix a few Assert.Equal(true cases that deal with objects and thus need to be reverted.
* Replace "Assert.StrictEqual(true, " with "Assert.True("
* Revert a few changes where true/false was being compared to object
* Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/1296bc8386a7283e319ddf723282f16651f9ea5f
* Update dependencies from https://github.com/dotnet/coreclr build 20190201.72
This change updates the following dependencies
- Microsoft.NET.Sdk.IL - 3.0.0-preview-27401-72
- Microsoft.NETCore.ILAsm - 3.0.0-preview-27401-72
- Microsoft.NETCore.Runtime.CoreCLR - 3.0.0-preview-27401-72
* Update dependencies from https://github.com/dotnet/coreclr build 20190202.72
This change updates the following dependencies
- Microsoft.NET.Sdk.IL - 3.0.0-preview-27402-72
- Microsoft.NETCore.ILAsm - 3.0.0-preview-27402-72
- Microsoft.NETCore.Runtime.CoreCLR - 3.0.0-preview-27402-72
* Fixing various tests that have new behavior due to the string formatting changes for double/float.
Commit migrated from https://github.com/dotnet/corefx/commit/ebf1c9753ab5624c967b0dbd352b1e73805b1fe5
* Coverage do not target CoreLib in bulk
* Fix 1 project add temp nop to 2 others
* PR feedback: reuse property to disable code coverage
* PR Feedback: add dedicated property to target runtime
* System.Transactions.Local.Tests taking too long on PR
Commit migrated from https://github.com/dotnet/corefx/commit/95eeecb5184e414810bc94fdb496c5748289a720
* XmlJsonWriter: Avoid unnecessary allocations
While it only runs once to initialize a readonly static field,
`CreateEscapedJsonStringTable` was allocating a lot of unnecessary
garbage. For each char in the table, either 2 box allocations for the
`string.Concat(object, object)` call, or 1 box allocation plus
`string.Format` overhead. These unnecessary allocations can be avoided
by just pre-generating the table.
* Add more DataContractJsonSerializer tests
* Fix typo
Commit migrated from https://github.com/dotnet/corefx/commit/62d27daf94f0131350c6ae32fcafc2bbd4306626
* Add SGEN Automation.
* update version.
* update
* delete tfm
* print out version
* Update version
* update version
* Update tests.
* Add dummy class for UWP run.
* Disable SGEN on uap.
* add casesensitive parameter for linux run.
* use dotnet instead of dotnet.exe
* update argument.
* Copy existing json file.
* add message
* Copy json to test project
* fix casesensitive
* disable running on Linux and OSX
* Add constants.
* Update condition.
* Add more condition.
* add condition
* Update condition.
* Solve the conflict and make some fixes based on feedback.
* Remove the commented code.
* Remove OSX condition.
* Remove dummy class
* Remove osx from configuration. Add condition on the ItemGroup.
Commit migrated from https://github.com/dotnet/corefx/commit/c69764406ef2450bbf0499aa3c982972676756f3
* Moving PlatformDetection to Corefx.Private.TestUtilities assembly
The purpose of this change is to clean up all test projects instead of including the PlatformDetection code inside every test project, we’ll have it in the Corefx.Private.TestUtilities.
I have refactored the PlatformDetection to split the different implementation of Windows and Linux. If we need to do more refactoring there we can do it later as needed.
* Fix Linux BB
* Update the xunit package reference
* Fix wrong condition on one of the tests
* Update the ConditionalFact/Theory to use Type as a parameter
Commit migrated from https://github.com/dotnet/corefx/commit/878e2fcf5a9f1068015e5fada9231088663e3490
* Add native test case
* Add native testcase
* netnative cases
* modify project file
delete file DataContractSerializerTestData.cs because the code is included in other file.
* Update XmlSerializerTests.cs
Update
* Update XmlSerializerTests.cs
remove failed case
* Update code to not check exception message
* Address review feedback.
* Update
Commit migrated from https://github.com/dotnet/corefx/commit/62b211eaedcf704d8a57102fb6304e77c41ec369
* Move Entries from Library Rd.xml to Test Rd.xml.
XmlSerializer.Mode iss marked as required by the System.Private.Xml.rd.xml.
Unfortunately, it pulls in the XmlSerializer type itself (has to), which
in turn pulls in a whole lot of code through its static ctor dependencies.
This caused some size-on-disk regressions.
As the property is used by our test project only, the fix is to move the
entry from the library rd.xml to the test rd.xml.
Fixdotnet/corefx#21667
* Minor changes.
Commit migrated from https://github.com/dotnet/corefx/commit/f4d12ffbef7ea1c4142f5e039602089b16bb73be
* The PR addressed the following issues,
1. Fixed the build of XmlSerializer tests on UWP.
2. Fixed a bug that caused pre-generated XmlSerializers being used in reflection only mode.
3. Fixed the incorrect usage of uap/uapaot in Configrations.props across all serialization test projects.
Fixdotnet/corefx#19804.
* Made XmlSerializer.Mode public.
Made XmlSerializer.Mode public so that we can set the property using reflection on UWP.
* Refactor the fix.
Commit migrated from https://github.com/dotnet/corefx/commit/00829fcf72f3c6160baaaf05fd2333d55cddd5fb