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
This commit is contained in:
Hugh Bellamy committed 2016-04-05 22:37:25 +01:00
1 parent 5f33843945
commit d871a6ba6b
14 files changed
+149 -235

No files matched your search

@@ -8,13 +8,11 @@ namespace System.Text.Tests
{
public class UTF7EncodingGetDecoder
{
// PosTest1: Verify method GetDecoder
[Fact]
public void PosTest1()
public void GetDecoder()
{
UTF7Encoding utf7 = new UTF7Encoding();
Decoder decoder = utf7.GetDecoder();
Decoder decoder = new UTF7Encoding().GetDecoder();
Assert.NotNull(decoder);
}
}
}