System.Reflection.Tests.EventInfoTests.Equals C# (CSharp) Method

Equals() private method

private Equals ( Type type1, string name1, Type type2, string name2, bool expected ) : void
type1 Type
name1 string
type2 Type
name2 string
expected bool
return void
        public void Equals(Type type1, string name1, Type type2, string name2, bool expected)
        {
            EventInfo eventInfo1 = GetEventInfo(type1, name1);
            EventInfo eventInfo2 = GetEventInfo(type2, name2);
            Assert.Equal(expected, eventInfo1.Equals(eventInfo2));
            Assert.Equal(expected, eventInfo1.GetHashCode().Equals(eventInfo2.GetHashCode()));
        }