Commit Graph
752 Commits
Author SHA1 Message Date
Eric StJohn afd313db03 React to APICompat changes enabling reverse APICompat for facades (dotnet/corefx#37375)
* React to APICompat changes enabling reverse APICompat for facades

* Fix UAP and NETFX reverse APICompat issues

* Fix reverse APICompat baseline for allconfigurations build

* Manually update to latest APICompat

* Manually update to latest CoreCLR and fix issues

* Baseline System.Threading.Tasks

* Revert "Manually update to latest CoreCLR and fix issues"

This partially reverts commit dotnet/corefx@ee800617b6.

I'm keeping the baseline changes which will be needed when we get a new update.

* Temporarily baseline DiagnosticCounter API gaps

This can be removed when get a new CoreCLR

That's currently blocked due to regressions in tests.


Commit migrated from https://github.com/dotnet/corefx/commit/035343743c5a7f67be8a2a2f36913a3c43893b76
2019-05-07 19:46:58 -07:00
Jose Perez Rodriguez 7d8177c8c3 Fix VS Configurations for all projects in corefx (dotnet/corefx#37477)
Commit migrated from https://github.com/dotnet/corefx/commit/1c48331eb5784c58b81309665257f454abd7d322
2019-05-06 14:46:10 -07:00
Steve MacLean bb42df4e99 Add Assembly.LoadWithPartialName cases (dotnet/corefx#36803)
* Add Assembly.LoadWithPartialName cases

Cover hole reported in dotnet/coreclrdotnet/corefx#19817

* Verify argument parameter name

* Disable new test on .NetFramework


Commit migrated from https://github.com/dotnet/corefx/commit/5ae3c5655cd84bf3c7f9568477153642fdd7c95e
2019-04-13 21:57:06 -04:00
Alexander Köplinger ff946bfc6c Fix TypeInfoTests.GenericParameterConstraints() test (dotnet/corefx#36832)
It was a Theory instead of a Fact and the method parameter wasn't being used.

Commit migrated from https://github.com/dotnet/corefx/commit/1a83ff9b6d6d3406a6ef800dbe2bc7a74e4d5d3c
2019-04-13 00:47:30 -04:00
Anirudh Agnihotry bc2d80c6f4 Removed netcoreappaot configuration from corefx (dotnet/corefx#36739)
* netcoreappaot-Windows_NT regex removed

* netcoreappaot-WebAssembly;\n regex removed

* netcoreappaot-Windows_NT-Debug;netcoreappaot-Windows_NT-Release;
regex removed

* netcoreappaot; regex removed

* netcoreappaot-Debug;netcoreappaot-Release; removed

* removing rest of occurences of netcoreappaot

* deleteing the netcoreappaot apicompat files


Commit migrated from https://github.com/dotnet/corefx/commit/e9d1a10ed1d38a8b1ed599b3b5be09b8349f8ea8
2019-04-09 14:07:31 -07:00
Steve MacLean 607824421b Amend ALC tests
Add simple assertions to test:

Test new public constructor
Test instantiating AssemblyLoadContext as a concrete type
Test All
Test Name
Test ToString
Test Assemblies


Commit migrated from https://github.com/dotnet/corefx/commit/3db3261f39945567d818b10a562acf86d334e07a
2019-03-29 22:52:38 -04:00
Stephen Toub 1de0f651e4 Improve StaticTestGenerator and fix some visibility (dotnet/corefx#36472)
Worked through a bunch of additional assemblies and fixed cases where StaticTestGenerator was doing the wrong thing.  Also fixed the visibility on a bunch of test methods it wasn't able to access.

Commit migrated from https://github.com/dotnet/corefx/commit/475542441df2f054d5e9aa39576019775a5d2f52
2019-03-29 17:40:05 -04:00
Nikita Potapenko 28f63d6f4e Fix typo (dotnet/corefx#36107)
.Net -> .NET

Commit migrated from https://github.com/dotnet/corefx/commit/d29ae79fb13b4df9078400ac49b460e011f96404
2019-03-17 15:43:21 -07:00
Hugh Bellamy 8bd55bba64 Cleanup and enhance misc reflection/attribute tests (dotnet/corefx#35858)
* Cleanup and enhance misc reflection tests

* Address PR feedback


Commit migrated from https://github.com/dotnet/corefx/commit/2a2d34df7db5d2617d12f55fe5ad8fd208117049
2019-03-11 11:39:15 -04:00
Viktor Hofer f8a8530d0f Project msbuild syntax cleanup (dotnet/corefx#35686)
* Remove license header from non-shipping files

* Remove obsolete Project attributes

* Remove xml header and remove DefaultTargets


Commit migrated from https://github.com/dotnet/corefx/commit/c390ce7df50252e11f5d322276e9d19e046d1332
2019-03-03 18:55:25 +01:00
Ahson Khan 4fed6ab881 Auto-generate the reference assemblies and separate type forwards (dotnet/corefx#35557)
* Auto-generate the reference assemblies

* Add back type forwards.

* Revert "Add back type forwards."

This reverts commit dotnet/corefx@3acf74aabb.

* Add back TypeForwardedTo in .Forward.cs files

* Add new type forward files to the csproj files

* Add back if-defs and move TestUtilities comment from ref to source

* Remove duplicate definitions, delete unnecessary manual files,

* Fix build breaks

* Add back missing AsyncMethodBuilderAttr to S.Runtime ref

* Fix typo between XmlDocument and XPath.XDocument

* Add type forward fild missed from previous commit

* Fix ECDiffieHellmanCngPublicKey internal ctor for netfx 4.6.1

* Remove "this type was moved to comments" from the type forwards.

* Add back the Xml and Debugger* attributes to Xml.ReaderWriter

* Add back struct layout attributes

* Add back attributes missing (highlighted from api compat)

* Add missing toolbox item attribute in s.data.common.

* Add missing struct layout attributes and remove unnecessary additions

* Add back InterfaceTypeAttribute


Commit migrated from https://github.com/dotnet/corefx/commit/16689aa0a933517dc45465fc6edb6223222414a6
2019-02-27 19:39:21 -08:00
Hugh Bellamy 9e708751e1 Cleanup and add Type.GetInterface tests (dotnet/corefx#33569)
Commit migrated from https://github.com/dotnet/corefx/commit/4b7065e80f2db079c45affcc66c80a21a496d41d
2018-11-19 21:04:24 -08:00
Maxim Lipnin 4b9b7bbd2f Rename Outside and Inside classes to avoid conflicts with other test fixtures (dotnet/corefx#33547)
Commit migrated from https://github.com/dotnet/corefx/commit/90f31e5e0a198651ec0640b11efb401880314df1
2018-11-16 12:26:04 -05:00
Wes Haggard 29c3f2a619 Remove duplcated test assemblies from System.Runtime (dotnet/corefx#33224)
* Remove duplcated test assemblies from System.Runtime

As part of https://github.com/dotnet/corefx/pull/33101 these
assemblies were moved under System.Reflection but weren't
deleted from System.Runtime so this work finishes up the move.

* Disable Constructor_String_LoadVersionTest test

Filed https://github.com/dotnet/corefx/issues/33249 to track it.


Commit migrated from https://github.com/dotnet/corefx/commit/388455c9e975c3b066ff8df238d1217d6321ad14
2018-11-05 14:33:49 -05:00
Maxim Lipnin df602d528d Consolidate AssemblyTests, AssemblyNameTests, MethodInfoTests fixtures within System.Reflection location (dotnet/corefx#33101)
Commit migrated from https://github.com/dotnet/corefx/commit/c294ec4a83466b1b444ee0d5bbb7d5c333b94e68
2018-11-02 05:43:33 -04:00
Wes Haggard 954fb511b3 Rename AssemblyKey properties to StrongNameKeyId as part of arcade work
Commit migrated from https://github.com/dotnet/corefx/commit/7edd861bf2dd59ecdb4284e0fd291d7458198a9d
2018-10-30 15:14:01 -07:00
Jan Kotas 35ca1ca0f4 Improve CoreLib test coverage (dotnet/corefx#33132)
* Improve CoreLib test coverage

Contributes to https://github.com/dotnet/coreclr/issues/12782

* Move .NET Core specific tests to separate file


Commit migrated from https://github.com/dotnet/corefx/commit/a82e4e652af96f4acb149579b9a25ee41c83a646
2018-10-30 15:58:52 -04:00
Maxim Lipnin b2f479150d Deduplicate some reflection test classes in System.Runtime and System.Reflection (dotnet/corefx#32738)
* Deduplicate ConstructorInfoTests

* Deduplicate EventInfoTests

* Deduplicate FieldInfoTests

* Deduplicate MemberInfoTests

* Deduplicate ParameterInfoTests

* Deduplicate PropertyInfoTests

* Deduplicate RuntimeReflectionExtensionsTests

* Deduplicate TypeInfoTests

* Move MemberInfoTests.netcoreapp.cs and TypeInfoTests.netcoreapp.cs from System.Runtime to System.Reflection


Commit migrated from https://github.com/dotnet/corefx/commit/9b5afa4ae38ccc5e3ccc13ed86520f34a1208150
2018-10-15 07:12:25 -07:00
Steve Harter 08df4b51ee Fix compat issue with Type.IsAssignableFrom (dotnet/corefx#32601)
Commit migrated from https://github.com/dotnet/corefx/commit/e0557b18089f1b528dab3d167cef4f3d39f70e2e
2018-10-11 12:44:09 -05:00
Paulo Janotti c6efbc3cf4 Coverage do not target CoreLib in bulk (dotnet/corefx#32537)
* 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
2018-10-02 06:05:11 -07:00
Maxim Lipnin 6e1a9c2359 Remove unnecessary params keyword from System.Reflection.Tests.TypeInfoTests.ImplementedInterfaces test method signature (dotnet/corefx#32509)
Commit migrated from https://github.com/dotnet/corefx/commit/a61c9571a24b7b141ea454205a7f650f244dcad0
2018-09-27 10:41:34 -04:00
Morgan Brown abc0943945 Build managed code and packages for WebAssembly/netcoreappaot (dotnet/corefx#32045)
Adds support for a WebAssembly netcoreappaot configuration for building managed libraries and packages. This is enough to produce a package of libraries that CoreRT's WebAssembly implementation can consume.


Commit migrated from https://github.com/dotnet/corefx/commit/2b868f80c307a514dfafb7eb166dad3dbc2ed26b
2018-09-11 21:57:52 -07:00
Wes Haggard 6dcf8b8bfb Update the configurations properties in projects
Commit migrated from https://github.com/dotnet/corefx/commit/fea86686c620242ce7e1911418f2fba7c4d52d4d
2018-08-29 09:45:04 -07:00
Viktor Hofer 49586efb0d Add uap test leg to CI
Disable/Enable tests for clean uap CI leg


Commit migrated from https://github.com/dotnet/corefx/commit/c54d4a20c315730cd76fb7688c15d0a85837f3ce
2018-08-23 20:16:11 +02:00
Viktor Hofer b998fc821e Xunit 2.4 test changes
Commit migrated from https://github.com/dotnet/corefx/commit/591f0b5ba2c0ddcdad1a326eb327936cb2dd40d8
2018-08-23 19:55:27 +02:00
Viktor Hofer 8585939ef2 Update xunit to official 2.4.0 runner
Add necessary Test SDK assemblies

Enable test sdk props & targets only for netcoreapp


Commit migrated from https://github.com/dotnet/corefx/commit/f528b668fcd06efbde72a9510feb189e3988d795
2018-08-23 19:53:34 +02:00
Morgan Brown 5851b3de9a Add netcoreappaot target group (dotnet/corefx#30980)
Changes to add a new netcoreappaot target group, similar to netcoreapp but it builds against the .NET Native core libraries. A couple of libraries, such as System.Linq.Expressions, have aot-specific definitions that are enabled for netcoreappaot.

Commit migrated from https://github.com/dotnet/corefx/commit/3333166174e54ae9435c31e0a68a6784e9aacc41
2018-08-21 18:19:59 -07:00
Hugh Bellamy a4d8517a5b Add more Type tests (dotnet/corefx#31013)
* Remove duplicate tests

* Consolidate TimeZoneInfo tests to a single file

* Add more Type tests


Commit migrated from https://github.com/dotnet/corefx/commit/713d74bdafbf585b8cda8ed08fbdfd3c81707f2d
2018-07-18 10:48:13 -07:00
Eric Erhardt 8b6d5baf20 Change .csproj to new Configurations property
Change .sln to use the managed C# project system GUID.


Commit migrated from https://github.com/dotnet/corefx/commit/e05508a62d28f4807f85abe9cb7adf8382f792b4
2018-06-28 17:49:22 -05:00
Eric Erhardt 1df03e5bbd Rename dir files to Directory.Build
dir.props => Directory.Build.props
dir.targets => Directory.Build.targets


Commit migrated from https://github.com/dotnet/corefx/commit/204a8dbbc23bfc51d419c93f2f2ddaf50db8020f
2018-06-15 17:07:48 -05:00
Eric Erhardt 70091b9c8b Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/ad505eb98c6a887db2d2932fec256d9e4e394169
2018-06-11 17:20:10 -05:00
Luqun Lou 25fbc39477 Add long UTF16 string contains surrogate Testcase (dotnet/corefx#30157)
Commit migrated from https://github.com/dotnet/corefx/commit/7b40b096e798c5ce711adfdcfc56aae6826e1f70
2018-06-07 16:25:21 -07:00
stakx f54353edb3 Reflection[.Emit]: Nullable enum parameter tests (dotnet/corefx#29676)
Commit migrated from https://github.com/dotnet/corefx/commit/c854ad275d2b49ee541bdf10f9202eab36826e59
2018-05-31 17:38:25 -04:00
wtgodbe f38ceb30be Convert all .csproj files in src to SDK-style projects
Commit migrated from https://github.com/dotnet/corefx/commit/91d7e62bbf28094a2b419b87847bcd6a7658564d
2018-05-21 11:53:46 -07:00
stakx 8d8426a20f Reflection: Add test verifying ParameterInfo.DefaultValue doesn't throw for optional DateTime parameter (dotnet/corefx#29533)
* Reflection: Test DefaultValue for DateTime params

* Exclude DateTime test cases for NETFX


Commit migrated from https://github.com/dotnet/corefx/commit/156cbfaad66d1dc0a2bb9ef8846de6d6a6007f56
2018-05-10 07:50:01 -07:00
Stephen Toub 62651b6030 Add tests for Type.FilterName{IgnoreCase} and Module.FilterTypeName{IgnoreCase} (dotnet/corefx#29624)
I made a change in coreclr that touched these members, and I noticed they didn't have any tests, so I'm adding some.

Commit migrated from https://github.com/dotnet/corefx/commit/679090706f73c9d893a3ea9c2122eadd8efcb19d
2018-05-10 06:54:33 -04:00
Jan Kotas 952cf2bd5d Delete InternalsVisibleTo that are no longer needed (dotnet/corefx#28444)
Commit migrated from https://github.com/dotnet/corefx/commit/8f47bfc06aea211a2a102fbe52aec82c627e79c7
2018-03-24 08:35:02 -07:00
Santiago Fernandez Madero b9d768589e Fix System.Data.Odbc configurations for support package and run UpdateVSConfigurations (dotnet/corefx#24752)
* Fixed odbc configurations for compat package

* Run UpdateVSConfigurations

* Remove Default Configurations to help VS... comment from csproj's

* Remove from System.Buffers as well


Commit migrated from https://github.com/dotnet/corefx/commit/bcc59b2e74090cfbcc4d6e7c245c172744e9d46b
2017-10-23 18:24:28 -07:00
Eric St. John b2dae07f2b Update VS configurations
Commit migrated from https://github.com/dotnet/corefx/commit/238bf3302817a910fac3968f4ac826424294ab0c
2017-08-29 08:49:24 -07:00
Atsushi Kanamori 966c5b06e5 Reenable tests that are now working on ILC (dotnet/corefx#23552)
Commit migrated from https://github.com/dotnet/corefx/commit/5d3e42f831ec3d4c5964040e235824f779d5db53
2017-08-25 11:18:36 -04:00
Koundinya Veluri 6f3cc8ce18 Tests for fix to AssemblyName(string) version parsing (dotnet/corefx#23243)
* Tests for fix to AssemblyName(string) version parsing

Depends on https://github.com/dotnet/coreclr/pull/13373
Part of fix for https://github.com/dotnet/corefx/issues/22663

* Address feedback, don't allow missing component, add assembly load tests with different versions

* Add static references to test assemblies, change Skip to ActiveIssue for UapAot for one test


Commit migrated from https://github.com/dotnet/corefx/commit/d69db9e2a82b60db9f3f093ac72384d6f234eb9d
2017-08-21 20:49:36 -07:00
Tarek Mahmoud Sayed 3765a6069b Moving PlatformDetection to Corefx.Private.TestUtilities assembly (dotnet/corefx#23109)
* 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
2017-08-10 22:37:36 -07:00
Hugh Bellamy 98b18432b7 Move AssertExtensions to Corefx.Private.TestUtilities (dotnet/corefx#21799)
* Move AssertExtensions to Corefx.Private.TestUtilities

* Update csprojs

* Fix Linq.Expressions uapaot build


Commit migrated from https://github.com/dotnet/corefx/commit/7e3b0db2892c56a431f8e99af9cd9381adec385a
2017-07-03 09:27:30 -07:00
Hugh Bellamy 7cbcd5ed85 Convert most Assert.Throws<ArgumentException> without param name to AssertExtensions (dotnet/corefx#21455)
* Registry

* Collections

* ComponentModel

* Configuration

* Data

* Globalization

* Drawing

* Diagnostics

* IO

* Linq

* Add System.Net param names in tests

* Move ArgumentExceptions in System.Private.Xml to AssertExtensions

* Add System.Reflection.* ArgumentException param names

* Add param names for System.Runtime* ArgumentExceptions

* Add ArgumentException param names to System.Security.*

* Add ArgumentException param names to System.Text.*

* Add param names to ArgumentExceptions in misc projects

* Add System.Threading.* ArgumentException param names

* Fix missing files

* Fixes for unix and netfx

* Fix more failures and revert a IdnaConformance tests to avoid merge conflicts with dotnet/corefx#21463


Commit migrated from https://github.com/dotnet/corefx/commit/59915687bb261efeae70565d0ca8990ac45ceb9c
2017-06-23 12:33:47 -07:00
Eric St. John af1d155bf6 Remove help VS comments
Many CSProjs included the comment
`<!-- Help VS understand available configurations -->`

These aren't handled well by the tooling that rewrites projects and weren't providing much value.

Remove them.


Commit migrated from https://github.com/dotnet/corefx/commit/5ba948d13e3177c2c7075b6b00791e574bfa0860
2017-05-25 11:10:27 -07:00
Stephen Toub 3d2678df5d Merge pull request dotnet/corefx#19900 from AtsushiKan/bugs
CoreFx Tests: Add ActiveIssues for ILC

Commit migrated from https://github.com/dotnet/corefx/commit/86360a4f1a19634c3071754dbaa24069ba4f49aa
2017-05-17 16:11:36 -04:00
Atsushi Kanamori 0eaf427b57 CoreFx Tests: Add ActiveIssues for ILC
- Now that we have a per-framework ActiveIssueAttribute
  (and we have more than 1.5 people working on these tests on ILC),
  add ActiveIssues for those tests where we know the cause
  and don't anticipate a fix within a week.

- Now that ILC supports multidim arrays of rank 1,
  reenable all the tests that were disabled because of that.


Commit migrated from https://github.com/dotnet/corefx/commit/db7af8d51dc04072c3c188797d4bc05c223417fa
2017-05-17 11:24:40 -07:00
Eric St. John e02c675179 Increment versions post 2.0
Commit migrated from https://github.com/dotnet/corefx/commit/6c5f87319a4785499008c95b2ff5e7f13a413d22
2017-05-16 14:12:16 -07:00
Stephen Toub 703111c59d Re-enable AssemblyNameTests.Version test and fix merge conflicts
Commit migrated from https://github.com/dotnet/corefx/commit/69963dc961d829e9ac7bbca38ee487623f441784
2017-05-15 10:37:03 -04:00
sepidehMS a59d43fad2 Update AssemblyName.FullName tests
Commit migrated from https://github.com/dotnet/corefx/commit/f9dc78383e3df88da43c7b39510379501a54f1a3
2017-05-15 10:35:24 -04:00