Пример #1
0
        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));
        }
Пример #2
0
        public void TypesCompareInequal(Type a, Type b)
        {
            IEqualityComparer <Type> comparer = new GenericTypeInstantiationComparer();

            Assert.False(comparer.Equals(a, b));
        }