mirror of
https://github.com/BepInEx/dotnet-runtime.git
synced 2026-11-22 19:10:41 -10:00
[tfs-changeset: 1474146] Commit migrated from https://github.com/dotnet/corefx/commit/1394fa1c2539f289916b9c0641f81436b73e8794
24 lines
574 B
C#
24 lines
574 B
C#
// 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
|
|
{
|
|
public class EncodingEquals
|
|
{
|
|
#region Positive Test Cases
|
|
// Verify method Equals
|
|
[Fact]
|
|
public void PosTest1()
|
|
{
|
|
Encoding e1 = Encoding.GetEncoding("utf-8");
|
|
Encoding e2 = Encoding.UTF8;
|
|
Assert.True(e1.Equals(e2));
|
|
}
|
|
#endregion
|
|
}
|
|
}
|