Example #1
0
        public void GetMethod_Static_VoidGeneric()
        {
            var member = NormalizingMemberInfoFromExpressionUtility.GetMethod(() => DomainType.StaticVoidGenericMethod <TestClass> (null));

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

            Assert.That(member, Is.EqualTo(expected));
        }
Example #2
0
        public void GetGenericMethodDefinition_StaticVoid()
        {
            var member = MemberInfoFromExpressionUtility.GetGenericMethodDefinition(() => DomainType.StaticVoidGenericMethod <SampleType> (null));

            var expected = typeof(DomainType).GetMethod("StaticVoidGenericMethod");

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