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)
2732options: Option(CodeStyleOptions2.QualifyFieldAccess, true, NotificationOption2.Error)); 3014options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error)); 3093options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error)); 3123options: 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)
555options: Option(CodeStyleOptions2.QualifyFieldAccess, true, NotificationOption2.Error)); 696options: Option(CodeStyleOptions2.QualifyFieldAccess, true, NotificationOption2.Error)); 872options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error)); 1013options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error)); 1106options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error));
GenerateFromMembers\GenerateConstructorFromMembers\GenerateConstructorFromMembersTests.cs (1)
556""", options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Error));
InitializeParameter\InitializeMemberFromParameterTests.cs (3)
1578private TestParameters OmitIfDefault_Warning => new TestParameters(options: Option(CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.OmitIfDefault, NotificationOption2.Warning)); 1579private TestParameters Never_Warning => new TestParameters(options: Option(CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Never, NotificationOption2.Warning)); 1580private 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)
98options: Option(CodeStyleOptions2.QualifyPropertyAccess, true, NotificationOption2.Suggestion));
SimplifyThisOrMe\SimplifyThisOrMeTests.cs (1)
105options: 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)
1441options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, False, NotificationOption2.Error))
InitializeParameter\InitializeMemberFromParameterTests.vb (3)
1000Return New TestParameters(options:=[Option](CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.OmitIfDefault, NotificationOption2.Warning)) 1006Return New TestParameters(options:=[Option](CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Never, NotificationOption2.Warning)) 1012Return New TestParameters(options:=[Option](CodeStyleOptions2.AccessibilityModifiersRequired, AccessibilityModifiersRequired.Always, NotificationOption2.Warning))
QualifyMemberAccessTests.vb (2)
27Return TestInRegularAndScriptAsync(code, expected, options:=[Option](opt, True, notification)) 36New TestParameters(options:=[Option](opt, True, notification)))
QualifyMemberAccessTests_FixAllTests.vb (1)
83options:=[Option](CodeStyleOptions2.QualifyPropertyAccess, True, NotificationOption2.Suggestion))
SimplifyTypeNames\SimplifyTypeNamesTests.vb (7)
2136Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, False, NotificationOption2.Error))) 2150Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, False, NotificationOption2.Error))) 2164Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInDeclaration, False, NotificationOption2.Error))) 2243Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, False, NotificationOption2.Error))) 2257Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, False, NotificationOption2.Error))) 2269Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, False, NotificationOption2.Error))) 2300Await TestMissingInRegularAndScriptAsync(source.Value, New TestParameters(options:=[Option](CodeStyleOptions2.PreferIntrinsicPredefinedTypeKeywordInMemberAccess, False, NotificationOption2.Error)))