Eric St. John
52fb000bf4
Use netcoreapp1.0 TFM for .NETCore validation
...
Commit migrated from https://github.com/dotnet/corefx/commit/17d24311ef3490a7d4ec25f8105c780c1018a577
2016-04-30 09:53:43 -07:00
Hugh Bellamy
ae47d97cca
Address PR feedback
...
Commit migrated from https://github.com/dotnet/corefx/commit/b4f0e88675d29071f0c8c6c2c1ccc1243c86569c
2016-04-30 12:26:09 +01:00
Hugh Bellamy
df15bd2e5b
Address PR feedback
...
Commit migrated from https://github.com/dotnet/corefx/commit/e90b02cf76f4d6286726bb20eebe57512090499e
2016-04-29 16:05:33 +01:00
Hugh Bellamy
e31733cce4
Migrate old UTF8Encoding tests to System.Text.Encoding tests
...
Commit migrated from https://github.com/dotnet/corefx/commit/f9ae6ac2c5e2e0220a7ded9b54ce31910b82fe20
2016-04-28 22:09:03 +01:00
Hugh Bellamy
3eaa522cfc
Support invalid UTF16 byte sequence in System.Text.Encoding tests
...
Commit migrated from https://github.com/dotnet/corefx/commit/986d17d54ea55c687368b7028e97fce7eaede008
2016-04-28 19:42:30 +01:00
Tarek Mahmoud Sayed
2b761dc4e5
Merge pull request dotnet/corefx#8137 from hughbe/encoding-extensions-cleanup
...
Initial System.Text.Encoding.Extensions.Tests cleanup
Commit migrated from https://github.com/dotnet/corefx/commit/8581b5f83b08a3cc6844a30f25cc235b7c3399d9
2016-04-28 09:04:15 -07:00
Hugh Bellamy
4b7411c165
Address PR Feedback
...
Commit migrated from https://github.com/dotnet/corefx/commit/1a4073d77d2b736d73f68bc0aebab90ac9fe2575
2016-04-28 14:26:30 +01:00
Tarek Mahmoud Sayed
ff964b2700
Merge pull request dotnet/corefx#8125 from hughbe/decoder-neg-tests
...
Add/Cleanup GetDecoder negative tests
Commit migrated from https://github.com/dotnet/corefx/commit/c489a24fa5f6993013852c5e948ba7c4bd45950b
2016-04-27 17:38:15 -07:00
Hugh Bellamy
9f285325ba
Migrate old UTF7Encoding tests to System.Text.Encoding tests
...
Commit migrated from https://github.com/dotnet/corefx/commit/715cf66b169f5d133d3c2e913897c52a656de6eb
2016-04-27 22:50:19 +01:00
Hugh Bellamy
efb651fb1d
Migrate old UTF32Encoding tests to System.Text.Encoding tests
...
Commit migrated from https://github.com/dotnet/corefx/commit/2dbcf0d2c086306d5a9c90d5c9d800ad1007d0f0
2016-04-27 22:50:19 +01:00
Hugh Bellamy
7858a71034
Migrate old ASCII tests to modern System.Text.Encoding tests
...
Commit migrated from https://github.com/dotnet/corefx/commit/b9114b40681786d681184893f2679419052f77b7
2016-04-27 22:50:19 +01:00
Tarek Mahmoud Sayed
73a20db1af
Merge pull request dotnet/corefx#8131 from hughbe/latin1-tests
...
Add Latin1Encoding tests
Commit migrated from https://github.com/dotnet/corefx/commit/65f7ab884caaf41f9391864a6201fcfde5424a58
2016-04-27 14:46:09 -07:00
Hugh Bellamy
088cceb472
Add Latin1Encoding tests
...
- Decode, Encode
- GetMaxCharCount, GetMaxByteCount
- GetPreamble, Clone, Equals
- EncoderFallback, DecoderFallback
- CodePage, WebName, EncodingName, IsSingleByte
Also fixes up the NegativeEncodingTests to not hardcode specific
Encodings
Contributes to dotnet/corefx#8114
Commit migrated from https://github.com/dotnet/corefx/commit/8714473001b21a33a173e72617d0abac7fc8999d
2016-04-27 20:47:25 +01:00
Hugh Bellamy
d0130418af
Remove duplicate tests from System.Text.Encoding.Extensions
...
- Only added tests for GetMaxByteCount/GetMaxByteCount and
encoding/decoding nothing
Commit migrated from https://github.com/dotnet/corefx/commit/99eb9ce017c08d7182ee95f9e5d63fcb82d6d5b6
2016-04-27 18:42:29 +01:00
Hugh Bellamy
e0f8e7ac31
Add/Cleanup GetDecoder negative tests
...
- Move to new more modern file
Commit migrated from https://github.com/dotnet/corefx/commit/f8ceb79cb292296b3fd00fd55638fdea03de4a64
2016-04-27 17:56:44 +01:00
Deepak Shankargouda
c36e848df3
Merge pull request dotnet/corefx#8071 from dsgouda/xperfver
...
Updating Xunit perf refs to 0030
Commit migrated from https://github.com/dotnet/corefx/commit/3e3b08b4cea5a3e4b4838cb48f86d39c077c11f8
2016-04-27 09:29:29 -07:00
Tarek Mahmoud Sayed
654fb285b4
Merge pull request dotnet/corefx#8103 from hughbe/ascii-encoder-decoder-fallback
...
Add tests for EncoderFallback and DecoderFallback in ASCIIEncoding
Commit migrated from https://github.com/dotnet/corefx/commit/3a3ee66d5b9b0cec13b230432bf2757f4c4976c2
2016-04-27 08:40:41 -07:00
Deepak Shankargouda
b365976591
Updating Xunit perf refs to 0030
...
Commit migrated from https://github.com/dotnet/corefx/commit/74a9351eade2cbe0c0c3c412fd57f1022dc7c32f
2016-04-26 19:29:12 -07:00
Tarek Mahmoud Sayed
065a3b2142
Merge pull request dotnet/corefx#8096 from hughbe/get-encoding-negative-tests
...
Add/cleanup GetEncoder negative tests
Commit migrated from https://github.com/dotnet/corefx/commit/3241b5d1c631b23869aa054bdb9ab808d362a49d
2016-04-26 16:27:19 -07:00
Hugh Bellamy
4e663948b2
Add tests for EncoderFallback and DecoderFallback in ASCIIEncoding
...
Commit migrated from https://github.com/dotnet/corefx/commit/4b5eafc330a6193e9e8778a1ef1bd0d74d8c43e0
2016-04-26 21:36:16 +01:00
Tarek Mahmoud Sayed
fcfbbf3682
Merge pull request dotnet/corefx#8092 from hughbe/unicode-encoding-neg
...
Add tests for EncoderFallback and DecoderFallback for UnicodeEncoding
Commit migrated from https://github.com/dotnet/corefx/commit/d5ac356b49b8cae4037f05fe2bfe71474888a86a
2016-04-26 13:06:52 -07:00
Tarek Mahmoud Sayed
a2b3c6641c
Merge pull request dotnet/corefx#8087 from hughbe/utf7-methods-properties-ctor
...
Add ctor, method and property tests to UTF7Encoding
Commit migrated from https://github.com/dotnet/corefx/commit/8b107f808c21a1884de435a423cbd3ddf2707567
2016-04-26 13:06:14 -07:00
Hugh Bellamy
1ff616a43f
Add/cleanup GetEncoder negative tests
...
Commit migrated from https://github.com/dotnet/corefx/commit/0420655f376d2c7f4c332d881c7f12b3f3f7da0d
2016-04-26 19:01:14 +01:00
Hugh Bellamy
55e3d33376
Make sure all constructors for any Encoding have the same GetMaxCharCount and GetMaxByteCount results
...
Commit migrated from https://github.com/dotnet/corefx/commit/3c69470d1f3adce4ef98afc0c04ae611737aab87
2016-04-26 18:21:13 +01:00
Hugh Bellamy
671a801dd2
Add tests for EncoderFallback and DecoderFallback for UnicodeEncoding
...
- Take advantage of recently added NegativeEncodingTests.Encode_Invalid
helper
Commit migrated from https://github.com/dotnet/corefx/commit/506fd4a1103d4d19fb61ec552dc6088d28168989
2016-04-26 18:15:44 +01:00
Hugh Bellamy
2723493301
Address PR feedback
...
Remove dead code
Commit migrated from https://github.com/dotnet/corefx/commit/c9512a580b6007420e875a42c9ecd32e6df3e574
2016-04-26 17:50:05 +01:00
Hugh Bellamy
c0de6dd24d
Cleanup Encoding tests
...
- GetEncoding
- Convert
Commit migrated from https://github.com/dotnet/corefx/commit/4285eccc05f69dfa16278be5ada0bf884de56540
2016-04-26 17:48:45 +01:00
Hugh Bellamy
8b9faf5099
Remove GetHashCodeTests
...
Moved into the modern file
Commit migrated from https://github.com/dotnet/corefx/commit/b51c3cc6608b315acc04c582dded240aacd1e107
2016-04-26 17:18:54 +01:00
Hugh Bellamy
3d7022311d
Add ctor, method and property tests to UTF7Encoding
...
- Ctor, Ctor_Bool
- EncoderFallback, DecoderFallback
- WebName, CodePage, EncodingName, IsSingleByte
- Clone, Equals, GetPreamble
Also removes some files that VS didn't delete in previous cleanups
Commit migrated from https://github.com/dotnet/corefx/commit/9a3faf243b831cbdd2b2a18fce76da7bfdae2f19
2016-04-26 17:16:24 +01:00
dotnet-bot
40d3f889c2
Updating CoreFX dependencies to rc3-24026-00
...
Commit migrated from https://github.com/dotnet/corefx/commit/b2704ed517b846992ffd66806d54ffdf4cb62526
2016-04-26 05:41:52 +00:00
Hugh Bellamy
b6726b24ab
Address PR feedback, fix failing test
...
Commit migrated from https://github.com/dotnet/corefx/commit/6dc578756444304fcaf1929df24edf82f1cc7632
2016-04-25 23:04:13 +01:00
Hugh Bellamy
82e6681aed
Add UTF32 tests
...
- Encoding and decoding valid chars and bytes
- Other methods
- Ctors
- Properties
Commit migrated from https://github.com/dotnet/corefx/commit/273c114e0877d4d38d901dc76610fd8e2e465a0c
2016-04-25 23:04:13 +01:00
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