Commit Graph
760 Commits
Author SHA1 Message Date
Shin Mao 0ccbefcd1f Tests for Type Having Primitive Types as KnownType (dotnet/corefx#24267)
Fix dotnet/corefx#24264

Commit migrated from https://github.com/dotnet/corefx/commit/9cce463310a7d04d9ed5aab9828ee0af79d5317d
2017-09-27 13:36:40 -07:00
Xing Mao 0033aea7f4 Fix dotnet/corefx#22779
Commit migrated from https://github.com/dotnet/corefx/commit/f05d1d6e43c86b94bb8bd790c2065410e41f8c58
2017-09-12 10:44:39 -07:00
Xing Mao 00710bf2e3 Fix dotnet/corefx#22778.
Commit migrated from https://github.com/dotnet/corefx/commit/5d7d440848e8798e9945e73a764fbafcd2d30fcd
2017-09-12 10:44:39 -07:00
Xing Mao d4dceb196f Fixed a bug in GetCollectionMethods.
Fix dotnet/corefx#22777


Commit migrated from https://github.com/dotnet/corefx/commit/781e6f4235b755bb18d7e5aa834e2b9d4cf64e22
2017-09-12 10:44:39 -07:00
Xing Mao 7a3c646cd3 Fix test with DataSet serialization.
Fix dotnet/corefx#22776


Commit migrated from https://github.com/dotnet/corefx/commit/68e145a4dd2eab39fe8cda4c1c943d68d00f4274
2017-09-12 10:44:39 -07:00
Santiago Fernandez Madero 504fca1427 Add BinPlaceConfiguration for test projects to have a working directory per BuildConfiguration (dotnet/corefx#23633)
* With this change we will have the next behavior when building/running tests:

-When building the tests we will still bin place the test assets to the OutputDirectory (corefx\bin\OSGroup.Configuration\TestProject\TargetGroup/)

-When running the tests we will bin place the tests assets to this new TestPath which will be the TestPath. This new path will be the test's working directory where we will bin place the RunTests.cmd and necessary dependencies in tests.targets. Also the testResults.xml will be found here after the test execution.

-TestPath is set to be bin/tests/<TestProject>/<BuildConfiguration>/ (i.e corefx\bin\tests\System.Collections.Immutable.Tests\netcoreapp-Windows_NT-Debug-x64) in dir.props

-This TestPath will be added to the BinPlaceDir in FrameworkTargeting.targets when BinPlaceTest is set to true. Then in the BinPlaceFiles target the test assets will be hardlinked to the TestPath.

This will isolate every test execution per build configuration and will allow people to run the same test project for all of the supported configurations on the same repo without having to clean the repo.

Commit migrated from https://github.com/dotnet/corefx/commit/664ca9508a03483a7fb2714b55b9cba885593d90
2017-09-05 13:30:09 -07:00
Eric StJohn 93a519b14b Merge pull request dotnet/corefx#23611 from ericstj/removeNetFxSupportLibs
Remove NetFx support libs

Commit migrated from https://github.com/dotnet/corefx/commit/70201d1f97465882eda716c66da09d22c3933edc
2017-08-30 11:24:25 -07:00
Brian Chavez 3d09f92467 String literal spelling corrections - A through Z (dotnet/corefx#23674)
Commit migrated from https://github.com/dotnet/corefx/commit/dd2428300b982775f9ede37104ef8ccbb0350ec2
2017-08-29 22:33:36 -07:00
Brian Chavez caeee5a506 XML doc spelling corrections - Q through Z. (dotnet/corefx#23655)
Commit migrated from https://github.com/dotnet/corefx/commit/723c7feed515abbeece068e05fdf2f918a74ca85
2017-08-29 15:40:48 -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
Eric St. John 20a117e4cc Remove NetFx support libs
Now that we've shipped the NETStandard support package we will no longer build its content
from `master`.

It will be serviced from the `release/2.0.0` branch and the only netfx builds in `master` will
correspond to package content.


Commit migrated from https://github.com/dotnet/corefx/commit/eade3b36725c8d463a40589ff749af5bb0cab8f4
2017-08-29 08:46:22 -07:00
Huangli Wu 71068e313d Fix the sgen issue when use NaN as the default value. (dotnet/corefx#23366)
* Fix the codegen issue when use NaN as the default value. Move the NaN test from runtimeonly to XmlTest so it will be included in Sgen test run.

* Add brackets.


Commit migrated from https://github.com/dotnet/corefx/commit/e60c0219511656c6834f96ea41a5f48bbe6815f5
2017-08-18 17:32:08 -07:00
Shin Mao 38a0817352 Fixed Issue with DCS Serializing Get-Only Collection.  (dotnet/corefx#22975)
* Fixed Issue with Get-Only Collection.

Fix dotnet/corefx#22965

* skip one test on uapaot.


Commit migrated from https://github.com/dotnet/corefx/commit/793e7f027df16c2d9bc979876c3af1547bcc8f7d
2017-08-16 11:00:05 -07:00
Huangli Wu 700f7e79d5 Add SGEN Automation. (dotnet/corefx#23090)
* 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
2017-08-15 14:04:00 -07:00
JimboWei 14d0bc2c32 Failed case with date time (dotnet/corefx#23212)
* Fix the issue dotnet/corefx#23100

* Remove useless code


Commit migrated from https://github.com/dotnet/corefx/commit/70e08d8c556c71049299b37e251785ce96a2720f
2017-08-14 10:16:31 -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
JimboWei ec1b7ac77a Add desktop serialize test case (dotnet/corefx#21688)
* add common file

* Add test case with IObjectReference

* reflectiononly add files

* left a file

* update reference

* Organize the code

* Revert "Organize the code"

This reverts commit dotnet/corefx@6d5299e6e2.

* Organize the code

* Add test case DCS_BasicPerSerializerRoundTripAndCompare_SampleTypes

* remove unuseful code

* format code

* update baseline

* Put the fail scenarios in new cases

* Fix failed nativecase

* Change string content

* Update

* Change assembly name in baseline.

* Enable test case DCS_BasicPerSerializerRoundTripAndCompare_SampleTypes_FailInReflectionOnly

* With fix dotnet/corefx#22286 the failed case can pass

* Change test case with SampleICollectionTExplicit

* Refactor the code

* Update

* Add failed case targeting uapaot

* Add issue number for the failed case when targeting uapaot.

* Remove unuseful code.


Commit migrated from https://github.com/dotnet/corefx/commit/6480490953295e85f4c8c7b7c05449c6a799d42b
2017-08-09 09:30:20 -07:00
Daniel Harvey f0d3da263c Remove tags to issue 19585 (dotnet/corefx#22162)
* Fix merge conflicts

* Remove tags that are no longer necessary


Commit migrated from https://github.com/dotnet/corefx/commit/2c24543666a108f9d84959c17f48efe09dee576b
2017-07-12 16:47:29 -04:00
JimboWei 5140903df2 Native case fix (dotnet/corefx#21762)
* 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
2017-07-12 10:33:46 -07:00
Huangli Wu f196b2a3fa Make GetMember to read from base type if the property is internal in derived type but public in base type (dotnet/corefx#21913)
* When a property in internal in derived type but public in base type, the GetMember need read from base type.

* change from fact to Fact

* Support multiple level base class.

* Revert the type change since it will impact the dcs test.

* Support multiple derived level for IL gen XmlSerializer. Add more test coverage.

* Update dcs test baseline due to the changes in the type.

* update the condition


Commit migrated from https://github.com/dotnet/corefx/commit/603cb4ce94eaf41cd64af7721e7e2f3d4e983859
2017-07-07 15:24:35 -07:00
Shin Mao 046fafa370 Move Entries from Library Rd.xml to Test Rd.xml. (dotnet/corefx#21668)
* 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.

Fix dotnet/corefx#21667

* Minor changes.


Commit migrated from https://github.com/dotnet/corefx/commit/f4d12ffbef7ea1c4142f5e039602089b16bb73be
2017-06-30 09:31:32 -07:00
Shin Mao 1571731c19 Add Test for Types Having Virtual Generic Property (dotnet/corefx#21378)
Fix dotnet/corefx#17366

Commit migrated from https://github.com/dotnet/corefx/commit/74118fb85f0622014be04f2cad67b421b15674ef
2017-06-23 08:42:07 -04:00
Shin Mao 1192cd2339 Added a tests for ICollection`1 Types. (dotnet/corefx#21289)
DCS serialize ICollection`1 types differently on Desktop and NetCore. But
DCS can de-serialize the payloads from both frameworks. Therefore, we
don't need to change the behavior of either Desktop or NetCore.

Fix dotnet/corefx#21288

Commit migrated from https://github.com/dotnet/corefx/commit/fa7fab68d7eb35b5e6425e82488731b824dbe254
2017-06-22 22:07:53 -04:00
Shin Mao 3cb82c6f06 Fix Serialization Tests for Collection Types. (dotnet/corefx#21144)
Fix dotnet/corefx#20478

Commit migrated from https://github.com/dotnet/corefx/commit/355172ed1bc2cef2d50da9e3641effc31b2f6afc
2017-06-16 18:24:05 -04:00
Shin Mao 4bbd5b4215 Fix a bug with Type having private Getter. Fix #dotnet/corefx#20476 (dotnet/corefx#20603)
Commit migrated from https://github.com/dotnet/corefx/commit/780209e2438d53a3053874508435ed4ad8fa4c5b
2017-06-08 10:44:13 -07:00
Shin Mao ff2777e06b Disable Two DCS/DCJS Tests on uapaot. (dotnet/corefx#20594)
* Disable some DCS tests on uapaot.

* Remove test DCS_NativeDll


Commit migrated from https://github.com/dotnet/corefx/commit/f15bdcfd2e595059525c157da8fb311a29bcd95a
2017-06-01 18:07:20 -07:00
stone-li d6fb7b5bf9 Porting Serialization Tests in NetNative Repo (dotnet/corefx#20308)
* Porting Serialization Tests in NetNative

* Move DCJS_ReadOnlyDictionaryCausingDuplicateInvalidDataContract to DCJS test project

* update

* remove [SkipOnTargetFramework]


Commit migrated from https://github.com/dotnet/corefx/commit/f912f36ca50b14482178aac0b6613529094daf6b
2017-05-31 22:26:36 -07:00
Dan Moseley 83d6ca4e94 Merge pull request dotnet/corefx#20512 from shmao/20361-ExceptionTest
Update Tests for Exception Serialization.

Commit migrated from https://github.com/dotnet/corefx/commit/4ea87afadfee7a7ae083773a7d0f7d1622528424
2017-05-31 17:48:44 -07:00
Shin Mao 57d14b374f Removed Exception types from Known Serializable Type List.
Commit migrated from https://github.com/dotnet/corefx/commit/82a719f503a18103d9f896336237989f8d630486
2017-05-31 14:18:36 -07:00
Viktor Hofer 04b535f64b Renabling ReadOnlyDictionary tests on netfx
Commit migrated from https://github.com/dotnet/corefx/commit/ba0f3adb44e328a6fed71462b11eb6b03800db97
2017-05-31 22:37:57 +02:00
Viktor Hofer 35da4adf0b Fix ReadOnlyDictionary DCS test
Commit migrated from https://github.com/dotnet/corefx/commit/aca76e606f9208c3463b196fec857cd05372551c
2017-05-31 22:01:27 +02:00
Shin Mao e1e55a395a Update Tests for Exception Serialization.
Fix dotnet/corefx#20361


Commit migrated from https://github.com/dotnet/corefx/commit/1ec6f92ce259ff4bdf1a37a2b68d99a51be62807
2017-05-31 10:32:00 -07:00
Shin Mao d594a1a4b4 Disable Serialization Tests Failing on Uapaot
Fix dotnet/corefx#20464


Commit migrated from https://github.com/dotnet/corefx/commit/82cdce6e8c4614a8c62b00f651890c9fc7e6a98f
2017-05-30 16:57:23 -07:00
Morgan Brown 0145a5b588 More serialization test fixes (dotnet/corefx#20377)
Removes a couple more tests that depend on ISerializable implementations and fixes a diagnosability issue in DataContractSerializer tests

Commit migrated from https://github.com/dotnet/corefx/commit/acad25c24e465afa9e899bf378c77d23e71ba0d5
2017-05-26 17:41:24 -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
Morgan Brown 7591164e3c Prep tests for CoreCLR/CoreRT [Serializable] cleanup (dotnet/corefx#20035)
Fixes tests that depend on types in System.Private.CoreLib being serializable that won't be serializable soon.

Commit migrated from https://github.com/dotnet/corefx/commit/178a982df2f210b615e21af7b0920f0fe5425142
2017-05-23 11:51:49 -07:00
Eric St. John 67a1a83adf Update configurations
Commit migrated from https://github.com/dotnet/corefx/commit/a152026c63c03dda2e470b780ecb4b3aa9671e11
2017-05-19 10:17:08 -07:00
Shin Mao e31aec50ac Fix the Build of XmlSerializer Tests on UWP (dotnet/corefx#19805)
* 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.

Fix dotnet/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
2017-05-18 11:49:12 -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
Carol Wang b0aa7349d9 Add canonicalization test (dotnet/corefx#19693)
* One more test for canonicalization feature

* Remove test code about System.IdentityModel.CanonicalizationDriver.


Commit migrated from https://github.com/dotnet/corefx/commit/44e227ee2c6728d762726e8ade4738b5d8aea1f4
2017-05-11 21:22:41 -07:00
Shin Mao c0a4e53f73 Fix rd.xml for Serialization Reflection Only Mode. (dotnet/corefx#19556)
* Fix rd.xml for Serialization Reflection Only Mode.

Fix dotnet/corefx#19067

* Removed GenericParameter Entries.


Commit migrated from https://github.com/dotnet/corefx/commit/3365ac6e8d981062e0170a67e06f907fea98e9a2
2017-05-10 13:05:46 -07:00
Santiago Fernandez Madero 660abe4a95 Disable desktop tests (dotnet/corefx#19522)
* Disable more desktop tests

Commit migrated from https://github.com/dotnet/corefx/commit/0da7c8ad0cf800d878f85b424af520c42acff9fd
2017-05-08 23:12:41 -07:00
Shin Mao a6dbead65b Enable Canonicalization on NetCore (dotnet/corefx#19378)
* Enable NetCore to Support Canonicalization.

Fix dotnet/corefx#18910.

* Enabled Xml Canonicalization Tests.

* Fixed a Test Bug.


Commit migrated from https://github.com/dotnet/corefx/commit/8fae5ae76f95b5483cf51b97dc016ef0631f7013
2017-05-05 17:38:23 -07:00
Shin Mao e6529b80f7 Add Tests covering WCF Soap Scenario. (dotnet/corefx#19258)
Ref https://github.com/dotnet/wcf/issues/1549

Commit migrated from https://github.com/dotnet/corefx/commit/cbf0f73d820d6b91162f14338ea9c58742afa5da
2017-05-05 17:37:55 -07:00
Stephen Toub b0835fceb5 Merge pull request dotnet/corefx#19370 from huanwu/AddKnownMethodNameTest
Add a test for KnownTypeAttribute.MethodName Property

Commit migrated from https://github.com/dotnet/corefx/commit/0e6d4afa9dbdde65f91114a41f2b1c89ecba137b
2017-05-05 16:28:27 -04:00
Carol Wang 00332dd443 Xml canonicalization test (dotnet/corefx#18911)
* xml canonicalization test V1

* Include test in ReflectionOnly project.

* make test with activeissue 18910

* Code format fix.

* Remove unneeded change.

* Add new project for Canonicalization Test.

* Review feedback.

* Fix build error.

* Add netcoreapp to Configurations.props fixed the build error for not-yet supported Object reference.

* Try to fix Vertical netfx Build failure in CI

* Rename test project, remove unneeded netfx prop

* Remove netstandard fix build error locally.

* Use TempFile.Create so it can be deleted after test completes

* Add netstandard to props.

* keep just netstandard and uap in the props file


Commit migrated from https://github.com/dotnet/corefx/commit/a1ceee749690012d09a0c4cab7b0901be35a5389
2017-05-05 09:41:20 -07:00
FAREAST\v-lijiay 8c0a783b1e Disable failed test for issue 18312.
Commit migrated from https://github.com/dotnet/corefx/commit/ced2495d523e849ce8b5c57c4db90434d8a4445c
2017-05-05 02:01:00 -07:00
Yanbo Gu 9662f904af Add a new Dcs test. (dotnet/corefx#19282)
* Add DCS test case.

* Update.

* Update the members to private and modify the baseline.


Commit migrated from https://github.com/dotnet/corefx/commit/8563117f9bfd0f8f242567debd96db4e8a2d832f
2017-05-04 23:24:33 -07:00
huanwu ec8e41100e Add a test for KnownTypeAttribute.MethodName Property
Commit migrated from https://github.com/dotnet/corefx/commit/f18cdb312e1cbe26616a112cb7b8e23c1789e9a9
2017-05-04 16:01:36 -07:00
Wes Haggard 3968a70735 Refresh VS Configurations
Commit migrated from https://github.com/dotnet/corefx/commit/39d309a9be077e110bab4f05f4196bad95f0d5b4
2017-05-03 09:36:31 -07:00