private static void VerifyMethodData(CompilationTestData.MethodData methodData, string expectedType, string expectedIL) { methodData.VerifyIL(expectedIL); var method = (MethodSymbol)methodData.Method; VerifyTypeParameters(method); Assert.Equal(expectedType, method.ReturnType.ToTestDisplayString()); }