public void CreateEquivalent_MethodInstantiation() { Assert.That( () => MethodDeclaration.CreateEquivalent(ReflectionObjectMother.GetSomeMethodInstantiation()), Throws.ArgumentException .With.ArgumentExceptionMessageEqualTo( "The specified method must be either a non-generic method or a generic method definition; it cannot be a method instantiation.", "method")); }
public void CreateEquivalent_MethodInstantiation() { MethodDeclaration.CreateEquivalent(ReflectionObjectMother.GetSomeMethodInstantiation()); }