Commit Graph
544 Commits
Author SHA1 Message Date
Tarek Mahmoud Sayed 9b67672c20 Merge pull request dotnet/corefx#7972 from hughbe/encoding-move
Move legacy UTF8Encoding tests to modern files

Commit migrated from https://github.com/dotnet/corefx/commit/02443b426b4df2dceb347d81742509e8c9865469
2016-04-21 16:20:47 -07:00
Hugh Bellamy 47a2a9b7af Move legacy UTF8Encoding tests to modern files
- Take advantage of EncodingTestHelpers and NegativeEncodingTestHelpers
to remove boilerplate and duplicated code/tests
- Move encode and decode tests to the new files


Commit migrated from https://github.com/dotnet/corefx/commit/96cb298952e09ad7adbd52c6050673187ce1c3b8
2016-04-21 22:36:48 +01:00
Hugh Bellamy 76b8e459d0 Add tests for unsafe decoding and encoding of bytes and strings
Commit migrated from https://github.com/dotnet/corefx/commit/6a5884052b588ad9429f04fec3ceca46aaebd438
2016-04-21 21:34:25 +01:00
Hugh Bellamy f15da2ff38 Remove random data from System.Text.Encoding tests
Commit migrated from https://github.com/dotnet/corefx/commit/c8dd21919875419202bbf8277b776580c783b6aa
2016-04-21 21:32:38 +01:00
Tarek Mahmoud Sayed 86db75b827 Merge pull request dotnet/corefx#7963 from hughbe/unicode-encoding-tests
Add tests for UnicodeEncoding

Commit migrated from https://github.com/dotnet/corefx/commit/088ddcd6bc5424b2ce84c0c81b94d4e87f74ddee
2016-04-21 11:41:50 -07:00
Tarek Mahmoud Sayed 2dd7b69581 Merge pull request dotnet/corefx#7955 from hughbe/encoding-neg
Add negative tests for unsafe encoding and decoding

Commit migrated from https://github.com/dotnet/corefx/commit/97ffe974392399166f9ecef60585c964ef4955d1
2016-04-21 10:54:34 -07:00
Tarek Mahmoud Sayed 219b699288 Merge pull request dotnet/corefx#7957 from hughbe/ascii-tests
Add AsciiEnccoding tests

Commit migrated from https://github.com/dotnet/corefx/commit/b562f7aa8555c9415340958d6534668e81f05b03
2016-04-21 10:31:17 -07:00
Hugh Bellamy 53944240c3 Add tests for UnicodeEncoding
- All ASCII chars
- Valid surrogate pairs
- Invalid surrogate pairs
- Invalid unicode chars
- Invalid bytes


Commit migrated from https://github.com/dotnet/corefx/commit/3be7b3c8968cd558c4ccbedfa4e1b89bce9c63ad
2016-04-21 18:28:43 +01:00
Hugh Bellamy 750dd9fb01 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/44526a3b42e6df1ad22a684dab3974af4d4f4a9d
2016-04-21 17:25:11 +01:00
Hugh Bellamy 0ddf973612 Add AsciiEnccoding tests
- Invalid bytes
- Valid surrogate pairs
- Invalid surrogate pairs
- Invalid chars


Commit migrated from https://github.com/dotnet/corefx/commit/7f7621f597c65b30ae7be93a28f73e2283726b90
2016-04-21 16:57:58 +01:00
Hugh Bellamy 6593984b91 Add UTF7Encoding tests
- All ASCII chars
- '+'
- Valid surrogate pairs
- Invalid surrogate pairs
- Invalid unicode chars


Commit migrated from https://github.com/dotnet/corefx/commit/9a70ffea2af0d526892626e0a69c63b5d24f8a1b
2016-04-21 16:55:32 +01:00
Hugh Bellamy 5a22741170 Add negative tests for unsafe encoding and decoding
Commit migrated from https://github.com/dotnet/corefx/commit/0a7d12706d64fb1b7f335e477791a690edbf64a8
2016-04-21 16:53:15 +01:00
Tarek Mahmoud Sayed 891f59bbff Merge pull request dotnet/corefx#7928 from hughbe/utf8-tests
Add UTF8Encoding tests

