mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-22 19:10:41 -10:00
Porting System.Text.Encoding from ToF and unified 4.0 and 4.10 tests into same folder
[tfs-changeset: 1474146] Commit migrated from https://github.com/dotnet/corefx/commit/1394fa1c2539f289916b9c0641f81436b73e8794
This commit is contained in:
1 parent
40a96f0d15
commit
e157c69bbc
104 files changed
+12887
No files matched your search
@@ -0,0 +1,25 @@
|
||||
// Copyright (c) Microsoft. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
|
||||
using System;
|
||||
using System.Text;
|
||||
using Xunit;
|
||||
|
||||
namespace System.Text.EncodingTests
|
||||
{
|
||||
// ASCIIEncoding.GetEncoder()
|
||||
public class ASCIIEncodingGetEncoder
|
||||
{
|
||||
// PosTest1: reference of ASCIIEncoding class is created via default constructor.
|
||||
[Fact]
|
||||
public void PosTest1()
|
||||
{
|
||||
ASCIIEncoding ascii;
|
||||
Encoder actualEncoder;
|
||||
|
||||
ascii = new ASCIIEncoding();
|
||||
actualEncoder = ascii.GetEncoder();
|
||||
Assert.NotNull(actualEncoder);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user