Commit Graph
738 Commits
Author SHA1 Message Date
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
Stephen Toub 562e3801d3 Disable AssemblyNameTests.Version test
An incoming coreclr update is changing the behavior of the implementation.

Commit migrated from https://github.com/dotnet/corefx/commit/c07b11994abda0d656a112a7f33862265d6dbbae
2017-05-13 17:44:25 -04:00
Stephen Toub 8aaedbc596 Merge pull request dotnet/corefx#19484 from AtsushiKan/r
CoreFX on ILC tests burndown

Commit migrated from https://github.com/dotnet/corefx/commit/0d8de93a64afaf69e37e74aafdbaa7e3d0e16e19
2017-05-08 22:20:14 -04:00
Jiayi Li 84b8adf536 Disable failed tests for 9 issues. (dotnet/corefx#19463)
* Disable failed tests for 9 issues.


Commit migrated from https://github.com/dotnet/corefx/commit/4d89905a77edf6e6ff42fdb682a4c70c3dfc1239
2017-05-08 13:35:34 -07:00
Atsushi Kanamori 7a52462501 CoreFX on ILC tests burndown
Getting down to 1-bucket items here...

- Disabled MarshalAs custom attribute test
  (not implemented on .Net Native)

- Reenabled GetTypeFromCLSID() data item
  (restored on .Net Native)

- Avoid testing contents of ToString()
  (.Net Native ToString() simplifies the type name
  in order to avoid excess metadata probing.)



Commit migrated from https://github.com/dotnet/corefx/commit/0bc18f63d2534903b6f78156c957ac651a9dce66
2017-05-08 10:18:09 -07:00
Dan Moseley cc459c643c lowercase an
Commit migrated from https://github.com/dotnet/corefx/commit/617a9e944c3946ced0c2a671ce9ec08744de9a4b
2017-05-01 20:41:15 -07:00
Dan Moseley 7cacb5bb72 Fix assembly name test (dotnet/corefx#19178)
* Fix assembly name test

* GEA() returns null

* logging

* Remove test sensitive to desktop version:

* case insensitive


Commit migrated from https://github.com/dotnet/corefx/commit/19edd49851626fd32433688078ebbf8ad8368de3
2017-05-01 12:08:42 -07:00
Atsushi Kanamori 1dba36e123 Remove some bogus tests from System.Reflection.Tests (dotnet/corefx#18513)
- I choose not to be bug-for-bug compatible with
  invalid unicode strings passed to AssemblyName::ctor(),
  especially since CoreCLR's response to that isn't
  very helpful.

- ModuleTest.FullyQualifiedName

  Test isn't correct even on non-Uat-Aot platforms.
  There's no required relationship between the
  assembly name and its module names. On
  the full framework, Module.Name and Module.FullyQualifiedName
  return the filename and fully qualified filename
  of the module... which can be anything I rename the file to.

Commit migrated from https://github.com/dotnet/corefx/commit/a7822d26a2208f57f21d700ccf0f934c1874fa80
2017-04-17 15:14:05 -07:00
Atsushi Kanamori bddce1f30c Remove more noise from System.Reflection tests on UapAot (dotnet/corefx#18489)
- Module custom attributes not supported by .Net Native toolchain.

- Invoking type constructors not supported by .Net Native toolchain
  (cannot reliably implement on .Net Native as the toolchain usually
  optimizes away simple type constructors by executing them at
  compile time and turning them into raw init blocks.)

- Cannot call MetadataToken unconditionally.

- Comparing type metadata tokens of two different framework
  types is not a valid test. This is only reliable if they
  live in the same module/assembly and we make no promises as to
  where things live.

Commit migrated from https://github.com/dotnet/corefx/commit/bfcb92c33049bbc3736730391f8a0df189f3874c
2017-04-17 09:24:34 -07:00
Atsushi Kanamori 8afa2cad2b System.Runtime.Tests Uap-api work... (dotnet/corefx#18355)
* System.Runtime.Tests Uap-api work...

Mark the PlatformNotSupported ones as Skip.

De-theorize GetEnumValues() test to work around
https://github.com/dotnet/corert/issues/3328

* Added issue comment.


Commit migrated from https://github.com/dotnet/corefx/commit/6317e53b89680d83747d789c354bb1acda011758
2017-04-14 04:39:06 -07:00
Atsushi Kanamori faf17d9a46 More reflection Test fixes for uwpaot. (dotnet/corefx#18332)
- Fix dependency on GetConstructor() ordering output.

- Stop checking ArgumentException.ParamNames values.
  These are debugging aids, not things to be depended
  on. The .NET Native toolchain intentionally optimizes
  these away when compiling in release mode.

Commit migrated from https://github.com/dotnet/corefx/commit/da1b80d62951314e5709810631f9aab7408f66de
2017-04-13 10:12:59 -07:00
Atsushi Kanamori 7d5261aea3 Reflection Test fixes for uwpaot. (dotnet/corefx#18326)
- Eliminate use of __makeref (prevents test from compiling
  under .NET native)

- Fix EventInfo test (it's not valid to compare hashcodes
  for non-equal objects.)

Commit migrated from https://github.com/dotnet/corefx/commit/5156cbca49c120bff8e5e107e56fb4905240696c
2017-04-13 08:46:58 -07:00
Wes Haggard 4185183e8c Updates how we define which key an assembly uses
Now instead of Use*Key a project can instead define the assembly key
in the project (genreally the common dir.pops for a project) using
the AssemblyKey property. The accepted values are Open, ECMA, MSFT,
Test.

This change allows for a repo to set the default key they want to use
for projects. In corefx we have switched the default to use the Open
key instead of the old BuildTools default of MSFT key.

As part of this update we are explicitly setting the AssemblyKey in
all the library projects (although it is really only necessary for
projects that aren't the default).

Also with this change we are updating all the new libraries that have
not yet shipped stable (compared to our 1.1 release) and making them
use the Open key. Which means that for prerelease dependencies there
might be some binary breaking changes to consume.

The following libraries ahven't shipped so there key is being
changed from MSFT to Open:
Microsoft.XmlSerializer.Generator
System.CodeDom
System.Configuration.ConfigurationManager
System.Data.Odbc
System.DirectoryServices
System.DirectoryServices.AccountManagement
System.DirectoryServices.Protocols
System.IO.Ports
System.Json
System.Memory
System.Net.HttpListener
System.Net.Mail
System.Net.ServicePoint
System.Net.WebClient
System.Net.WebProxy
System.Private.Xml
System.Private.Xml.Linq
System.Security.Cryptography.Xml
System.Security.Permissions
System.Transactions.Local
System.Web.HttpUtility


Commit migrated from https://github.com/dotnet/corefx/commit/ac09a797d09502ebab61f7167bb856846602e1e6
2017-04-10 12:51:50 -07:00
danmosemsft 6ac584ef80 space
Commit migrated from https://github.com/dotnet/corefx/commit/989a136aa680bda7b7e95215ba51878f9ba4f962
2017-04-06 14:38:16 -07:00
danmosemsft d939e2a625 Fix xunit name
Commit migrated from https://github.com/dotnet/corefx/commit/a8cd743d3734287f069d0e04fb550607e25e051c
2017-04-06 14:37:08 -07:00