Commit migrated from https://github.com/dotnet/corefx/commit/f406e629946e956f4542362c4cb1f4e186d13a2b
2016-04-21 08:33:50 -07:00
Hugh Bellamy 8173890495 Address PR feedback
- Add a comment
- Add some more invalid bytes tests


Commit migrated from https://github.com/dotnet/corefx/commit/4667d3dff6639dc5f904aaa802af1db61fa80bee
2016-04-21 15:52:13 +01:00
Hugh Bellamy ce20775029 Add UTF8Encoding tests
- All ASCII chars
- Valid surrogate pairs
- Invalid surrogate pairs
- Invalid unicode chars
- Invalid bytes
- Change Decode(..., char[]) to Decode(..., string) for convenience


Commit migrated from https://github.com/dotnet/corefx/commit/96326160e8979c97bcc77e28a2e0c8960f4f45f7
2016-04-20 21:43:10 +01:00
Davis Goodin 5be2da2fc2 Change non-existent package dependencies to actual versions.
Commit migrated from https://github.com/dotnet/corefx/commit/28f021d9f269ea8207ede73d56b3cd99c8e19c96
2016-04-20 14:06:56 -05:00
Lakshmi Priya Sekar 74c34921f1 Update xunit.netcore.extensions version.
Commit migrated from https://github.com/dotnet/corefx/commit/2134c046fa998522aa60159a2516b2f6bd7cc330
2016-04-19 19:16:41 -07:00
Tarek Mahmoud Sayed 21558490b4 Merge pull request dotnet/corefx#7603 from hughbe/encoding-simplification
Consolidate GetByteCount/GetByte and GetChars/GetCharCount/GetString tests

Commit migrated from https://github.com/dotnet/corefx/commit/49640827717885fbc66268098932150bf77574de
2016-04-19 09:43:20 -07:00
Hugh Bellamy b87a18c990 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/0aeff31bb0a4d56d87283de8a51e731700dd8c6a
2016-04-19 16:19:37 +01:00
dotnet-bot cdbab74187 Updating CoreFX dependencies to rc3-24018-00
Commit migrated from https://github.com/dotnet/corefx/commit/b2e960386a786002b5cb724e64814dbb90eb4af4
2016-04-18 17:40:51 +00:00
Hugh Bellamy e64fce918c Consolidate GetByteCount/GetByte and GetChars/GetCharCount/GetString tests
- Less test code duplication


Commit migrated from https://github.com/dotnet/corefx/commit/1879fbb6fcc4dc5dd83a0458b28302e58d3868eb
2016-04-16 10:50:19 +01:00
dotnet-bot 03fd4d1c42 Updating CoreFX dependencies to rc3-24015-00
Commit migrated from https://github.com/dotnet/corefx/commit/a70774dac4088849551525d3ddd750d4e0cc4fbc
2016-04-15 06:40:27 +00:00
dotnet-bot 875bffd0a5 Updating CoreFX dependencies to rc3-24014-01
Commit migrated from https://github.com/dotnet/corefx/commit/0c97843892b744f01ef65a5684a911f50a38ed93
2016-04-14 06:39:49 +00:00
Eric StJohn f0dd5a436b Merge pull request dotnet/corefx#7665 from ericstj/pcl-inbox
Add support for PCL profiles

Commit migrated from https://github.com/dotnet/corefx/commit/fdae434e8a639fdd0227068f6469c116146d9b44
2016-04-13 06:36:33 -07:00
dotnet-bot ea45391f54 Updating CoreFX dependencies to rc3-24013-00
Commit migrated from https://github.com/dotnet/corefx/commit/32d2d84ff16efa0ed04dd2780c62db36bbf0bf01
2016-04-13 06:13:25 +00:00
Eric St. John 608e8a43cd Add support for PCL profiles
Adds support for profile-based PCL using placeholders.


