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)); }
public void GetGenericMethodDefinition_StaticVoid() { var member = MemberInfoFromExpressionUtility.GetGenericMethodDefinition(() => DomainType.StaticVoidGenericMethod <SampleType> (null)); var expected = typeof(DomainType).GetMethod("StaticVoidGenericMethod"); Assert.That(member, Is.EqualTo(expected)); }