43 references to Option
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (29)
CodeActions\EncapsulateField\EncapsulateFieldTests.cs (2)
1405
""", options:
Option
(CodeStyleOptions2.QualifyFieldAccess, true, NotificationOption2.Error));
1436
""", options:
Option
(CodeStyleOptions2.QualifyFieldAccess, true, NotificationOption2.Error));
Diagnostics\GenerateType\GenerateTypeTests.cs (4)
2732
options:
Option
(CodeStyleOptions2.QualifyFieldAccess, true, NotificationOption2.Error));
3014
options:
Option
(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error));
3093
options:
Option
(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error));
3123
options:
Option
(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, false, NotificationOption2.Error));
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (1)
1358
", new TestParameters(options:
Option
(CodeStyleOptions2.PreferAutoProperties, true, NotificationOption2.Warning)));
GenerateConstructor\GenerateConstructorTests.cs (5)
555
options:
Option
(CodeStyleOptions2.QualifyFieldAccess, true, NotificationOption2.Error));
696
options:
Option
(CodeStyleOptions2.QualifyFieldAccess, true, NotificationOption2.Error));
872
options:
Option
(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error));
1013
options:
Option
(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error));
1106
options:
Option
(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error));
GenerateFromMembers\GenerateConstructorFromMembers\GenerateConstructorFromMembersTests.cs (1)
556
""", options:
Option
(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error));
InitializeParameter\InitializeMemberFromParameterTests.cs (3)
1578
private TestParameters OmitIfDefault_Warning => new TestParameters(options:
Option
(CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.OmitIfDefault, NotificationOption2.Warning));
1579
private TestParameters Never_Warning => new TestParameters(options:
Option
(CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Never, NotificationOption2.Warning));
1580
private TestParameters Always_Warning => new TestParameters(options:
Option
(CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Always, NotificationOption2.Warning));
QualifyMemberAccessTests.cs (2)
34
=> TestInRegularAndScriptAsync(code, expected, options:
Option
(option, true, notification));
40
=> TestMissingInRegularAndScriptAsync(code, new TestParameters(options:
Option
(option, true, notification)));
QualifyMemberAccessTests_FixAllTests.cs (1)
98
options:
Option
(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Suggestion));
SimplifyThisOrMe\SimplifyThisOrMeTests.cs (1)
105
options:
Option
(CodeStyleOptions2.QualifyPropertyAccess, false, NotificationOption2.Warning),
SimplifyTypeNames\SimplifyTypeNamesTests.cs (9)
4461
""", new TestParameters(options:
Option
(CodeStyleOptions2.QualifyFieldAccess, true, NotificationOption2.Error)));
4601
""", new TestParameters(options:
Option
(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, false, NotificationOption2.Error)));
4648
""", new TestParameters(options:
Option
(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, false, NotificationOption2.Error)));
4692
""", new TestParameters(options:
Option
(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, false, NotificationOption2.Error)));
4749
""", new TestParameters(options:
Option
(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, false, NotificationOption2.Error)));
4766
""", new TestParameters(options:
Option
(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, false, NotificationOption2.Error)));
4783
""", new TestParameters(options:
Option
(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, false, NotificationOption2.Error)));
4874
""", new TestParameters(options:
Option
(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, false, NotificationOption2.Error)));
4889
""", new TestParameters(options:
Option
(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, false, NotificationOption2.Error)));
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures.UnitTests (14)
Diagnostics\GenerateType\GenerateTypeTests.vb (1)
1441
options:=
[Option]
(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, False, NotificationOption2.Error))
InitializeParameter\InitializeMemberFromParameterTests.vb (3)
1000
Return New TestParameters(options:=
[Option]
(CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.OmitIfDefault, NotificationOption2.Warning))
1006
Return New TestParameters(options:=
[Option]
(CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Never, NotificationOption2.Warning))
1012
Return New TestParameters(options:=
[Option]
(CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Always, NotificationOption2.Warning))
QualifyMemberAccessTests.vb (2)
27
Return TestInRegularAndScriptAsync(code, expected, options:=
[Option]
(opt, True, notification))
36
New TestParameters(options:=
[Option]
(opt, True, notification)))
QualifyMemberAccessTests_FixAllTests.vb (1)
83
options:=
[Option]
(CodeStyleOptions2.QualifyPropertyAccess, True, NotificationOption2.Suggestion))
SimplifyTypeNames\SimplifyTypeNamesTests.vb (7)
2136
Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=
[Option]
(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, False, NotificationOption2.Error)))
2150
Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=
[Option]
(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, False, NotificationOption2.Error)))
2164
Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=
[Option]
(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, False, NotificationOption2.Error)))
2243
Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=
[Option]
(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, False, NotificationOption2.Error)))
2257
Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=
[Option]
(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, False, NotificationOption2.Error)))
2269
Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=
[Option]
(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, False, NotificationOption2.Error)))
2300
Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=
[Option]
(CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, False, NotificationOption2.Error)))