예제 #1
0
        public void EquivalentTypeComparerTest1()
        {
            EquivalentTypeComparer equivalentTypeComparer = new EquivalentTypeComparer();

            Assert.IsTrue(equivalentTypeComparer.Equals(
                              methodInfoParameter.ReturnType,
                              methodInfoParameter.GetParameterTypes().First()));
        }
예제 #2
0
        public void EquivalentTypeComparerTest3()
        {
            EquivalentTypeComparer equivalentTypeComparer = new EquivalentTypeComparer();

            Assert.IsFalse(equivalentTypeComparer.Equals(typeof(string), typeof(object)));
        }