public static IDictionary <OptionKey, object> PreferImplicitTypeWithNone(this AbstractCodeActionOrUserDiagnosticTest test)
 => AbstractCodeActionOrUserDiagnosticTest.OptionsSet(
     test.SingleOption(CSharpCodeStyleOptions.VarElsewhere, onWithNone),
     test.SingleOption(CSharpCodeStyleOptions.VarWhenTypeIsApparent, onWithNone),
     test.SingleOption(CSharpCodeStyleOptions.VarForBuiltInTypes, onWithNone));
Beispiel #2
0
 public static IOptionsCollection PreferExplicitTypeWithNone(this AbstractCodeActionOrUserDiagnosticTest test)
 => AbstractCodeActionOrUserDiagnosticTest.OptionsSet(
     test.SingleOption(CSharpCodeStyleOptions.VarElsewhere, offWithNone),
     test.SingleOption(CSharpCodeStyleOptions.VarWhenTypeIsApparent, offWithNone),
     test.SingleOption(CSharpCodeStyleOptions.VarForBuiltInTypes, offWithNone));