Пример #1
0
        public void AreTypesEqual_MismatchedParameterPositionFail()
        {
            var helper = new TypeSignatureHelper();

            var mi         = typeof(TestHelper).GetMethod("TwoGenericMethod");
            var parameters = mi.GetParameters();

            Assert.IsFalse(helper.AreTypesEqual(parameters[0].ParameterType, parameters[1].ParameterType));
        }
Пример #2
0
        public void AreTypesEqual_MismatchedGenericArgumentCountFail()
        {
            var helper = new TypeSignatureHelper();

            Assert.IsFalse(helper.AreTypesEqual(typeof(TestHelpOneGeneric <string>), typeof(TestHelperTwoGenerics <string, string>)));
        }