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)); }
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)); }