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())); }