Commit Graph
78 Commits
Author SHA1 Message Date
Viktor Hofer ef7a0e676a Enable XUnit Analyzers (dotnet/corefx#38676)
* Enable XUnit Analyzers


Commit migrated from https://github.com/dotnet/corefx/commit/b8a7f34e1b64e5c594f591aa8683f34506eb9736
2019-07-05 22:50:57 +02:00
Viktor Hofer a5d5b91672 Delete dead uapaot code (dotnet/corefx#38330)
* Delete dead uapaot code

Commit migrated from https://github.com/dotnet/corefx/commit/8c2be7893fa585cba9c094c27b69d7c8e0822ef3
2019-06-14 15:12:42 +02:00
Viktor Hofer b661c58b1c Replace netstandard test projects with tfms
Netstandard test projects are broken by design and don't support the
Microsoft.Net.Test.SDK. Replacing the netstandard tfm with the concrete
implementation tfms.


Commit migrated from https://github.com/dotnet/corefx/commit/d29c16c99c6045ee67444a7a693dd4476861c463
2019-05-30 16:18:41 +02:00
Anirudh Agnihotry a545c5570e Executing tests in a serial order (dotnet/corefx#37715)
Commit migrated from https://github.com/dotnet/corefx/commit/81291b0793b90c535546d3d95c69085020891d28
2019-05-16 13:27:56 -07:00
Stephen Toub 4165b83720 Disable GetPropertyValues_NotStoredProperty_ValueEqualsNull test (dotnet/corefx#37420)
* Disable GetPropertyValues_NotStoredProperty_ValueEqualsNull test

* Disable the other test as well


Commit migrated from https://github.com/dotnet/corefx/commit/3c13f6e53bd57db3a75c8ddbbf2be6b3b6b7c934
2019-05-03 17:34:24 -04:00
Jim Demis 831a72ce12 Fixes relative path at configSource on linux (dotnet/corefx#37146)
Commit migrated from https://github.com/dotnet/corefx/commit/224e16d1e88baf45ce53388fe7fd0f3e6673ee88
2019-04-26 15:33:31 -07:00
Viktor 7e4b5f9b01 Update src folder
Commit migrated from https://github.com/dotnet/corefx/commit/817c36a05ef2d92e59ce6f5a37e2be50076361b3
2019-04-02 19:21:57 +02: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
Jeremy Kuhne 2ed5d027ef Fix ImplicitMachineConfigHost parameter checking (dotnet/corefx#28894)
* Fix ImplicitMachineConfigHost parameter checking

Don't assume index of the ConfigurationFileMap in params

Fixes: dotnet/corefx#28784

Commit migrated from https://github.com/dotnet/corefx/commit/63e052c114b3555c5e595348cc92e4dd3cc0e755
2019-03-01 16:58:36 -08:00
Stephen Toub 167e2ded75 Add missing license headers
Add missing license headers, and make the asn.xslt generator do it going forward.

Commit migrated from https://github.com/dotnet/corefx/commit/5dc8132370532804a5381b90e2ce87d6c52b61f6
2019-02-28 17:05:06 -08:00
Viktor Hofer 42935a78b0 Remove old TestCategories property (dotnet/corefx#35397)
Commit migrated from https://github.com/dotnet/corefx/commit/18452453fe8de55a065841798eb5e7a56c3436cb
2019-02-18 21:40:02 -05:00
Adam Gauthier d64753f029 Use nameof in ArgumentNullExceptions that throw the paramName (dotnet/corefx#31250)
Commit migrated from https://github.com/dotnet/corefx/commit/b6b9a1ad24339266a27fef826233dbbe192cf254
2018-07-21 19:21:53 -07:00
Eric Erhardt 21b7a52139 Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/0343b37275d50fa44b8db91bd9ed8364f89600fc
2018-07-05 14:06:19 -05:00
Steve Pfister 8756dddd17 Switched to as cast in Init because some caller do not have the file map at the start of the param list (refsrc System.Web) (dotnet/corefx#30548)
Commit migrated from https://github.com/dotnet/corefx/commit/331f135dc4d856ddd1d9751967c790f5f11c734f
2018-06-29 10:48:18 -07:00
Eric Erhardt 779486884e Merge master into SdkProj
Commit migrated from https://github.com/dotnet/corefx/commit/ec546de620c5248f3662d6aaca989ed382b86b6b
2018-06-28 21:28:41 -05: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
Stephen Toub 4c9eb2ec25 Simplify built-in types across corefx tests (dotnet/corefx#30660)
Commit migrated from https://github.com/dotnet/corefx/commit/7ae1a252d7e68c5513d2658de7a401c37e9b0504
2018-06-25 22:42:04 -07: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
Jacob Lalonde 4e8888e319 Configuration tests (dotnet/corefx#29896)
* Added some configuration unit tests

* Initial Unit Test Changes

* Got ConfigurationValidatorBase to 100% coverage

* Stuck on AppSettingsReaderTests, pushing what I have

* Changed my exception tests, they looked ugly

* Changes from equal to same for setting element collection tests


Commit migrated from https://github.com/dotnet/corefx/commit/e62347831e079f73eba9a7b2bbacb60166fac7d1
2018-06-01 17:52:57 -07: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
Stephen Toub ecce3f80b6 Disable System.Configuration.ConfigurationManager tests failing on Nano server
Commit migrated from https://github.com/dotnet/corefx/commit/e5b6fc429ac1b8be5cc55b210136beb9a2f37331
2018-05-18 14:43:55 -04:00
Viktor Hofer 2e43c34745 Porting roslyn regex tests to corefx (dotnet/corefx#29178)
* Add regex roslyn tests

* Offset & serialization in exception, remove internal error in error enum, compile parser tests on netfx

* Move match parser tests over to RegexParserTests

* Add subexpression parsing

* Add test case for SetType in RegexParseException


Commit migrated from https://github.com/dotnet/corefx/commit/455f969867ee332bf1793cbf55db136ef7833087
2018-05-01 16:06:13 +02:00
Maryam Ariyan c0d43d54ec Removing ActiveIssue for already closed issue dotnet/corefx#21000 (dotnet/corefx#28904)
Commit migrated from https://github.com/dotnet/corefx/commit/c8fd8f79107937a913e7cc92ebfa11019a1bd0f9
2018-04-10 16:26:50 -07:00
Alexander Radchenko 4bf3415ee2 Fixed netfx System.Configuration.ConfigurationManager.Tests on non English Windows (dotnet/corefx#28164)
* Fixed netfx System.Configuration.ConfigurationManager.Tests on non English Windows

* Added RemoteInvoke


Commit migrated from https://github.com/dotnet/corefx/commit/da1322d90a1412290a82a5ace157da4cc58dabf4
2018-04-06 16:24:26 -07:00
Jacob Lalonde 70f087ff60 Setting element bugfix (dotnet/corefx#27879)
* Added Tests for Setting Element

* Cleaning as per the corefx standards

* including .net license

* Added null check for ValueXML GetHashCode, returning 0 if null

* Added Better Test testing GetHashCode for both Elements

* Added Skip for .Net Framework, as it still has underlying problem


Commit migrated from https://github.com/dotnet/corefx/commit/8bca91b1e1c363a3edf9a370990fd1b3ef73b012
2018-03-13 16:30:29 -07:00
Jlalond a1f1c75d4b Added Tests for Setting Element (dotnet/corefx#27807)
* Added Tests for Setting Element

* Cleaning as per the corefx standards

* including .net license


Commit migrated from https://github.com/dotnet/corefx/commit/7e6436467cebb844bdad1a54b8f9877460a25ec5
2018-03-08 09:14:02 -08:00
Jeremy Kuhne 5e5c83f923 Add missing IInternalConfigHost method (dotnet/corefx#27832)
The intital implementation of ConfigurationManager predated the Core impl of Security.

Commit migrated from https://github.com/dotnet/corefx/commit/122cad4d21a474a48e23e6f9686b39171d7d30b7
2018-03-07 20:45:47 -08:00
Stano Peťko 075d9bd420 Added tests for throwing correct Exception. (dotnet/corefx#25822)
Commit migrated from https://github.com/dotnet/corefx/commit/06967ad9b2344438527745bb749ba1402c19f598
2017-12-14 15:08:30 -05:00
Eric St. John e047f03838 Fix errors with new CSC due to missing comma between attributes
Commit migrated from https://github.com/dotnet/corefx/commit/535828b1423795a71f0b17e0c9d00e99021deed5
2017-08-25 14:05:48 -07:00
Atsushi Kanamori 7472eecd29 Disable tests that fail on ILC due to not actually running in AppX (dotnet/corefx#23295)
Fixes https://github.com/dotnet/corefx/issues/23000

Commit migrated from https://github.com/dotnet/corefx/commit/91d8d189c0bb33ad36cfadfef5f49be31cb2dfa7
2017-08-16 09:53:04 -07:00
Atsushi Kanamori f99b8ccd00 Fix System.Configuration.ConfigurationManagerNullComparerThrows test on ILC (dotnet/corefx#23163)
Fixes https://github.com/dotnet/corefx/issues/21004

Commit migrated from https://github.com/dotnet/corefx/commit/3048b7329f98354e69e1ef844da400289ed9851f
2017-08-11 10:39:35 -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
Jeremy Kuhne f3351916d9 Use new WinRT APIs for SpecialFolders (dotnet/corefx#22664)
* Use new WinRT APIs for SpecialFolders

* Update tests

* Update test package

Fix test verification

* Clean up project files

* Add back test skip condition

* Add comments and fallback Windows dir.


Commit migrated from https://github.com/dotnet/corefx/commit/aaaffdf7b8330846f6832f43700fbcc060460c9f
2017-08-03 14:49:35 -07:00
Hugh Bellamy 887c94e252 Expose SystemDrawingSection
Commit migrated from https://github.com/dotnet/corefx/commit/66c5b99c8ce7b705fc1798e1a12ffba5a75556d5
2017-07-11 09:17:30 +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 7cdcaf5fc5 Convert Assert.Throws<ArgumentException> to AssertExtensions (dotnet/corefx#21491)
Commit migrated from https://github.com/dotnet/corefx/commit/868f123881e520285ab09600380e38abdd457a06
2017-06-27 21:13:26 -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
tijoytk b151debb5c Fix the netcore test runs
Commit migrated from https://github.com/dotnet/corefx/commit/7da80436ffcebe031593dfc9e354613ceba02f5e
2017-06-15 17:07:49 -07:00
tijoytk 9bbf5d75b2 Fix the remaining System.ConfigManager tests.
Commit migrated from https://github.com/dotnet/corefx/commit/69a86949938828b2845bafaf6e236330f4086a80
2017-06-13 13:03:31 -07:00
Santiago Fernandez Madero e8c0db60b4 Update buildtools and extensions and do tests cleanup for new attributes behavior (dotnet/corefx#20333)
* Update buildtools and extensions and do tests cleanup for new attributes behavior


Commit migrated from https://github.com/dotnet/corefx/commit/bc73a9b7ca2a644efd9fc3cb51dde3bc3726ecd7
2017-05-26 02:13:52 -05:00
Dan Moseley ffeb4a6fd1 Disable 2 configuration tests failing on unix (dotnet/corefx#19962)
* Disable failing tests

* Fix activeissue


Commit migrated from https://github.com/dotnet/corefx/commit/dc98063aa36ff017ac02cd553b07190f6d676084
2017-05-18 22:24:38 -07:00
Jeremy Kuhne 4599f929c0 Don't manually define UriSection on NetFX (dotnet/corefx#19574)
Desktop defines UriSection in the machine.config. We don't define
anything that lives outside of ConfigurationManager in the implicit
machine.config in CoreFX.

Commit migrated from https://github.com/dotnet/corefx/commit/b92843e3f0e3bc314018b3e9dc6ac53e14213d0b
2017-05-09 20:08:21 -07:00
Jeremy Kuhne f5618778fc Disable Core unit test on Desktop (dotnet/corefx#19576)
Test is unit testing a CoreFx internal implemenation

Commit migrated from https://github.com/dotnet/corefx/commit/28ecf0345716ea1a58eb6851d3a2b3c2f2d53bd0
2017-05-09 19:51:48 -07:00
Viktor Hofer 3e81e922b1 Disabling xunit AppDomain in System.Configuration.ConfigurationManager in favor of consistent BaseDirectory path behavior (dotnet/corefx#19546)
* Disabled xunit AppDomain in favor of consistent BaseDirectory behavior

* Activated test again

* Refined XUnitNoAppdomain comment


Commit migrated from https://github.com/dotnet/corefx/commit/bf5ffea787235fdb095adaeb842b3362f58fcc7c
2017-05-09 17:48:36 -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
Jiayi Li 8ca8c4b8c8 Disable failed tests for issue 18196 and 18718. (dotnet/corefx#19465)
* Disable Failed tests For issue 18196.


Commit migrated from https://github.com/dotnet/corefx/commit/c7f5b4bb55e66ea5c6ff9eb5dc5c8781f63f03f9
2017-05-08 11:45:04 -07:00
Jiayi Li ab9698db27 Disable failed tests for 6 issues. (dotnet/corefx#19464)
Commit migrated from https://github.com/dotnet/corefx/commit/5efe9f60ffe252496ca6cf98cb94e29b7d088b49
2017-05-08 02:43:56 -07:00
Jiayi Li 843c8d7398 Disable failed tests for issue 19339. (dotnet/corefx#19393)
Commit migrated from https://github.com/dotnet/corefx/commit/064f192251a20fc44612b50b507ae9eb29eca912
2017-05-05 01:44:24 -07:00
Jiayi Li daa445156e Disable failed test for 19340. (dotnet/corefx#19394)
Commit migrated from https://github.com/dotnet/corefx/commit/15155258ae6957d735ed1204d78701dad81722ce
2017-05-05 01:43:48 -07:00
Jiayi Li b0769d0e32 Disable failed tests for issue 19341. (dotnet/corefx#19395)
Commit migrated from https://github.com/dotnet/corefx/commit/4caae55d8e8357abddcfe1a1c0b2317f571f75a5
2017-05-05 01:41:45 -07:00