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
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