Exemple #1
0
        public void SelectStaticNonParameterLessGenericMethodReturnsCorrectMethod()
        {
            var dummy = default(T);

            MethodInfo actual = Methods.Select(() => ClassWithStaticMethods.IncludeParameters <T>(dummy));

            var expected =
                typeof(ClassWithStaticMethods)
                .GetMethod("IncludeParameters")
                .MakeGenericMethod(typeof(T));

            Assert.Equal(expected, actual);
        }