Commit Graph
162 Commits
Author SHA1 Message Date
Tarek Mahmoud Sayed 6b3c0af254 Merge pull request dotnet/corefx#8057 from hughbe/utf7-invalid-encoding
Add tests ensuring UTF7Encoding performs no error checking on encoding

Commit migrated from https://github.com/dotnet/corefx/commit/57a9f661a543a4eae37b654ff9176b835e17ef81
2016-04-25 14:39:49 -07:00
Stephen Toub 816e63c163 Merge pull request dotnet/corefx#8058 from hughbe/unicode-methods-properties-ctor
Add ctor, method and property tests to UnicodeEncoding

Commit migrated from https://github.com/dotnet/corefx/commit/2f334dc7578bcd56dfd4b1761c55cde8c6135110
2016-04-25 16:36:50 -04:00
Tarek Mahmoud Sayed 4bf81dffa2 Merge pull request dotnet/corefx#8021 from hughbe/ascii-methods-properties
Add ctor, method and property tests to AsciiEncoding

Commit migrated from https://github.com/dotnet/corefx/commit/a06d4c764d8ab6a8b430974c05d17c97b0641a32
2016-04-25 13:02:08 -07:00
Hugh Bellamy b5eecb5fd7 Add ctor, method and property tests to UnicodeEncoding
- Ctor, Ctor_Bool, Ctor_Bool_Bool
- EncoderFallback, DecoderFallback
- WebName, CodePage, EncodingName, IsSingleByte
- Clone, Equals, GetPreamble


Commit migrated from https://github.com/dotnet/corefx/commit/0e963579f6be6846b72ebaa4a62a242a2af18c66
2016-04-25 18:59:08 +01:00
Hugh Bellamy 1e0c0c0b16 Add tests ensuring UTF7Encoding performs no error checking on encoding
Commit migrated from https://github.com/dotnet/corefx/commit/2f114d2ec2fda9b34dab15e20b3c9485e857e112
2016-04-25 18:45:44 +01:00
Hugh Bellamy b175d3ff9c Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/15f1b8b256f24a388f670777c4b47c351241e88a
2016-04-25 18:44:38 +01:00
Tarek Mahmoud Sayed 87cd904502 Merge pull request dotnet/corefx#8020 from hughbe/utf8-methds-properties
Add ctor, method and property tests to UTF8Encoding

Commit migrated from https://github.com/dotnet/corefx/commit/d332a37260290e2ebbc3d656b7f9fb7967fcbf64
2016-04-25 08:50:28 -07:00
Tarek Mahmoud Sayed 8ec7060a56 Merge pull request dotnet/corefx#8009 from hughbe/utf8-fallback
Add tests for EncoderFallback and DecoderFallback for UTF8Encoding

Commit migrated from https://github.com/dotnet/corefx/commit/d5edefbdbb9bd6f07fb32194fd41498b68335233
2016-04-25 08:47:16 -07:00
Hugh Bellamy 65029542c3 Add more negative tests to System.Text.Encoding
- Null byte[] in GetBytes()
- Make sure GetMaxByteCount and GetMaxCharCount respect the MaxCharCount
property of EncoderFallback and DecoderFallback


Commit migrated from https://github.com/dotnet/corefx/commit/dd9b6990ace8e90ef557626e2e66c4a6061ad351
2016-04-24 13:09:04 +01:00
Hugh Bellamy 7143f55d67 Add ctor, method and property tests to UTF8Encoding
- Ctor_Empty, Ctor_Bool, Ctor_Bool
- EncoderFallback, DecoderFallback
- WebName, CodePage, EncodingName, IsSingleByte
- Clone, Equals, GetPreamble


Commit migrated from https://github.com/dotnet/corefx/commit/ff40e2840293b99910d2ad212983ea4d58a407d9
2016-04-23 09:32:38 +01:00
Hugh Bellamy 4b98704c1d Add ctor, method and property tests to AsciiEncoding
- Ctor
- EncoderFallback, DecoderFallback
- WebName, CodePage, EncodingName, IsSingleByte
- Clone, Equals, GetPreamble


Commit migrated from https://github.com/dotnet/corefx/commit/bd6e5d8de8b081b8adf317c28bdb5c24eb4c5cd3
2016-04-23 09:30:29 +01:00
Hugh Bellamy 5893251aea Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/a001630534cfda2e028831e978a215663687f940
2016-04-23 08:58:05 +01:00
Hugh Bellamy fcbd2163a9 Move legacy ASCIIEncoding tests to the modern files
- Also removes some old tests that are now duplicates and were undeleted
due to the recent cleanup


Commit migrated from https://github.com/dotnet/corefx/commit/1ee307e8fd52aaecdf6c920c38c08c73514916b5
2016-04-23 00:13:58 +01:00
Hugh Bellamy a89728737e Add tests for EncoderFallback and DecoderFallback for UTF8Encoding
- Also adds a helper method to NegativeEncodingTests to verify
DecodeFallbackExceptions and EncoderFallback exceptions are thrown


Commit migrated from https://github.com/dotnet/corefx/commit/c7b17abe866fe919fa84e407372e6ab7ab1e8b8d
2016-04-22 23:45:12 +01:00
Hugh Bellamy d37d6e8fb1 Address PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/b393dfb90bb1aecc6f7500120840eae038fdfc26
2016-04-22 19:12:30 +01:00
Hugh Bellamy 1e9619a74c Move legacy UnicodeEncoding tests to modern files
- Take advantage of EncodingTestHelpers and NegativeEncodingTestHelpers
to remove boilerplate and duplicated code/tests (e.g. we don't need to
test data for all overloads or GetCharCount/GetByteCount as the helpers
handle this for us)
- Move encode and decode tests to the new files


Commit migrated from https://github.com/dotnet/corefx/commit/fc607f9119c24939aa78af0f0908fe54fc5f271f
2016-04-22 18:20:12 +01:00
dotnet-bot facf18bbf5 Updating CoreFX dependencies to rc3-24022-00
Commit migrated from https://github.com/dotnet/corefx/commit/5bfcca66e5c16c3c1585d1087acd2ea522eb17a7
2016-04-22 05:37:54 +00:00
Tarek Mahmoud Sayed d75f62ace2 Merge pull request dotnet/corefx#7965 from hughbe/encoding-unsafe
Add tests for unsafe decoding and encoding of bytes and strings

Commit migrated from https://github.com/dotnet/corefx/commit/6375a6546eb7721433e754ab9b92abcbcede6413
2016-04-21 16:52:58 -07:00
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