266 references to Add
AnalyzerRunner (2)
Microsoft.Build.Engine.UnitTests (1)
Microsoft.CodeAnalysis (5)
Microsoft.CodeAnalysis.CodeStyle (35)
src\Analyzers\Core\Analyzers\SimplifyBooleanExpression\AbstractSimplifyConditionalDiagnosticAnalyzer.cs (11)
29= s_takeCondition.Add(Negate, Negate);
31= s_takeCondition.Add(Or, Or).Add(WhenFalse, WhenFalse);
33= s_negateCondition.Add(And, And).Add(WhenFalse, WhenFalse);
35= s_negateCondition.Add(Or, Or).Add(WhenTrue, WhenTrue);
37= s_takeCondition.Add(And, And).Add(WhenTrue, WhenTrue);
39= s_takeCondition.Add(And, And).Add(WhenFalse, WhenFalse);
Microsoft.CodeAnalysis.CSharp.CodeStyle (15)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (15)
Attributes\AttributeTests_WellKnownAttributes.cs (6)
8807verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Warn)),
8813verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Error)),
8819verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Hidden)),
8825verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("TEST1", ReportDiagnostic.Suppress)));
8828verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("CS0618", ReportDiagnostic.Error)),
8834verify(TestOptions.DebugDll.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add("CS0618", ReportDiagnostic.Suppress)),
Diagnostics\DiagnosticAnalyzerTests.cs (5)
1508var analyzerConfigOptions = new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty.Add("generated_code", "true"));
1516analyzerConfigOptions = new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty.Add("generated_code", "TRUE"));
1522analyzerConfigOptions = new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty.Add("generated_code", "false"));
1528analyzerConfigOptions = new DictionaryAnalyzerConfigOptions(ImmutableDictionary<string, string>.Empty.Add("generated_code", "auto"));
4195.WithSpecificDiagnosticOptions(ImmutableDictionary<string, ReportDiagnostic>.Empty.Add(AnalyzerWithDisabledRules.Rule.Id, ReportDiagnostic.Warn))
Microsoft.CodeAnalysis.CSharp.Features (15)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (3)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (17)
Collections\Immutable\Maps\MapTests.cs (16)
21var map = ImmutableDictionary.Create<string, int>().Add("1", 1);
39.Add("1", 1)
40.Add("2", 2)
41.Add("3", 3)
42.Add("4", 4)
43.Add("5", 5);
54.Add("1", 1)
55.Add("2", 2)
56.Add("3", 3)
57.Add("4", 4)
58.Add("5", 5);
86.Add("1", 1)
87.Add("2", 2)
88.Add("3", 3)
89.Add("4", 4)
90.Add("5", 5);
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.Features (42)
src\Analyzers\Core\Analyzers\SimplifyBooleanExpression\AbstractSimplifyConditionalDiagnosticAnalyzer.cs (11)
29= s_takeCondition.Add(Negate, Negate);
31= s_takeCondition.Add(Or, Or).Add(WhenFalse, WhenFalse);
33= s_negateCondition.Add(And, And).Add(WhenFalse, WhenFalse);
35= s_negateCondition.Add(Or, Or).Add(WhenTrue, WhenTrue);
37= s_takeCondition.Add(And, And).Add(WhenTrue, WhenTrue);
39= s_takeCondition.Add(And, And).Add(WhenFalse, WhenFalse);
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (3)
Microsoft.CodeAnalysis.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic (3)
Microsoft.CodeAnalysis.Workspaces (10)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (5)
Microsoft.CodeAnalysis.Workspaces.UnitTests (39)
UtilityTest\ImmutableDictionaryExtensionsTests.cs (26)
19Assert.False(empty.KeysEqual(empty.Add(1, 1)));
20Assert.False(empty.Add(1, 1).KeysEqual(empty));
22Assert.True(empty.Add(1, 1).KeysEqual(empty.Add(1, 1)));
23Assert.True(empty.Add(1, 2).KeysEqual(empty.Add(1, 1)));
25Assert.True(empty.Add(2, 0).Add(1, 0).KeysEqual(empty.Add(1, 1).Add(2, 1)));
26Assert.False(empty.Add(2, 0).Add(3, 0).KeysEqual(empty.Add(1, 1).Add(2, 1)));
35Assert.True(emptyIgnoreCase.Add("A", 1).KeysEqual(emptyIgnoreCase.Add("a", 1)));
36Assert.False(emptyIgnoreCase.Add("A", 1).KeysEqual(emptyOrdinal.Add("a", 1)));
37Assert.False(emptyOrdinal.Add("A", 1).KeysEqual(emptyIgnoreCase.Add("a", 1)));
38Assert.False(emptyOrdinal.Add("A", 1).KeysEqual(emptyOrdinal.Add("a", 1)));
40Assert.True(emptyIgnoreCase.Add("A", 1).KeysEqual(emptyOrdinal.Add("A", 1)));
41Assert.True(emptyOrdinal.Add("A", 1).KeysEqual(emptyIgnoreCase.Add("A", 1)));
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.LibraryImportGenerator (3)
Microsoft.Interop.SourceGeneration (5)
SafeHandleMarshallingInfoProvider.cs (1)
80.Add(
Microsoft.ML.InternalCodeAnalyzer (2)
Microsoft.VisualStudio.LanguageServices (7)
Microsoft.VisualStudio.LanguageServices.LiveShare (2)
Microsoft.VisualStudio.LanguageServices.UnitTests (2)
Mvc.Api.Analyzers.Test (1)
Roslyn.Compilers.Extension (1)
Roslyn.VisualStudio.Next.UnitTests (9)
System.Collections.Immutable (1)