ExtractMethod\ExtractLocalFunctionTests.cs (127)
97""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement)));
128""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.FalseWithSilentEnforcement)));
159""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CSharpCodeStyleOptions.PreferStaticLocalFunction.DefaultValue)));
187""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedLocalFunctions, CSharpCodeStyleOptions.WhenPossibleWithSilentEnforcement)));
215""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedLocalFunctions, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement)));
249""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedLocalFunctions, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement)));
282""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedLocalFunctions, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement)));
315""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedLocalFunctions, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement)));
348""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferExpressionBodiedLocalFunctions, CSharpCodeStyleOptions.WhenOnSingleLineWithSilentEnforcement)));
391""", CodeActionIndex);
435""", CodeActionIndex);
464""", CodeActionIndex);
493""", CodeActionIndex);
522""", CodeActionIndex);
565""", CodeActionIndex);
607""", CodeActionIndex);
649""", CodeActionIndex);
750parseOptions: TestOptions.Regular, index: CodeActionIndex);
851parseOptions: TestOptions.Regular, index: CodeActionIndex);
896""", CodeActionIndex);
949""", CodeActionIndex);
999""", CodeActionIndex);
1030""" + TestResources.NetFX.ValueTuple.tuplelib_cs, CodeActionIndex);
1061""" + TestResources.NetFX.ValueTuple.tuplelib_cs, CodeActionIndex);
1092""" + TestResources.NetFX.ValueTuple.tuplelib_cs, CodeActionIndex);
1125""" + TestResources.NetFX.ValueTuple.tuplelib_cs, CodeActionIndex);
1156""" + TestResources.NetFX.ValueTuple.tuplelib_cs, CodeActionIndex);
1187""" + TestResources.NetFX.ValueTuple.tuplelib_cs, CodeActionIndex);
1218""" + TestResources.NetFX.ValueTuple.tuplelib_cs, CodeActionIndex);
1249""", CodeActionIndex);
1281""" + TestResources.NetFX.ValueTuple.tuplelib_cs, CodeActionIndex);
1312""" + TestResources.NetFX.ValueTuple.tuplelib_cs, CodeActionIndex);
1345""" + TestResources.NetFX.ValueTuple.tuplelib_cs, CodeActionIndex);
1380""", CodeActionIndex);
1415""", CodeActionIndex);
1450""", CodeActionIndex);
1495""", CodeActionIndex);
1540""", CodeActionIndex);
1586""", CodeActionIndex);
1637""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.VarForBuiltInTypes, CodeStyleOption2.TrueWithSuggestionEnforcement)));
1688""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.VarWhenTypeIsApparent, CodeStyleOption2.TrueWithSuggestionEnforcement)));
1749""", CodeActionIndex);
1784""", CodeActionIndex);
1839""", CodeActionIndex);
1908""", CodeActionIndex);
1950""", CodeActionIndex);
1991""", CodeActionIndex);
2032""", CodeActionIndex);
2064""", TestOptions.Regular7_1, index: CodeActionIndex);
2095""", TestOptions.Regular7_1, index: CodeActionIndex);
2126""", TestOptions.Regular7_1, index: CodeActionIndex);
2155""", CodeActionIndex);
2184""", CodeActionIndex);
2213""", CodeActionIndex);
2242""", CodeActionIndex);
2271""", CodeActionIndex);
2310""", CodeActionIndex);
2349""", CodeActionIndex);
2390""", CodeActionIndex);
2427""", CodeActionIndex);
2462""", CodeActionIndex);
2497""", CodeActionIndex);
2532""", CodeActionIndex);
2567""", CodeActionIndex);
2617""", CodeActionIndex);
2667""", CodeActionIndex);
2715""", CodeActionIndex);
2761""", CodeActionIndex);
2805""", CodeActionIndex);
2845""", CodeActionIndex);
2896""", CodeActionIndex);
2948""", CodeActionIndex);
2978""", CodeActionIndex);
3009""", CodeActionIndex);
3040""", CodeActionIndex);
3080""", CodeActionIndex);
3119""", CodeActionIndex);
3172""", CodeActionIndex);
3225""", CodeActionIndex);
3264""", CodeActionIndex);
3303""", CodeActionIndex);
3341""", CodeActionIndex);
3380""", CodeActionIndex);
3418""", CodeActionIndex);
3465""", CodeActionIndex);
3502""", CodeActionIndex);
3544""", CodeActionIndex);
3575""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7_3)));
3606""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp7)));
3637""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.CSharp8)));
3668""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement), parseOptions: TestOptions.Regular.WithLanguageVersion(LanguageVersion.Latest)));
3720""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement)));
3772""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement)));
3821""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement)));
3870""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement)));
3929""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement)));
3988""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement)));
4047""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement)));
4106""", CodeActionIndex, new TestParameters(options: Option(CSharpCodeStyleOptions.PreferStaticLocalFunction, CodeStyleOption2.TrueWithSilentEnforcement)));
4167""", CodeActionIndex);
4218await TestInRegularAndScript1Async(input, expected, CodeActionIndex);
4269await TestInRegularAndScript1Async(input, expected, CodeActionIndex);
4317await TestInRegularAndScript1Async(input, expected, CodeActionIndex);
4368await TestInRegularAndScript1Async(input, expected, CodeActionIndex);
4419await TestInRegularAndScript1Async(input, expected, CodeActionIndex);
4468await TestInRegularAndScript1Async(input, expected, CodeActionIndex);
4519await TestInRegularAndScript1Async(input, expected, CodeActionIndex);
4568await TestInRegularAndScript1Async(input, expected, CodeActionIndex);
4621await TestInRegularAndScript1Async(input, expected, CodeActionIndex,
4654await TestInRegularAndScript1Async(input, expected, CodeActionIndex);
4696await TestInRegularAndScript1Async(input, expected, CodeActionIndex);
4734await TestInRegularAndScript1Async(input, expected, CodeActionIndex);
4776await TestInRegularAndScript1Async(input, expected, CodeActionIndex);
4814await TestInRegularAndScript1Async(input, expected, CodeActionIndex);
4848""", new TestParameters(index: CodeActionIndex));
4866""", new TestParameters(index: CodeActionIndex));
4910""", index: CodeActionIndex);
4927""", new TestParameters(index: CodeActionIndex));
4944""", new TestParameters(index: CodeActionIndex));
5574await TestAsync(code, expected, TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex);
5623await TestAsync(code, expected, TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex);
5674await TestAsync(code, expected, TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex);
5711await TestAsync(code, expected, TestOptions.Script.WithLanguageVersion(LanguageVersion.CSharp7), index: CodeActionIndex);
5736await TestMissingAsync(code, codeActionIndex: CodeActionIndex);
5756await TestMissingAsync(code, codeActionIndex: CodeActionIndex);
5801await TestAsync(code, expected, TestOptions.Regular, index: CodeActionIndex);
5843await TestAsync(code, expected, TestOptions.Regular, index: CodeActionIndex);