Commit Graph
18 Commits
Author SHA1 Message Date
Ian Hays dbf8c602bb PR feedback
Commit migrated from https://github.com/dotnet/corefx/commit/d73d9198597762b2bdb3597bd756608767417234
2016-03-29 14:27:15 -07:00
Ian Hays 62c255e267 Add tests for CodePages with duplicate names.
There are two names that have duplicate associated CodePages. For those two names, we have to test with the expectation that querying the name will always return the same codepage.


Commit migrated from https://github.com/dotnet/corefx/commit/2fc6ad266876cc0f37aad9ee0b4a805cdf9f86ce
2016-03-29 13:05:05 -07:00
dotnet-bot b32ddb5d98 Deploy nameof throughout corefx in MemberData
Commit migrated from https://github.com/dotnet/corefx/commit/9c3156b9ada06b8e58ac53d48fc303500bf3e476
2016-02-18 23:58:15 -05:00
dotnet-bot 39d1eab950 Update licensing headers
Commit migrated from https://github.com/dotnet/corefx/commit/7cad8486cbabbce0236bdf530e30db7036335524
2016-01-27 08:02:28 -08:00
Stephen Toub 24f054dc0d Merge pull request dotnet/corefx#3540 from eerhardt/Encodings
Enabling fixed System.Text.Encoding tests.

Commit migrated from https://github.com/dotnet/corefx/commit/ce490c45745ef1564c8861ca04912f5c51c0e837
2015-10-09 15:58:01 -04:00
Stephen A. Imhoff ce30d6a254 Update test namespace in System.Text.Encoding.CodePages, per dotnet/corefx#2898 .
Commit migrated from https://github.com/dotnet/corefx/commit/4a2b31b243d8ec2527542ddb8dea80f9fe241a94
2015-10-02 16:35:37 +09:00
Eric Erhardt c1b801687b Enabling fixed System.Text.Encoding tests.
I also logged a specific issue for a Encodings.Web test to use a Theory instead of a Fact, which is still causing an error after globalization has been implemented.


Commit migrated from https://github.com/dotnet/corefx/commit/39ff855597bee655d1746452a461f013c3fc6a74
2015-09-29 14:31:23 -05:00
Clockwork-Muse 80b79cc2b4 Completely disable DefaultEncodings test for Unix (conditional compilation not available?)
Commit migrated from https://github.com/dotnet/corefx/commit/6bc037ae3907f5f9f794460b91f01a736a0b8102
2015-06-08 21:56:29 +09:00
Clockwork-Muse 35298e3916 Move identity check into platform block
Commit migrated from https://github.com/dotnet/corefx/commit/724e21a7a3b920bbf6593c07d735d9e7c0f1f065
2015-06-08 19:56:52 +09:00
Clockwork-Muse efc23d6cd1 Tweak tests to be more careful about platform, verify code page encodings not present by default.
Commit migrated from https://github.com/dotnet/corefx/commit/89e73e16447d972c6502b9407a774895295aed65
2015-06-08 13:45:03 +09:00
Clockwork-Muse 0f46c604bb Enable roundtripping for specified encodings.
Commit migrated from https://github.com/dotnet/corefx/commit/5427b51a4d63e2b6eedf7e9ac3fdff58dde6800e
2015-06-08 13:44:00 +09:00
Clockwork-Muse 7aacd28262 Make TestDefaultEncodings() safer.
Just make sure default encoding in known list.
Do stronger test to ensure Encoding.GetEncoding(..) and CodePageEncodingProvider.GetEncoding(...) return the same objects.
Remove known issue for Unix.


Commit migrated from https://github.com/dotnet/corefx/commit/806fb5ffedce01884f2a05775901ef13ead99476
2015-06-08 13:14:44 +09:00
Clockwork-Muse a774de0c58 Remove unused variables and related comments.
Commit migrated from https://github.com/dotnet/corefx/commit/fd12148bea4b9731455bc3416c035d19b7b2b6fc
2015-06-08 13:14:40 +09:00
Clockwork-Muse 0c9b70818b Update CodePageEncoding tests.
Remove `EnsureInitialization` and pre-existing-encodings tests.
Ask CodePagesEncodingProvider directly for encodings.

Move encoding mapping data into member in prep for adding Theory attribute.

Add missing Europa (code page 29001) strings by regenerating file from fixed source data.
No obvious way to test "English" strings (unused!), leaving in for now.

Test for existence of all available default encodings.
Test replacement/supplementary behavior with addition of code-page mapping.
Attempt to add Unix-specific test (but not able to personally test, due to being on windows...).

Update TestCodepageEncoding to use Theory/MemberData.
Expand range of characters round-tripped (potentially more can be added, but additional tests for exceptions should be added).
Bring in code-page->webname mapping tests.

Remove existence test for Eudc encoding (part of testing data).

Update TestEncodingDisplayNames to use Theory/MemberData.
Raise lower bound of acceptable characters to only printable, and not solely whitespace.
Externalize culture setup to class load-time (in-method not thread safe!)

Move test classes out of default namespace.

Update TestSpecificCodepageEncodings
Extract test data to member.
Loft tests to method, use more idiomatic xUnit.

Update multibyte encoding tests.
Extract data to member.
Condense test methods into one.


Commit migrated from https://github.com/dotnet/corefx/commit/5d1db71ed9bdff40525e80fc57c457569115d3c9
2015-06-08 13:13:47 +09:00
Stephen Toub 964b3dea7d Add PlatformID.AnyUnix
There are ~110 tests that have been disabled with an ActiveIssue for PlatformID.Linux | PlatformID.OSX.  To simplify this and to avoid lots of additional churn when additional Unix-based platforms are added, I've added PlatformID.AnyUnix = Linux | OSX, and replaced all usage of Linux | OSX with just AnyUnix.  When new platforms are added, we can simply add to the enum, expand the meaning of AnyUnix, and most tests meant to be disabled for Unix will automatically be disabled.


Commit migrated from https://github.com/dotnet/corefx/commit/c96932da11940e0bae05de8e364eac90a6e1786b
2015-04-29 07:22:40 -04:00
Stephen Toub aa72ec070e Annotate platform-specific tests in System.Text.Encoding.CodePages.Tests
A couple of the tests in System.Text.Encoding.CodePages.Tests depend on globalization support not yet implemented on Unix.  Disabling those for now.


Commit migrated from https://github.com/dotnet/corefx/commit/65cc742cf20a6b5cc4ea2565a637363627464d91
2015-04-03 15:22:09 -04:00
Nick Guerrera f3705efd65 Remove logging of expected outcomes from CodePages tests
Commit migrated from https://github.com/dotnet/corefx/commit/5a8441438ca98137f708e13342f724897fa4d2cc
2015-01-17 10:37:24 -08:00
dotnet-bot 6686a85d0f Initial commit of System.Text.Encoding.CodePages
Commit migrated from https://github.com/dotnet/corefx/commit/a8f65abf1d3f19f3e853c13125906e1a056fb884
2015-01-16 11:11:21 -08:00