public void TypesCompareEqual(Type a, Type b) { IEqualityComparer <Type> comparer = new GenericTypeInstantiationComparer(); Assert.True(comparer.Equals(a, b)); Assert.Equal(comparer.GetHashCode(a), comparer.GetHashCode(b)); }
public void TypesCompareInequal(Type a, Type b) { IEqualityComparer <Type> comparer = new GenericTypeInstantiationComparer(); Assert.False(comparer.Equals(a, b)); }