Commit migrated from https://github.com/dotnet/corefx/commit/5853b8f459c5b07d543274cd16137375970356ae
2016-04-12 14:49:26 -07:00
Eric Mellino f57a495784 Overhaul usage of test-runtime.
This change uses some features available in an updated version of
buildtools. Instead of resolving the test-runtime for each of our test
projects as a separate step, we will now add a "reference" to it from the
project.json of each test project. This will allow us to resolve the nuget
assets from both it and the test project at the same time. This will be
more robust than our current process, which is very fragile and
error-prone.

The above is made possible by an updated version of
"PrereleaseResolveNuGetPackageAssets", which is the buildtools task
responsible for resolving test assets from nuget packages. This task also
has a lot of additional validation, which triggers a lot of warnings in
corefx. I've made various changes to csproj's and to project.json's around
the repository in order to satisfy those warnings.


Commit migrated from https://github.com/dotnet/corefx/commit/622ee8f512497fc07621de15e41c6bd575f387c9
2016-04-12 07:12:36 -07:00
dotnet-bot 203d37ef1e Updating CoreFX dependencies to rc3-24012-00
Commit migrated from https://github.com/dotnet/corefx/commit/f89a8267334562ab363ce19d4a2bfa0618bb1f00
2016-04-12 05:34:15 +00:00
dotnet-bot 83f02c753f Updating CoreFX dependencies to rc3-24011-00
Commit migrated from https://github.com/dotnet/corefx/commit/406378b88f0485b549ec2b8c242c79329a5b3ef5
2016-04-11 16:13:03 +00:00
Hugh Bellamy 5fa8983705 Cleanup UTF8Encoding tests (dotnet/corefx#7389)
* Cleanup UTF8Encoding tests

- Fix a bunch of tests that didn't actually test anything. They just
called the method without any assertions or checks after.
- Rename tests to follow guidelines, instead of "PosTest1" and
"NegTest2"
- Take advantage of xunit
- Shorten tests by using quicker and newer code
- Use EncodingTestHelpers

Commit migrated from https://github.com/dotnet/corefx/commit/5574b066325687ca4740cea78dc6ba09a4b2166a
2016-04-08 07:45:20 -04:00
dotnet-bot 6883e89fc3 Updating CoreFX dependencies to rc3-24008-00
Commit migrated from https://github.com/dotnet/corefx/commit/30b74738cdac9c75a2dd165d339f206b1070f3cd
2016-04-08 06:40:37 +00:00
dotnet-bot 0f0193e356 Updating CoreFX dependencies to rc3-24007-00
Commit migrated from https://github.com/dotnet/corefx/commit/d9fdf25de0e1cf35219a26d4f840302e5379f292
2016-04-07 05:37:12 +00:00
Stephen Toub 467f7f2197 Merge pull request dotnet/corefx#7361 from hughbe/text-encoding-tests-utf7
Cleanup UTF7Encoding tests

Commit migrated from https://github.com/dotnet/corefx/commit/dfe997ebdb8f6be1b2df7931961e1f301bc8696b
2016-04-06 10:36:11 -04:00
dotnet-bot be7ca463ae Updating CoreFX dependencies to rc3-24006-00
Commit migrated from https://github.com/dotnet/corefx/commit/aff79bf3fa8ce8c13b6084d82aca30e534142b81
2016-04-06 05:21:19 +00:00
Hugh Bellamy d871a6ba6b Cleanup UTF7Encoding tests
- Fix a bunch of tests that didn't actually test anything. They just called the method without any assertions or checks after.
- Rename tests to follow guidelines, instead of "PosTest1" and
"NegTest2"
- Take advantage of xunit
- Shorten tests by using quicker and newer code
- Use EncodingTestHelpers


Commit migrated from https://github.com/dotnet/corefx/commit/241262ac0ec5bea8c7a10e7ff115a142e2636290
2016-04-05 22:37:25 +01:00
dotnet-bot 8c6d7acd5d Updating CoreFX dependencies to rc3-24005-00
Commit migrated from https://github.com/dotnet/corefx/commit/afbf526ac0fae250fc47623f2c43d2caa1abb803
2016-04-05 06:23:55 -04:00
dotnet-bot 9f65b1e1ef Updating CoreFX dependencies to rc3-24004-00
Commit migrated from https://github.com/dotnet/corefx/commit/9fd2c8863f2be58ee5d1431f0c658de61e991551
2016-04-04 20:19:10 -04:00
Lakshmi Priya Sekar 2a3abf12b4 Update xunit.netcore.extensions to latest.
Commit migrated from https://github.com/dotnet/corefx/commit/a7bb9eb3327f5cc791d39b4cff764dd7dd29fda5
2016-04-01 14:04:56 -07:00
Stephen Toub 4cfbce5bbd Merge pull request dotnet/corefx#7385 from hughbe/bolster-encoding-helpers
Actually test GetBytes and GetChars in System.Text.Encoding

Commit migrated from https://github.com/dotnet/corefx/commit/edda8320a56a7080874ee37f190dbaa28a74aaff
2016-04-01 07:36:47 -04:00
Jonathan Miller 0e43cc624e Merge pull request dotnet/corefx#6572 from sokket/builds
Adding builds files to the test projects

Commit migrated from https://github.com/dotnet/corefx/commit/e8326c3dab65e2e8eac466f346a9693788d41ca9
2016-03-31 11:41:43 -07:00
Jonathan Miller 7c2ce6913c Adding builds files for the test projects
Commit migrated from https://github.com/dotnet/corefx/commit/752599494fce80b5d0059a9090fdc010d8c7f45b
2016-03-31 10:46:26 -07:00
Hugh Bellamy 2540ee56b3 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/609e9ab66c7ff6332665fe75dd7cfd1649daaed3
2016-03-31 18:13:04 +01:00
stephentoub 025ea3f97f Update packages to rc3-23931-00
Commit migrated from https://github.com/dotnet/corefx/commit/e421dd9c41c308f83511e350c1e407d1f728ba78
2016-03-31 08:26:49 -04:00
Hugh Bellamy f2aa24fa36 Add a test for GetPreamble to ASCIIEncoding
More consistent with other encoding tests


Commit migrated from https://github.com/dotnet/corefx/commit/594e788d21006d680125bfb728d4aca5ffb3249c
2016-03-31 11:51:35 +01:00
Hugh Bellamy 5afc5d0c67 Actually test GetBytes and GetChars in System.Text.Encoding
- Previous tests for GetBytes and GetChars did not test anything apart
from the return value: the method could've created any byte[] or char[]
result and we wouldn't have verified it.
- Also adds more coverage by testing more overloads of GetBytes and
GetChars


Commit migrated from https://github.com/dotnet/corefx/commit/2bd77a8c5f104624f403cb48c0bfabcdb9beaaf8
2016-03-31 11:34:56 +01:00
stephentoub dabfe7fc9d Update packages to rc3-23930-00
Commit migrated from https://github.com/dotnet/corefx/commit/64a2b6c70977e33b4e8fb90e8f5d3b019b843e61
2016-03-30 07:30:59 -04:00
Ian Hays b3d9b3147c Fix System.Text.Encoding test helper.
A test helper in System.Text.Encoding had a typo that was causing the GetBytes(char[],...) methods to not be tested for positive validation.


Commit migrated from https://github.com/dotnet/corefx/commit/3ff89d89fe6d4a28435cabd5ca4b83d3a500ceef
2016-03-29 12:18:14 -07:00
stephentoub aa64955b41 Update packages to rc3-23925-00
Commit migrated from https://github.com/dotnet/corefx/commit/268eea1b538fa80a0042a1eabc4e51c84473d7b0
2016-03-25 20:23:47 -04:00
Hugh Bellamy e834661e13 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/f036a4aed44575fdf3a33a0bde293d1f4fe9c64f
2016-03-25 22:42:16 +00:00
Hugh Bellamy c48fd59e48 Cleanup ASCIIEncoding tests
Use common helper that contains more tests than before


Commit migrated from https://github.com/dotnet/corefx/commit/a2a7bb46b9580677b0ab45d0ff965233b9af2b1a
2016-03-25 22:14:44 +00:00