System.Tests.ConsoleKeyInfoTests.Equals_SameData C# (CSharp) 메소드

Equals_SameData() 개인적인 메소드

private Equals_SameData ( ConsoleKeyInfo cki ) : void
cki ConsoleKeyInfo
리턴 void
        public void Equals_SameData(ConsoleKeyInfo cki)
        {
            ConsoleKeyInfo other = cki; // otherwise compiler warns about comparing the instance with itself

            Assert.True(cki.Equals((object)other));
            Assert.True(cki.Equals(other));
            Assert.True(cki == other);
            Assert.False(cki != other);

            Assert.Equal(cki.GetHashCode(), other.GetHashCode());
        }