mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-22 19:10:41 -10:00
- 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
19 lines
470 B
C#
19 lines
470 B
C#
// Licensed to the .NET Foundation under one or more agreements.
|
|
// The .NET Foundation licenses this file to you under the MIT license.
|
|
// See the LICENSE file in the project root for more information.
|
|
|
|
using Xunit;
|
|
|
|
namespace System.Text.Tests
|
|
{
|
|
public class UTF7EncodingGetDecoder
|
|
{
|
|
[Fact]
|
|
public void GetDecoder()
|
|
{
|
|
Decoder decoder = new UTF7Encoding().GetDecoder();
|
|
Assert.NotNull(decoder);
|
|
}
|
|
}
|
|
}
|