コード例 #1
0
        public void GetMethod_Static_Generic()
        {
            var member = NormalizingMemberInfoFromExpressionUtility.GetMethod(() => DomainType.StaticGenericMethod <TestClass> (null));

            var expected = typeof(DomainType).GetMethod("StaticGenericMethod").MakeGenericMethod(typeof(TestClass));

            Assert.That(member, Is.EqualTo(expected));
        }
コード例 #2
0
        public void GetMethod_Static_Generic()
        {
            var member = MemberInfoFromExpressionUtility.GetMethod(() => DomainType.StaticGenericMethod <SampleType> (null));

            var expected = typeof(DomainType).GetMethod("StaticGenericMethod").MakeGenericMethod(typeof(SampleType));

            Assert.That(member, Is.EqualTo(expected));
        }