Пример #1
0
 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"));
 }
Пример #2
0
 public void CreateEquivalent_MethodInstantiation()
 {
     MethodDeclaration.CreateEquivalent(ReflectionObjectMother.GetSomeMethodInstantiation());
 }