8 references to WithIsExplicitlySpecified
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (3)
src\Analyzers\CSharp\Tests\UseExpressionBody\UseExpressionBodyForMethodsAnalyzerTests.cs (3)
68
Assert.Equal(NotificationOption2.Error.
WithIsExplicitlySpecified
(true), option.Notification);
72
Assert.Equal(NotificationOption2.Warning.
WithIsExplicitlySpecified
(true), option.Notification);
76
Assert.Equal(NotificationOption2.Suggestion.
WithIsExplicitlySpecified
(true), option.Notification);
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\CodeStyle\CodeStyleHelpers.cs (1)
85
notification = localNotification.
WithIsExplicitlySpecified
(true);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\DiagnosticSeverityExtensions.cs (1)
22
return notificationOption.
WithIsExplicitlySpecified
(isOverridenSeverity);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ReportDiagnosticExtensions.cs (1)
38
return notificationOption.
WithIsExplicitlySpecified
(isNonDefault);
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Options\DocumentOptionSetTests.cs (1)
32
var internalCodeStyleOption = new CodeStyleOption2<bool>(true, NotificationOption2.Warning.
WithIsExplicitlySpecified
(true));
Options\OptionKeyTests.cs (1)
172
Assert.Equal(new CodeStyleOption2<bool>(true, NotificationOption2.Suggestion.
WithIsExplicitlySpecified
(true)), result);