27 types derived from HashSet
GenerateDocumentationAndConfigFiles (1)
illink (1)
ILLink.RoslynAnalyzer (1)
Metrics (1)
Metrics.Legacy (1)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.AnalyzerUtilities (1)
Microsoft.CodeAnalysis.BannedApiAnalyzers (1)
Microsoft.CodeAnalysis.CodeStyle (1)
Microsoft.CodeAnalysis.Collections.Package (1)
Microsoft.CodeAnalysis.Debugging.Package (1)
Microsoft.CodeAnalysis.Extensions.Package (1)
Microsoft.CodeAnalysis.InteractiveHost (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
Microsoft.CodeAnalysis.PooledObjects.Package (1)
Microsoft.CodeAnalysis.PublicApiAnalyzers (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (1)
Microsoft.CodeAnalysis.Threading.Package (1)
Microsoft.CodeAnalysis.Workspaces (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.DotNet.XUnitAssert.Tests (2)
Roslyn.Diagnostics.Analyzers (1)
Test.Utilities (1)
Text.Analyzers (1)
2051 instantiations of HashSet
AnalyzerRunner (3)
aspire (1)
Aspire.Dashboard (10)
Aspire.Hosting (8)
Aspire.Hosting.Azure (1)
Aspire.Hosting.Azure.AppContainers (1)
Aspire.Hosting.Azure.ContainerRegistry (1)
Aspire.Hosting.Azure.CosmosDB (1)
Aspire.Hosting.Azure.PostgreSQL (1)
Aspire.Hosting.Azure.Redis (1)
Aspire.Hosting.Azure.Sql (1)
Aspire.Hosting.Docker (3)
Aspire.Hosting.Kubernetes (2)
Aspire.Hosting.Sdk.Tests (2)
Aspire.Hosting.Testing.Tests (1)
Aspire.Hosting.Tests (4)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.Playground.Tests (2)
Aspire.RuntimeIdentifier.Tool (2)
Aspire.Templates.Tests (1)
StarterTemplateRunTestsBase.cs (1)
141r => Assert.Contains(r, new HashSet<string> { "Freezing", "Bracing", "Chilly", "Cool", "Mild", "Warm", "Balmy", "Hot", "Sweltering", "Scorching" }));
BoundTreeGenerator (1)
BuildActionTelemetryTable (1)
BuildBoss (5)
BuildValidator (1)
CodeGenerator (1)
ConfigurationSchemaGenerator (1)
Crossgen2Tasks (3)
CSharpSyntaxGenerator (2)
dotnet-dev-certs (1)
dotnet-svcutil-lib (8)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (1)
35private static readonly HashSet<char> s_InvalidSeparatorSet = new HashSet<char>(new char[] { '(', ')', '<', '>', '@', ',', ';', ':', '\\', '"', '/', '[', ']', '?', '=', '{', '}', ' ' });
dotnet-user-jwts (1)
GenerateDocumentationAndConfigFiles (29)
illink (48)
ILLink.RoslynAnalyzer (4)
ILLink.Tasks (4)
Infrastructure.Common (2)
InMemory.FunctionalTests (1)
installer.tasks (2)
Interop.FunctionalTests (1)
InteropTests (1)
IOperationGenerator (2)
KeyManagementSimulator (1)
Metrics (23)
Metrics.Legacy (23)
Microsoft.Analyzers.Extra (3)
Microsoft.Analyzers.Extra.Tests (3)
Microsoft.Analyzers.Local (3)
Microsoft.Arcade.Test.Common (3)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.Analyzers.Test (1)
Microsoft.AspNetCore.App.Analyzers (4)
Microsoft.AspNetCore.App.UnitTests (1)
Microsoft.AspNetCore.Authentication.Facebook (1)
Microsoft.AspNetCore.Authentication.Negotiate (1)
Microsoft.AspNetCore.Authentication.OAuth (1)
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
Microsoft.AspNetCore.Authorization (1)
Microsoft.AspNetCore.BrowserTesting (2)
Microsoft.AspNetCore.Components (11)
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Microsoft.AspNetCore.Components.Authorization.Tests (1)
Microsoft.AspNetCore.Components.Endpoints (5)
Microsoft.AspNetCore.Components.Endpoints.Tests (4)
Binding\FormDataMapperTests.cs (3)
657var expected = new HashSet<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
681var expected = new HashSet<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
729var expected = new HashSet<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
Microsoft.AspNetCore.Components.Forms (1)
Microsoft.AspNetCore.Components.Forms.Tests (1)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Components.Tests (4)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.Components.Web.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly (2)
Microsoft.AspNetCore.Components.WebView (2)
Microsoft.AspNetCore.DataProtection (2)
Microsoft.AspNetCore.DataProtection.Tests (3)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (1)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Microsoft.AspNetCore.Grpc.Swagger (2)
Microsoft.AspNetCore.Hosting (5)
Microsoft.AspNetCore.Http.Extensions (1)
Microsoft.AspNetCore.Http.Results.Tests (2)
Microsoft.AspNetCore.HttpLogging (2)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.Mvc.Analyzers (1)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
Microsoft.AspNetCore.Mvc.Core (9)
Microsoft.AspNetCore.Mvc.Core.Test (25)
ModelBinding\Metadata\DefaultModelMetadataTest.cs (19)
997var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1015var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1031var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1045var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1059var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1084var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1111var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1135var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1162var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1203var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1246var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1275var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1318var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1363var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1404var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1454var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1499var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1544var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
1587var result = DefaultModelMetadata.CalculateHasValidators(new HashSet<DefaultModelMetadata>(), modelMetadata);
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
Microsoft.AspNetCore.Mvc.Razor (4)
Microsoft.AspNetCore.Mvc.Razor.Test (2)
Microsoft.AspNetCore.Mvc.RazorPages (3)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.TagHelpers.Test (21)
OptionTagHelperTest.cs (21)
52null, null, "value", new HashSet<string>(),
62null, null, "value", new HashSet<string>(new [] { string.Empty, }),
72null, string.Empty, "value", new HashSet<string>(new [] { string.Empty, }),
82null, null, "value", new HashSet<string>(new [] { "value", }),
92null, null, "value", new HashSet<string>(new [] { string.Empty, "value", }),
132string.Empty, null, null, new HashSet<string>(),
142string.Empty, null, null, new HashSet<string>(new [] { string.Empty, }),
153new HashSet<string>(new [] { string.Empty, }),
163string.Empty, null, null, new HashSet<string>(new [] { "text", }),
174new HashSet<string>(new [] { string.Empty, "text", }),
214"text", null, null, new HashSet<string>(),
224"text", null, null, new HashSet<string>(new [] { string.Empty, }),
234"HtmlEncode[[text]]", null, null, new HashSet<string>(new [] { "text", }),
244"text", string.Empty, null, new HashSet<string>(new [] { "text", }),
255new HashSet<string>(new [] { string.Empty, "text", }),
285"text", null, "value", new HashSet<string>(),
295"text", null, "value", new HashSet<string>(new [] { string.Empty, }),
306new HashSet<string>(new [] { string.Empty, }),
316"text", null, "value", new HashSet<string>(new [] { "text", }),
326"text", null, "value", new HashSet<string>(new [] { "value", }),
337new HashSet<string>(new [] { string.Empty, "value", }),
Microsoft.AspNetCore.Mvc.ViewFeatures (7)
Microsoft.AspNetCore.OpenApi (8)
Microsoft.AspNetCore.OpenApi.SourceGenerators (3)
Microsoft.AspNetCore.OpenApi.Tests (1)
Microsoft.AspNetCore.OutputCaching (2)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
Microsoft.AspNetCore.OutputCaching.Tests (1)
Microsoft.AspNetCore.Owin (1)
Microsoft.AspNetCore.RateLimiting (1)
Microsoft.AspNetCore.ResponseCompression (3)
Microsoft.AspNetCore.Routing (8)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.AspNetCore.Server.Kestrel.Core (6)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (1)
Microsoft.AspNetCore.SignalR.Tests (3)
Microsoft.AspNetCore.SpaServices.Extensions (3)
Microsoft.Build.Framework (5)
Microsoft.Cci.Extensions (24)
Microsoft.CodeAnalysis (52)
Microsoft.CodeAnalysis.Analyzers (30)
Microsoft.CodeAnalysis.AnalyzerUtilities (24)
Microsoft.CodeAnalysis.BannedApiAnalyzers (29)
Microsoft.CodeAnalysis.CodeStyle (21)
Microsoft.CodeAnalysis.CodeStyle.Fixes (11)
Microsoft.CodeAnalysis.Collections.Package (8)
Microsoft.CodeAnalysis.CSharp (88)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (18)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (19)
Microsoft.CodeAnalysis.CSharp.Features (67)
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (14)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (16)
Microsoft.CodeAnalysis.EditorFeatures (4)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (15)
Utilities\BloomFilterTests.cs (11)
48var strings = new HashSet<string>(GenerateStrings(2000).Skip(500).Take(1000), comparer);
211new HashSet<string>(GenerateStrings(1_000), comparer),
212new HashSet<string>(GenerateStrings(1_000).Where((s, i) => i % 1 == 0), comparer),
213new HashSet<string>(GenerateStrings(1_000).Where((s, i) => i % 1 == 1), comparer),
214new HashSet<string>(GenerateStrings(10_000), comparer),
215new HashSet<string>(GenerateStrings(10_000).Where((s, i) => i % 1 == 0), comparer),
216new HashSet<string>(GenerateStrings(10_000).Where((s, i) => i % 1 == 1), comparer),
217new HashSet<string>(GenerateStrings(100_000), comparer),
218new HashSet<string>(GenerateStrings(100_000).Where((s, i) => i % 1 == 0), comparer),
219new HashSet<string>(GenerateStrings(100_000).Where((s, i) => i % 1 == 1), comparer),
277var result = new HashSet<long>();
Microsoft.CodeAnalysis.Extensions.Package (9)
Microsoft.CodeAnalysis.Features (46)
Microsoft.CodeAnalysis.Features.UnitTests (3)
Microsoft.CodeAnalysis.InteractiveHost (9)
Microsoft.CodeAnalysis.LanguageServer (3)
Microsoft.CodeAnalysis.LanguageServer.Protocol (3)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (29)
Microsoft.CodeAnalysis.PublicApiAnalyzers (24)
Microsoft.CodeAnalysis.Remote.ServiceHub (9)
Microsoft.CodeAnalysis.ResxSourceGenerator (24)
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (2)
Microsoft.CodeAnalysis.Scripting (2)
Microsoft.CodeAnalysis.Test.Utilities (24)
Microsoft.CodeAnalysis.Threading.Package (8)
Microsoft.CodeAnalysis.UnitTests (28)
Microsoft.CodeAnalysis.VisualBasic (46)
Microsoft.CodeAnalysis.Workspaces (47)
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (11)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (8)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (1)
Microsoft.CodeAnalysis.Workspaces.UnitTests (8)
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
Microsoft.CSharp (5)
Microsoft.Data.Analysis (6)
Microsoft.Data.Analysis.Tests (4)
Microsoft.DotNet.ArcadeLogging (2)
Microsoft.DotNet.Build.Manifest (1)
Microsoft.DotNet.Build.Tasks.Feed (7)
Microsoft.DotNet.Build.Tasks.Feed.Tests (6)
Microsoft.DotNet.Build.Tasks.Installers (1)
Microsoft.DotNet.Build.Tasks.Packaging (24)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
Microsoft.DotNet.Build.Tasks.Workloads (5)
Microsoft.DotNet.CodeAnalysis (2)
Microsoft.DotNet.GenFacades (4)
Microsoft.DotNet.Helix.JobSender (1)
Microsoft.DotNet.Helix.Sdk (3)
Microsoft.DotNet.NuGetRepack.Tests (2)
Microsoft.DotNet.Open.Api.Tools.Tests (1)
Microsoft.DotNet.PackageTesting (4)
Microsoft.DotNet.SharedFramework.Sdk (5)
Microsoft.DotNet.SignCheckLibrary (1)
Microsoft.DotNet.SignTool (7)
Microsoft.DotNet.SignTool.Tests (1)
Microsoft.DotNet.SourceBuild.Tasks (2)
Microsoft.DotNet.XliffTasks (4)
Microsoft.DotNet.XUnitAssert.Tests (101)
CollectionAssertsTests.cs (28)
329 IEnumerable<string> set = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "Hi there" };
367 IEnumerable<string> set = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "Hi there" };
548 IEnumerable<string> set = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "Hi there" };
604 IEnumerable<string> set = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "Hi there" };
1498 var expected = new HashSet<int> { 42, 2112 };
1499 var actual = new HashSet<int> { 2112, 42 };
1512 var expected = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
1513 var actual = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
1525 var expected = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
1526 var actual = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
1534 var expected = new HashSet<int> { 42, 2112 };
1535 var actual = new HashSet<int> { 2600, 42 };
1552 var expected = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
1553 var actual = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, true }) };
1569 var expected = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
1570 var actual = new HashSet<BitArray> { new BitArray(new[] { true, true }) };
2165 var expected = new HashSet<int> { 42, 2112 };
2166 var actual = new HashSet<int> { 2112, 42 };
2187 var expected = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
2188 var actual = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
2208 var expected = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
2209 var actual = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
2225 var expected = new HashSet<int> { 42, 2112 };
2226 var actual = new HashSet<int> { 2600, 42 };
2235 var expected = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
2236 var actual = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, true }) };
2244 var expected = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
2245 var actual = new HashSet<BitArray> { new BitArray(new[] { true, true }) };
EqualityAssertsTests.cs (36)
1221 var expected = new HashSet<int> { 1, 2, 3 };
1222 var actual = new HashSet<int> { 1, 2, 3 };
1230 var expected = new HashSet<int> { 1, 2, 3 };
1231 var actual = new HashSet<int> { 1, 2, 4 };
1247 var expected = new HashSet<int> { 1, 2, 3 };
1248 var actual = new HashSet<int> { 2, 3, 1 };
1256 var expected = new HashSet<int> { 1, 2, 3 };
1257 var actual = new HashSet<int> { 2, 4, 1 };
1273 var expected = new HashSet<int> { 1, 2, 3 };
1274 var actual = new HashSet<int> { 1, 2 };
1290 var expected = new HashSet<int> { 1, 2 };
1291 var actual = new HashSet<int> { 1, 2, 3 };
1307 var expected = new HashSet<string> { "bar", "foo" };
1320 object expected = new HashSet<int> { 42 };
1321 object actual = new HashSet<long> { 42L };
1341 var expected = new HashSet<string> { "bar" };
1342 var actual = new HashSet<string> { "baz" };
1466 var actual = new HashSet<string> { "bar" };
1479 var actual = new HashSet<string> { "baz" };
1548 var actual = new HashSet<string> { "baz" };
3450 var expected = new HashSet<int> { 1, 2, 3 };
3451 var actual = new HashSet<int> { 1, 2, 3 };
3467 var expected = new HashSet<int> { 1, 2, 3 };
3468 var actual = new HashSet<int> { 1, 2, 4 };
3476 var expected = new HashSet<int> { 1, 2, 3 };
3477 var actual = new HashSet<int> { 2, 3, 1 };
3493 var expected = new HashSet<int> { 1, 2, 3 };
3494 var actual = new HashSet<int> { 2, 4, 1 };
3502 var expected = new HashSet<string> { "bar", "foo" };
3527 object expected = new HashSet<int> { 42 };
3528 object actual = new HashSet<long> { 42L };
3540 var expected = new HashSet<string> { "bar" };
3541 var actual = new HashSet<string> { "baz" };
3652 var actual = new HashSet<string> { "bar" };
3678 var actual = new HashSet<string> { "baz" };
3734 var actual = new HashSet<string> { "baz" };
SetAssertsTests.cs (36)
17 var set = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "forty-two" };
34 var set = new HashSet<string>() { "eleventeen" };
67 var set = new HashSet<string>() { "eleventeen" };
84 var set = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "forty-two" };
117 Assert.Throws<ArgumentNullException>("expectedSubset", () => Assert.ProperSubset(null!, new HashSet<int>()));
123 var expectedSubset = new HashSet<int> { 1, 2, 3 };
124 var actual = new HashSet<int> { 1, 2, 3 };
140 var expectedSubset = new HashSet<int> { 1, 2, 3, 4 };
141 var actual = new HashSet<int> { 1, 2, 3 };
149 var expectedSubset = new HashSet<int> { 1, 2, 3 };
150 var actual = new HashSet<int> { 1, 2, 7 };
166 var ex = Record.Exception(() => Assert.ProperSubset(new HashSet<int>(), null));
183 Assert.Throws<ArgumentNullException>("expectedSuperset", () => Assert.ProperSuperset(null!, new HashSet<int>()));
189 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
190 var actual = new HashSet<int> { 1, 2, 3 };
206 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
207 var actual = new HashSet<int> { 1, 2, 3, 4 };
215 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
216 var actual = new HashSet<int> { 1, 2, 7 };
232 var ex = Record.Exception(() => Assert.ProperSuperset(new HashSet<int>(), null));
249 Assert.Throws<ArgumentNullException>("expectedSubset", () => Assert.Subset(null!, new HashSet<int>()));
255 var expectedSubset = new HashSet<int> { 1, 2, 3 };
256 var actual = new HashSet<int> { 1, 2, 3 };
264 var expectedSubset = new HashSet<int> { 1, 2, 3, 4 };
265 var actual = new HashSet<int> { 1, 2, 3 };
273 var expectedSubset = new HashSet<int> { 1, 2, 3 };
274 var actual = new HashSet<int> { 1, 2, 7 };
290 var ex = Record.Exception(() => Assert.Subset(new HashSet<int>(), null));
307 Assert.Throws<ArgumentNullException>("expectedSuperset", () => Assert.Superset(null!, new HashSet<int>()));
313 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
314 var actual = new HashSet<int> { 1, 2, 3 };
322 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
323 var actual = new HashSet<int> { 1, 2, 3, 4 };
331 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
332 var actual = new HashSet<int> { 1, 2, 7 };
347 var ex = Record.Exception(() => Assert.Superset(new HashSet<int>(), null));
Microsoft.Extensions.AI.Evaluation (2)
Microsoft.Extensions.AI.Evaluation.Console (1)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (2)
Microsoft.Extensions.AI.Evaluation.Quality (3)
Microsoft.Extensions.ApiDescription.Client (3)
Microsoft.Extensions.ApiDescription.Client.Tests (1)
Microsoft.Extensions.AsyncState (1)
Microsoft.Extensions.Compliance.Abstractions (2)
Microsoft.Extensions.Compliance.Testing.Tests (2)
Microsoft.Extensions.Configuration.Binder (2)
Microsoft.Extensions.DependencyInjection (2)
Microsoft.Extensions.DependencyModel (1)
Microsoft.Extensions.Diagnostics.HealthChecks (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Abstractions (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (10)
Microsoft.Extensions.Diagnostics.Testing (2)
Microsoft.Extensions.Diagnostics.Testing.Tests (2)
Microsoft.Extensions.FileProviders.Composite (1)
Microsoft.Extensions.FileSystemGlobbing (3)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Http.Diagnostics (2)
Microsoft.Extensions.Http.Diagnostics.Tests (53)
Logging\HttpClientLoggerTest.cs (12)
206ResponseBodyContentTypes = new HashSet<string> { TextPlain },
207RequestBodyContentTypes = new HashSet<string> { TextPlain },
298ResponseBodyContentTypes = new HashSet<string> { TextPlain },
299RequestBodyContentTypes = new HashSet<string> { TextPlain },
405ResponseBodyContentTypes = new HashSet<string> { TextPlain },
406RequestBodyContentTypes = new HashSet<string> { TextPlain },
501ResponseBodyContentTypes = new HashSet<string> { TextPlain },
502RequestBodyContentTypes = new HashSet<string> { TextPlain },
615ResponseBodyContentTypes = new HashSet<string> { TextPlain },
616RequestBodyContentTypes = new HashSet<string> { TextPlain },
885ResponseBodyContentTypes = new HashSet<string> { TextPlain },
886RequestBodyContentTypes = new HashSet<string> { TextPlain },
Logging\HttpRequestReaderTest.cs (15)
63RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
64ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
127RequestBodyContentTypes = new HashSet<string> { PlainTextMedia },
128ResponseBodyContentTypes = new HashSet<string> { PlainTextMedia },
189RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
190ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
263RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
264ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
336RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
394RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
395ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
465RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
466ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
532RequestBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
533ResponseBodyContentTypes = new HashSet<string> { MediaTypeNames.Text.Plain },
Microsoft.Extensions.Http.Resilience (1)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.Localization (1)
Microsoft.Extensions.Logging.Generators (4)
Microsoft.Extensions.Options.DataAnnotations (2)
Microsoft.Extensions.Options.SourceGeneration (3)
Microsoft.Extensions.ServiceDiscovery (1)
Microsoft.Extensions.Telemetry (2)
Microsoft.Extensions.Telemetry.Abstractions (1)
Microsoft.Extensions.Validation.ValidationsGenerator (3)
Microsoft.Gen.ComplianceReports (1)
Microsoft.Gen.ContextualOptions (1)
Microsoft.Gen.Logging (13)
Microsoft.Gen.Logging.Unit.Tests (2)
Microsoft.Gen.MetadataExtractor (5)
Microsoft.Gen.Metrics (5)
Microsoft.Gen.MetricsReports (5)
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.LibraryImportGenerator (3)
Microsoft.Maui (4)
Microsoft.Maui.Controls (9)
Microsoft.Maui.Controls.Build.Tasks (1)
Microsoft.Maui.Controls.DesignTools (2)
Microsoft.ML.AutoML (16)
Microsoft.ML.CodeGenerator (7)
Microsoft.ML.Core (6)
Microsoft.ML.Core.Tests (7)
Microsoft.ML.Data (33)
Microsoft.ML.Ensemble (2)
Microsoft.ML.EntryPoints (2)
Microsoft.ML.FastTree (4)
Microsoft.ML.IntegrationTests (1)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.OnnxConverter (11)
Microsoft.ML.OnnxTransformer (1)
Microsoft.ML.Predictor.Tests (1)
Microsoft.ML.ResultProcessor (2)
Microsoft.ML.StandardTrainers (1)
Microsoft.ML.Sweeper (5)
Microsoft.ML.TensorFlow (1)
Microsoft.ML.TestFramework (2)
Microsoft.ML.Tests (5)
Microsoft.ML.TimeSeries (1)
Microsoft.ML.Tokenizers (1)
Microsoft.ML.TorchSharp (6)
Microsoft.ML.Transforms (5)
Microsoft.ML.Vision (1)
Microsoft.VisualStudio.LanguageServices (8)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Mvc.Analyzers.Test (1)
PresentationBuildTasks (2)
PresentationCore (5)
PresentationFramework (5)
Replay (2)
Roslyn.Diagnostics.Analyzers (29)
Roslyn.Diagnostics.CSharp.Analyzers (16)
Roslyn.VisualStudio.DiagnosticsWindow (1)
Roslyn.VisualStudio.Next.UnitTests (2)
RulesetToEditorconfigConverter (1)
RunTests (2)
Shared (1)
Shared.Tests (3)
SocialWeather (1)
System.CodeDom (1)
System.Collections.Immutable (8)
System.ComponentModel.Annotations (2)
System.ComponentModel.Composition (7)
System.ComponentModel.TypeConverter (2)
System.Composition.Hosting (1)
System.Data.Common (2)
System.Diagnostics.DiagnosticSource (2)
System.Formats.Cbor (2)
System.IO.Packaging (2)
System.Linq (13)
System.Linq.AsyncEnumerable (13)
System.Linq.Expressions (17)
System.Linq.Parallel (5)
System.Net.HttpListener (1)
System.Private.CoreLib (8)
System.Private.CoreLib.Generators (6)
System.Private.DataContractSerialization (4)
System.Private.Windows.Core (1)
System.Private.Xml (8)
System.Private.Xml.Linq (1)
System.Reflection.DispatchProxy (1)
System.Reflection.Emit (2)
System.Reflection.MetadataLoadContext (1)
System.Runtime.Serialization.Schema (1)
System.Security.Cryptography.Pkcs (1)
System.ServiceModel.Syndication (1)
System.Text.Json (3)
System.Text.Json.SourceGeneration (3)
System.Text.RegularExpressions (11)
System.Text.RegularExpressions.Generator (12)
System.Windows.Controls.Ribbon (1)
System.Windows.Forms (2)
System.Windows.Forms.Design (2)
System.Windows.Forms.Design.Tests (1)
System.Windows.Forms.PrivateSourceGenerators (1)
System.Windows.Forms.Tests (1)
System.Windows.Input.Manipulations (1)
System.Xaml (10)
TaskUsageLogger (3)
Templates.Blazor.Tests (2)
Templates.Blazor.WebAssembly.Auth.Tests (2)
Templates.Blazor.WebAssembly.Tests (2)
Templates.Mvc.Tests (2)
Templates.Tests (2)
Test.Utilities (21)
TestDiscoveryWorker (1)
Text.Analyzers (31)
xunit.assert (10)
3833 references to HashSet
AnalyzerRunner (3)
aspire (1)
Aspire.Dashboard (13)
Aspire.Hosting (14)
Aspire.Hosting.Azure (9)
AzureResourcePreparer.cs (8)
106var globalRoleAssignments = new Dictionary<AzureProvisioningResource, HashSet<RoleDefinition>>();
142var azureReferences = await GetAzureReferences(resource, cancellationToken).ConfigureAwait(false);
362private async Task<HashSet<IAzureResource>> GetAzureReferences(IResource resource, CancellationToken cancellationToken)
364HashSet<IAzureResource> azureReferences = [];
399private static void ProcessAzureReferences(HashSet<IAzureResource> azureReferences, object value)
465private static void AppendGlobalRoleAssignments(Dictionary<AzureProvisioningResource, HashSet<RoleDefinition>> globalRoleAssignments, AzureProvisioningResource azureResource, IEnumerable<RoleDefinition> newRoles)
467if (!globalRoleAssignments.TryGetValue(azureResource, out var existingRoles))
476private void CreateGlobalRoleAssignments(DistributedApplicationModel appModel, Dictionary<AzureProvisioningResource, HashSet<RoleDefinition>> globalRoleAssignments, AzureProvisioningOptions provisioningOptions)
Aspire.Hosting.Azure.AIFoundry (1)
Aspire.Hosting.Azure.AppConfiguration (1)
Aspire.Hosting.Azure.AppContainers (2)
Aspire.Hosting.Azure.CognitiveServices (1)
Aspire.Hosting.Azure.ContainerRegistry (1)
Aspire.Hosting.Azure.EventHubs (1)
Aspire.Hosting.Azure.Functions (1)
Aspire.Hosting.Azure.KeyVault (1)
Aspire.Hosting.Azure.Search (1)
Aspire.Hosting.Azure.ServiceBus (1)
Aspire.Hosting.Azure.SignalR (1)
Aspire.Hosting.Azure.Storage (1)
Aspire.Hosting.Azure.WebPubSub (1)
Aspire.Hosting.Docker (5)
Aspire.Hosting.Kubernetes (2)
Aspire.Hosting.Sdk.Tests (2)
Aspire.Hosting.Testing.Tests (1)
Aspire.Hosting.Tests (4)
Aspire.Microsoft.Data.SqlClient (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.Playground.Tests (2)
Aspire.RuntimeIdentifier.Tool (2)
Aspire.Templates.Tests (1)
BoundTreeGenerator (1)
BuildBoss (7)
BuildValidator (1)
CodeGenerator (1)
ConfigurationSchemaGenerator (5)
Crossgen2Tasks (5)
CSharpSyntaxGenerator (2)
dotnet-dev-certs (3)
dotnet-svcutil-lib (11)
FrameworkFork\System.Runtime.Serialization\System\Runtime\Serialization\DataContract.cs (6)
1286private static bool IsTypeSerializable(Type type, HashSet<Type> previousCollectionTypes)
1313private static void ValidatePreviousCollectionTypes(Type collectionType, Type itemType, HashSet<Type> previousCollectionTypes)
1419internal static XmlQualifiedName GetStableName(Type type, HashSet<Type> previousCollectionTypes, out bool hasDataContract)
1473private static XmlQualifiedName GetNonDCTypeStableName(Type type, HashSet<Type> previousCollectionTypes)
1498private static bool TryGetBuiltInXmlAndArrayTypeStableName(Type type, HashSet<Type> previousCollectionTypes, out XmlQualifiedName stableName)
1577internal static XmlQualifiedName GetCollectionStableName(Type type, Type itemType, HashSet<Type> previousCollectionTypes, out CollectionDataContractAttribute collectionContractAttribute)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\WebSocketHelper.cs (1)
35private static readonly HashSet<char> s_InvalidSeparatorSet = new HashSet<char>(new char[] { '(', ')', '<', '>', '@', ',', ';', ':', '\\', '"', '/', '[', ']', '?', '=', '{', '}', ' ' });
dotnet-user-jwts (1)
GenerateDocumentationAndConfigFiles (71)
illink (75)
ILLink.RoslynAnalyzer (4)
ILLink.Tasks (6)
Infrastructure.Common (3)
InMemory.FunctionalTests (1)
installer.tasks (2)
Interop.FunctionalTests (1)
InteropTests (1)
IOperationGenerator (2)
KeyManagementSimulator (2)
Metrics (58)
Metrics.Legacy (58)
Microsoft.Analyzers.Extra (5)
Microsoft.Analyzers.Extra.Tests (1)
Microsoft.Analyzers.Local (9)
Microsoft.Arcade.Test.Common (3)
Microsoft.AspNetCore.Analyzer.Testing (1)
Microsoft.AspNetCore.Analyzers.Test (1)
Microsoft.AspNetCore.App.Analyzers (6)
Microsoft.AspNetCore.App.UnitTests (22)
Microsoft.AspNetCore.Authentication.Core (1)
Microsoft.AspNetCore.Authentication.Negotiate (1)
Microsoft.AspNetCore.Authorization (1)
Microsoft.AspNetCore.BrowserTesting (8)
BrowserManagerConfiguration.cs (8)
216private static T BindMultiValueMap<T>(IConfigurationSection processArgsMap, Func<Dictionary<string, HashSet<string>>, T> mapper)
233return mapper(new Dictionary<string, HashSet<string>>());
235var argsMap = new Dictionary<string, HashSet<string>>();
247var argValues = InitializeMapValue(argsMap, argName);
264var argValue = InitializeMapValue(argsMap, argName);
284static HashSet<string> InitializeMapValue(Dictionary<string, HashSet<string>> argsMap, string argName)
286if (!argsMap.TryGetValue(argName, out var argValue))
Microsoft.AspNetCore.Components (20)
Microsoft.AspNetCore.Components.Analyzers.Tests (1)
Microsoft.AspNetCore.Components.Authorization.Tests (1)
Microsoft.AspNetCore.Components.Endpoints (18)
Microsoft.AspNetCore.Components.Endpoints.Tests (8)
Binding\FormDataMapperTests.cs (7)
657var expected = new HashSet<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
658CanDeserialize_Collection<IReadOnlySet<int>, HashSet<int>, int>(expected);
681var expected = new HashSet<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
682CanDeserialize_Collection<ISet<int>, HashSet<int>, int>(expected);
729var expected = new HashSet<int> { 10, 11, 12, 13, 14, 15, 16, 17, 18, 19 };
730CanDeserialize_Collection<HashSet<int>, HashSet<int>, int>(expected);
Microsoft.AspNetCore.Components.Forms (1)
Microsoft.AspNetCore.Components.Forms.Tests (1)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (1)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Components.Tests (5)
Microsoft.AspNetCore.Components.Web (1)
Microsoft.AspNetCore.Components.Web.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly (3)
Microsoft.AspNetCore.Components.WebView (4)
Microsoft.AspNetCore.DataProtection (3)
Microsoft.AspNetCore.DataProtection.Tests (3)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (3)
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Microsoft.AspNetCore.Grpc.JsonTranscoding (3)
Microsoft.AspNetCore.Grpc.Swagger (2)
Microsoft.AspNetCore.Hosting (7)
Microsoft.AspNetCore.Http.Extensions (11)
Microsoft.AspNetCore.Http.Results.Tests (2)
Microsoft.AspNetCore.HttpLogging (3)
Microsoft.AspNetCore.InternalTesting (1)
Microsoft.AspNetCore.Mvc.Analyzers (1)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
Microsoft.AspNetCore.Mvc.Core (14)
Microsoft.AspNetCore.Mvc.Core.Test (1)
Microsoft.AspNetCore.Mvc.DataAnnotations.Test (1)
Microsoft.AspNetCore.Mvc.Razor (6)
Microsoft.AspNetCore.Mvc.Razor.Test (2)
Microsoft.AspNetCore.Mvc.RazorPages (2)
Microsoft.AspNetCore.Mvc.TagHelpers (1)
Microsoft.AspNetCore.Mvc.ViewFeatures (6)
Microsoft.AspNetCore.OpenApi (5)
Microsoft.AspNetCore.OpenApi.SourceGenerators (7)
XmlComments\XmlComment.InheritDoc.cs (4)
25private static string? GetDocumentationComment(ISymbol symbol, string xmlText, HashSet<ISymbol>? visitedSymbols, Compilation compilation, CancellationToken cancellationToken)
95private static XNode[] RewriteMany(ISymbol symbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation, XNode[] nodes, CancellationToken cancellationToken)
106private static XNode[] RewriteInheritdocElements(ISymbol symbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation, XNode node, CancellationToken cancellationToken)
142private static XNode[]? RewriteInheritdocElement(ISymbol memberSymbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation, XElement element, CancellationToken cancellationToken)
Microsoft.AspNetCore.OutputCaching (8)
Microsoft.AspNetCore.OutputCaching.Microbenchmarks (1)
Microsoft.AspNetCore.OutputCaching.Tests (3)
Microsoft.AspNetCore.Owin (1)
Microsoft.AspNetCore.RateLimiting (1)
Microsoft.AspNetCore.ResponseCompression (3)
Microsoft.AspNetCore.Routing (7)
Microsoft.AspNetCore.Server.HttpSys (2)
Microsoft.AspNetCore.Server.IIS (2)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.AspNetCore.Server.Kestrel.Core (10)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (1)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (1)
Microsoft.AspNetCore.Shared.Tests (1)
Microsoft.AspNetCore.SignalR.Core (1)
Microsoft.AspNetCore.SignalR.StackExchangeRedis (5)
Microsoft.AspNetCore.SignalR.Tests (3)
Microsoft.AspNetCore.SpaServices.Extensions (3)
Microsoft.Build.Framework (19)
BinaryTranslator.cs (4)
297public void Translate(ref HashSet<string> set)
603public void TranslateDictionary(ref IDictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys)
1106public void Translate(ref HashSet<string> set)
1386public void TranslateDictionary(ref IDictionary<string, string> dictionary, IEqualityComparer<string> comparer, ref Dictionary<string, string> additionalEntries, HashSet<string> additionalEntriesKeys)
Microsoft.Cci.Extensions (21)
Microsoft.CodeAnalysis (105)
DiagnosticAnalyzer\AnalysisResultBuilder.cs (13)
30private readonly HashSet<DiagnosticAnalyzer> _completedAnalyzersForCompilation;
31private readonly Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>> _completedSyntaxAnalyzersByTree;
32private readonly Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>> _completedSemanticAnalyzersByTree;
33private readonly Dictionary<AdditionalText, HashSet<DiagnosticAnalyzer>> _completedSyntaxAnalyzersByAdditionalFile;
46_completedSyntaxAnalyzersByTree = new Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>>();
47_completedSemanticAnalyzersByTree = new Dictionary<SyntaxTree, HashSet<DiagnosticAnalyzer>>();
48_completedSyntaxAnalyzersByAdditionalFile = new Dictionary<AdditionalText, HashSet<DiagnosticAnalyzer>>();
105private HashSet<DiagnosticAnalyzer>? GetCompletedAnalyzersForFile_NoLock(SourceOrAdditionalFile filterFile, bool syntax)
110if (completedAnalyzersByTree.TryGetValue(tree, out var completedAnalyzersForTree))
117if (_completedSyntaxAnalyzersByAdditionalFile.TryGetValue(additionalFile, out var completedAnalyzersForFile))
132var completedAnalyzers = new HashSet<DiagnosticAnalyzer> { analyzer };
166var completedAnalyzersForFile = filterScope.HasValue
218var completedAnalyzersForFile = GetCompletedAnalyzersForFile_NoLock(analysisScope.FilterFileOpt.Value, analysisScope.IsSyntacticSingleFileAnalysis);
DiagnosticAnalyzer\AnalyzerExecutor.cs (2)
919Action<TBlockStartAction, HashSet<TBlockAction>, ExecutionData, TArgs, CancellationToken> addActions,
921Action<HashSet<TBlockAction>, AnalyzerDiagnosticReporter, Func<Diagnostic, CancellationToken, bool>, ExecutionData, TArgs, CancellationToken> executeBlockActions,
Microsoft.CodeAnalysis.Analyzers (80)
Microsoft.CodeAnalysis.AnalyzerUtilities (84)
src\RoslynAnalyzers\Utilities\FlowAnalysis\FlowAnalysis\Analysis\TaintedDataAnalysis\TaintedDataAnalysis.TaintedDataOperationVisitor.cs (11)
59protected override void AddTrackedEntities(TaintedDataAnalysisData analysisData, HashSet<AnalysisEntity> builder, bool forInterproceduralAnalysis)
482HashSet<SymbolAccess>? sourceOrigins = null;
570if (IsMethodArgumentASink(targetMethod, infosForType, taintedArgument, out HashSet<SinkKind>? sinkKinds))
605if (this.IsPropertyASink(propertyReferenceOperation, out HashSet<SinkKind>? sinkKinds))
683private static bool IsMethodArgumentASink(IMethodSymbol method, IEnumerable<SinkInfo> infosForType, IArgumentOperation taintedArgument, [NotNullWhen(returnValue: true)] out HashSet<SinkKind>? sinkKinds)
686Lazy<HashSet<SinkKind>> lazySinkKinds = new Lazy<HashSet<SinkKind>>(() => []);
723/// <param name="sinkKinds">If the property is a sink, <see cref="HashSet{SinkInfo}"/> containing the kinds of sinks; null otherwise.</param>
725private bool IsPropertyASink(IPropertyReferenceOperation propertyReferenceOperation, [NotNullWhen(returnValue: true)] out HashSet<SinkKind>? sinkKinds)
727Lazy<HashSet<SinkKind>> lazySinkKinds = new Lazy<HashSet<SinkKind>>(() => []);
Microsoft.CodeAnalysis.BannedApiAnalyzers (71)
Microsoft.CodeAnalysis.CodeStyle (72)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (11)
56private readonly ObjectPool<HashSet<string>> _fieldNamesPool = new(() => new(semanticFacts.SyntaxFacts.StringComparer));
91SemanticModel semanticModel, IMethodSymbol accessor, HashSet<string> fieldNames, HashSet<IFieldSymbol> result, CancellationToken cancellationToken);
94HashSet<string> fieldNames, ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> ineligibleFieldUsageIfOutsideProperty, SemanticModel semanticModel, SyntaxNode codeBlock, CancellationToken cancellationToken);
119var fieldNames = _fieldNamesPool.Allocate();
221HashSet<string> fieldNames,
258HashSet<string> fieldNames,
275SemanticModel semanticModel, IMethodSymbol setMethod, HashSet<string> fieldNames, CancellationToken cancellationToken)
293HashSet<string> fieldNames,
329HashSet<string> fieldNames,
501HashSet<string> fieldNames,
Microsoft.CodeAnalysis.CodeStyle.Fixes (21)
Microsoft.CodeAnalysis.Collections.Package (9)
Microsoft.CodeAnalysis.CSharp (276)
FlowAnalysis\DataFlowsOutWalker.cs (7)
27private DataFlowsOutWalker(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion, HashSet<Symbol> unassignedVariables, ImmutableArray<ISymbol> dataFlowsIn)
33internal static HashSet<Symbol> Analyze(CSharpCompilation compilation, Symbol member, BoundNode node, BoundNode firstInRegion, BoundNode lastInRegion, HashSet<Symbol> unassignedVariables, ImmutableArray<ISymbol> dataFlowsIn)
39var result = walker.Analyze(ref badRegion);
54private readonly HashSet<Symbol> _dataFlowsOut = new HashSet<Symbol>();
58private readonly HashSet<Symbol> _assignedInside = new HashSet<Symbol>();
61private HashSet<Symbol> Analyze(ref bool badRegion)
Symbols\BaseTypeAnalysis.cs (6)
33private static void TypeDependsClosure(NamedTypeSymbol type, CSharpCompilation currentCompilation, HashSet<Symbol> partialClosure)
80private static void StructDependsClosure(NamedTypeSymbol type, HashSet<NamedTypeSymbol> partialClosure, HashSet<NamedTypeSymbol> typesWithCycle, ConsList<NamedTypeSymbol> on)
112static void visitFields(NamedTypeSymbol type, HashSet<NamedTypeSymbol> partialClosure, HashSet<NamedTypeSymbol> typesWithCycle, ConsList<NamedTypeSymbol> on)
173static (bool definitelyManaged, bool hasGenerics) dependsOnDefinitelyManagedType(NamedTypeSymbol type, HashSet<Symbol> partialClosure, ref CompoundUseSiteInfo<AssemblySymbol> useSiteInfo)
Symbols\Symbol.cs (5)
1341internal static bool GetUnificationUseSiteDiagnosticRecursive<T>(ref DiagnosticInfo result, ImmutableArray<T> types, Symbol owner, ref HashSet<TypeSymbol> checkedTypes) where T : TypeSymbol
1354internal static bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, ImmutableArray<TypeWithAnnotations> types, Symbol owner, ref HashSet<TypeSymbol> checkedTypes)
1367internal static bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, ImmutableArray<CustomModifier> modifiers, Symbol owner, ref HashSet<TypeSymbol> checkedTypes)
1380internal static bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, ImmutableArray<ParameterSymbol> parameters, Symbol owner, ref HashSet<TypeSymbol> checkedTypes)
1394internal static bool GetUnificationUseSiteDiagnosticRecursive(ref DiagnosticInfo result, ImmutableArray<TypeParameterSymbol> typeParameters, Symbol owner, ref HashSet<TypeSymbol> checkedTypes)
Microsoft.CodeAnalysis.CSharp.CodeStyle (8)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
47nameof(HashSet<>),
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (14)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (22)
Diagnostics\GetDiagnosticsTests.cs (17)
177HashSet<string> declaredSymbolNames, completedCompilationUnits;
226HashSet<string> declaredSymbolNames, completedCompilationUnits;
278HashSet<string> declaredSymbolNames, completedCompilationUnits;
345HashSet<string> declaredSymbolNames, completedCompilationUnits;
411HashSet<string> declaredSymbols, completedCompilationUnits;
451private static bool DequeueCompilationEvents(AsyncQueue<CompilationEvent> eventQueue, out bool compilationStartedFired, out HashSet<string> declaredSymbolNames, out HashSet<string> declaredSymbols, out HashSet<string> completedCompilationUnits)
1124var uniqueCallbacks = new HashSet<SyntaxNode>();
1685var expectedSymbolCallbacks = new HashSet<string>() { "C", "M1" };
1686var expectedSyntaxNodeCallbacks = new HashSet<string>() { "int x11 = 0;" };
1687var expectedSyntaxNodeInsideBlockCallbacks = new HashSet<string>();
1688var expectedOperationCallbacks = new HashSet<string>() { "int x11 = 0" };
1689var expectedOperationInsideBlockCallbacks = new HashSet<string>();
1690var expectedBlockSymbolCallbacks = new HashSet<string>();
1691var expectedSymbolStartSymbolCallbacks = new HashSet<string>();
1692var expectedSemanticModelTreeCallbacks = new HashSet<SyntaxTree>();
Microsoft.CodeAnalysis.CSharp.Features (38)
src\Analyzers\CSharp\Analyzers\UseCollectionExpression\CSharpUseCollectionExpressionForFluentDiagnosticAnalyzer.cs (1)
47nameof(HashSet<>),
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (18)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (6)
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
Microsoft.CodeAnalysis.EditorFeatures (16)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (12)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.Extensions.Package (12)
Microsoft.CodeAnalysis.Features (145)
PdbSourceDocument\SymbolSourceDocumentFinder.cs (8)
14public static HashSet<DocumentHandle> FindDocumentHandles(EntityHandle handle, MetadataReader dllReader, MetadataReader pdbReader)
16var docList = new HashSet<DocumentHandle>();
40private static void ProcessMethodDef(MethodDefinitionHandle methodDefHandle, MetadataReader dllReader, MetadataReader pdbReader, HashSet<DocumentHandle> docList, bool processDeclaringType)
72private static void ProcessEventDef(EventDefinitionHandle eventDefHandle, MetadataReader dllReader, MetadataReader pdbReader, HashSet<DocumentHandle> docList)
97private static void ProcessPropertyDef(PropertyDefinitionHandle propertyDefHandle, MetadataReader dllReader, MetadataReader pdbReader, HashSet<DocumentHandle> docList)
117private static void ProcessFieldDef(FieldDefinitionHandle fieldDefHandle, MetadataReader dllReader, MetadataReader pdbReader, HashSet<DocumentHandle> docList)
124private static void ProcessTypeDef(TypeDefinitionHandle typeDefHandle, MetadataReader dllReader, MetadataReader pdbReader, HashSet<DocumentHandle> docList, bool processContainingType = true)
154private static void AddDocumentsFromTypeDefinitionDocuments(TypeDefinitionHandle typeDefHandle, MetadataReader pdbReader, HashSet<DocumentHandle> docList)
src\Analyzers\Core\Analyzers\UseAutoProperty\AbstractUseAutoPropertyAnalyzer.cs (11)
56private readonly ObjectPool<HashSet<string>> _fieldNamesPool = new(() => new(semanticFacts.SyntaxFacts.StringComparer));
91SemanticModel semanticModel, IMethodSymbol accessor, HashSet<string> fieldNames, HashSet<IFieldSymbol> result, CancellationToken cancellationToken);
94HashSet<string> fieldNames, ConcurrentDictionary<IFieldSymbol, ConcurrentSet<SyntaxNode>> ineligibleFieldUsageIfOutsideProperty, SemanticModel semanticModel, SyntaxNode codeBlock, CancellationToken cancellationToken);
119var fieldNames = _fieldNamesPool.Allocate();
221HashSet<string> fieldNames,
258HashSet<string> fieldNames,
275SemanticModel semanticModel, IMethodSymbol setMethod, HashSet<string> fieldNames, CancellationToken cancellationToken)
293HashSet<string> fieldNames,
329HashSet<string> fieldNames,
501HashSet<string> fieldNames,
Microsoft.CodeAnalysis.Features.UnitTests (3)
Microsoft.CodeAnalysis.InteractiveHost (11)
Microsoft.CodeAnalysis.LanguageServer (3)
Microsoft.CodeAnalysis.LanguageServer.Protocol (8)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (71)
Microsoft.CodeAnalysis.PublicApiAnalyzers (59)
Microsoft.CodeAnalysis.Remote.ServiceHub (28)
Host\AssetProvider.cs (3)
59AssetPath assetPath, HashSet<Checksum> checksums, Action<Checksum, T, TArg>? callback, TArg? arg, CancellationToken cancellationToken) where TArg : default
232AssetPath assetPath, Action<ProjectStateChecksums, HashSet<Checksum>, TArg> addAllChecksums, TArg arg)
245AssetPath assetPath, HashSet<Checksum> checksums, Action<Checksum, T, TArg>? callback, TArg? arg, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Remote.Workspaces (7)
AbstractAssetProvider.cs (2)
27public abstract Task GetAssetsAsync<T, TArg>(AssetPath assetPath, HashSet<Checksum> checksums, Action<Checksum, T, TArg>? callback, TArg? arg, CancellationToken cancellationToken);
180public Task GetAssetsAsync<TArg>(AssetPath assetPath, HashSet<Checksum> checksums, Action<Checksum, T, TArg>? callback, TArg? arg, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.ResxSourceGenerator (59)
Microsoft.CodeAnalysis.ResxSourceGenerator.UnitTests (2)
Microsoft.CodeAnalysis.Scripting (3)
Microsoft.CodeAnalysis.Test.Utilities (45)
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (13)
47Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>> fieldsSourceTypes = new Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>>();
54Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>> localsSourceTypes = new Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>>();
162private static bool HasMoreSpecificSourceType<SymbolType>(SymbolType symbol, ITypeSymbol symbolType, Dictionary<SymbolType, HashSet<INamedTypeSymbol>> symbolsSourceTypes, out INamedTypeSymbol commonSourceType)
164if (symbolsSourceTypes.TryGetValue(symbol, out var sourceTypes))
232private static void AssignTo(IOperation target, Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>> localsSourceTypes, Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>> fieldsSourceTypes, IOperation sourceValue)
237private static void AssignTo(IOperation target, Dictionary<ILocalSymbol, HashSet<INamedTypeSymbol>> localsSourceTypes, Dictionary<IFieldSymbol, HashSet<INamedTypeSymbol>> fieldsSourceTypes, ITypeSymbol sourceType)
252private static void AssignTo<SymbolType>(SymbolType target, ITypeSymbol targetType, Dictionary<SymbolType, HashSet<INamedTypeSymbol>> sourceTypes, IOperation sourceValue)
257private static void AssignTo<SymbolType>(SymbolType target, ITypeSymbol targetType, Dictionary<SymbolType, HashSet<INamedTypeSymbol>> sourceTypes, ITypeSymbol sourceType)
268if (!sourceTypes.TryGetValue(target, out var symbolSourceTypes))
Microsoft.CodeAnalysis.Threading.Package (9)
Microsoft.CodeAnalysis.UnitTests (28)
Microsoft.CodeAnalysis.VisualBasic (56)
Microsoft.CodeAnalysis.Workspaces (234)
FindSymbols\FindReferences\DependentTypeFinder.cs (28)
21using SymbolSet = HashSet<INamedTypeSymbol>;
65Func<INamedTypeSymbol, SymbolSet, bool> typeMatches,
107using var _1 = GetSymbolSet(out var result);
111using var _2 = GetSymbolSet(out var currentMetadataTypes);
114using var _3 = GetSymbolSet(out var currentSourceAndMetadataTypes);
153using var _ = GetSymbolSet(out var tempBuffer);
172using var _ = GetSymbolSet(out var tempBuffer);
190async Task AddDescendantSourceTypesInProjectAsync(SymbolSet result, Project project)
200using var _1 = GetSymbolSet(out var typesToSearchFor);
201using var _2 = GetSymbolSet(out var tempBuffer);
254SymbolSet result,
276async Task AddSourceTypesThatDeriveFromNameAsync(SymbolSet result, string name)
292async Task AddDescendantMetadataTypesInProjectAsync(SymbolSet result, Project project)
301using var _1 = GetSymbolSet(out var typesToSearchFor);
302using var _2 = GetSymbolSet(out var tempBuffer);
333SymbolSet metadataTypes,
337SymbolSet result)
376SymbolSet foundTypes, Func<Location, bool> assert, string message)
382private static void AddRange(SymbolSet foundTypes, SymbolSet result)
389private static void AddRange(SymbolSet foundTypes, SymbolSet currentTypes, Func<INamedTypeSymbol, bool> shouldContinueSearching)
513private static bool TypeHasBaseTypeInSet(INamedTypeSymbol type, SymbolSet set)
519private static bool TypeHasInterfaceInSet(INamedTypeSymbol type, SymbolSet set)
536SymbolSet result,
537SymbolSet typesToSearchFor,
538SymbolSet tempBuffer,
561public static PooledDisposer<PooledHashSet<INamedTypeSymbol>> GetSymbolSet(out SymbolSet instance)
FindSymbols\FindReferences\Finders\AbstractReferenceFinder.cs (3)
35ISymbol symbol, HashSet<string>? globalAliases, Project project, IImmutableSet<Document>? documents, Action<Document, TData> processResult, TData processResultData, FindReferencesSearchOptions options, CancellationToken cancellationToken);
804TSymbol symbol, HashSet<string>? globalAliases, Project project, IImmutableSet<Document>? documents,
828ISymbol symbol, HashSet<string>? globalAliases, Project project,
FindSymbols\SyntaxTree\SyntaxTreeIndex_Create.cs (14)
25public static readonly ObjectPool<HashSet<string>> StringLiteralHashSetPool = SharedPools.Default<HashSet<string>>();
26public static readonly ObjectPool<HashSet<long>> LongLiteralHashSetPool = SharedPools.Default<HashSet<long>>();
47GetIdentifierSet(ignoreCase, out var identifiers, out var escapedIdentifiers);
49var stringLiterals = StringLiteralHashSetPool.Allocate();
50var longLiterals = LongLiteralHashSetPool.Allocate();
52HashSet<(string alias, string name, int arity, bool isGlobal)>? aliasInfo = null;
328ref HashSet<(string alias, string name, int arity, bool isGlobal)>? aliasInfo,
356private static void GetIdentifierSet(bool ignoreCase, out HashSet<string> identifiers, out HashSet<string> escapedIdentifiers)
375private static void Free(bool ignoreCase, HashSet<string> identifiers, HashSet<string> escapedIdentifiers)
Shared\Extensions\ISymbolExtensions.cs (4)
224private static DocumentationComment GetDocumentationComment(ISymbol symbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation, CultureInfo? preferredCulture, bool expandIncludes, bool expandInheritdoc, CancellationToken cancellationToken)
297private static XNode[] RewriteInheritdocElements(ISymbol symbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation, XNode node, CancellationToken cancellationToken)
333private static XNode[] RewriteMany(ISymbol symbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation, XNode[] nodes, CancellationToken cancellationToken)
344private static XNode[]? RewriteInheritdocElement(ISymbol memberSymbol, HashSet<ISymbol>? visitedSymbols, Compilation compilation, XElement element, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Workspaces.MSBuild (16)
MSBuild\ProjectMap.cs (8)
24private readonly Dictionary<string, HashSet<ProjectId>> _projectPathToProjectIdsMap;
44_projectPathToProjectIdsMap = new Dictionary<string, HashSet<ProjectId>>(PathUtilities.Comparer);
131if (!_projectPathToProjectIdsMap.TryGetValue(projectPath, out var projectIds))
148if (projectPath is not null && TryGetIdsByProjectPath(projectPath, out var projectIds))
160private bool TryFindOutputFileRefPathInProjectIdSet(string? outputRefFilePath, HashSet<ProjectId> set, [NotNullWhen(true)] out ProjectId? result)
163private bool TryFindOutputFilePathInProjectIdSet(string? outputFilePath, HashSet<ProjectId> set, [NotNullWhen(true)] out ProjectId? result)
166private static bool TryFindPathInProjectIdSet(string? path, Func<ProjectId, string?> getPathById, HashSet<ProjectId> set, [NotNullWhen(true)] out ProjectId? result)
196internal bool TryGetIdsByProjectPath(string projectPath, [NotNullWhen(true)] out HashSet<ProjectId>? ids)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (32)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (8)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
Microsoft.CommonLanguageServerProtocol.Framework.Package (2)
Microsoft.CSharp (5)
Microsoft.Data.Analysis (25)
DataFrame.Join.cs (8)
171private static HashSet<long> Merge(DataFrame retainedDataFrame, DataFrame supplementaryDataFrame,
186retainedJoinColumnNames, supplemetaryJoinColumnNames, out HashSet<long> supplementaryJoinColumnsNullIndices);
193string[] retainedJoinColumnNames, string[] supplemetaryJoinColumnNames, out HashSet<long> supplementaryJoinColumnsNullIndices)
231var newOccurrences = shrinkedRetainedColumn.GetGroupedOccurrences(supplementaryColumn, out HashSet<long> supplementaryColumnNullIndices);
275private static HashSet<long> PerformMerging(DataFrame retainedDataFrame, string[] retainedJoinColumnNames,
276Dictionary<long, ICollection<long>> occurrences, HashSet<long> supplementaryJoinColumnsNullIndices,
283HashSet<long> intersection = calculateIntersection ? new HashSet<long>() : null;
384var intersection = Merge(retainedDataFrame, supplementaryDataFrame, retainedJoinColumns, supplementaryJoinColumns, out retainedRowIndices, out supplementaryRowIndices, calculateIntersection: true);
Microsoft.Data.Analysis.Tests (4)
Microsoft.DotNet.ArcadeLogging (2)
Microsoft.DotNet.Build.Manifest (1)
Microsoft.DotNet.Build.Tasks.Feed (39)
src\PublishArtifactsInManifestBase.cs (33)
180public readonly Dictionary<TargetFeedContentType, HashSet<TargetFeedConfig>> FeedConfigs =
181new Dictionary<TargetFeedContentType, HashSet<TargetFeedConfig>>();
183public readonly Dictionary<TargetFeedContentType, HashSet<PackageArtifactModel>> PackagesByCategory =
184new Dictionary<TargetFeedContentType, HashSet<PackageArtifactModel>>();
186public readonly Dictionary<TargetFeedContentType, HashSet<BlobArtifactModel>> BlobsByCategory =
187new Dictionary<TargetFeedContentType, HashSet<BlobArtifactModel>>();
375var packages = packagesPerCategory.Value;
377if (FeedConfigs.TryGetValue(category, out HashSet<TargetFeedConfig> feedConfigsForCategory))
388HashSet<PackageArtifactModel> filteredPackages = SplitPackageByAssetSelection(packages, feedConfig);
428HashSet<BlobArtifactModel> symbolAssets,
503HashSet<BlobArtifactModel> symbolPackages)
537var symbolPackagesToPublish = BlobsByCategory.TryGetValue(TargetFeedContentType.Symbols, out HashSet<BlobArtifactModel> symbolAssets) ?
549HashSet<TargetFeedConfig> feedConfigsForSymbols = FeedConfigs[TargetFeedContentType.Symbols];
699HashSet<string> packageFileExclusions = [];
793public SymbolPublishVisibility GetSymbolPublishingVisibility(HashSet<TargetFeedConfig> feedConfigsForSymbols)
822var packages = packagesPerCategory.Value;
824if (FeedConfigs.TryGetValue(category, out HashSet<TargetFeedConfig> feedConfigsForCategory))
828HashSet<PackageArtifactModel> filteredPackages = SplitPackageByAssetSelection(packages, feedConfig);
867protected virtual HashSet<PackageArtifactModel> SplitPackageByAssetSelection(HashSet<PackageArtifactModel> packages, TargetFeedConfig feedConfig)
1042var blobs = blobsPerCategory.Value;
1044if (FeedConfigs.TryGetValue(category, out HashSet<TargetFeedConfig> feedConfigsForCategory))
1048HashSet<BlobArtifactModel> filteredBlobs = FilterBlobs(blobs, feedConfig);
1086private HashSet<BlobArtifactModel> FilterBlobs(HashSet<BlobArtifactModel> blobs, TargetFeedConfig feedConfig)
1169HashSet<PackageArtifactModel> packagesToPublish,
1204HashSet<PackageArtifactModel> packagesToPublish,
1291HashSet<PackageArtifactModel> packagesToPublish,
1312HashSet<T> packagesToPublish,
1544private async Task PublishAssetsAsync(IAssetPublisher assetPublisher, HashSet<BlobArtifactModel> blobAssets,
1593HashSet<BlobArtifactModel> assetsToPublish,
1685HashSet<BlobArtifactModel> assetsToPublish,
Microsoft.DotNet.Build.Tasks.Feed.Tests (7)
Microsoft.DotNet.Build.Tasks.Installers (1)
Microsoft.DotNet.Build.Tasks.Packaging (33)
Microsoft.DotNet.Build.Tasks.Packaging.Tests (1)
Microsoft.DotNet.Build.Tasks.Workloads (5)
Microsoft.DotNet.CodeAnalysis (2)
Microsoft.DotNet.GenFacades (7)
Microsoft.DotNet.Helix.JobSender (1)
Microsoft.DotNet.Helix.Sdk (3)
Microsoft.DotNet.NuGetRepack.Tests (2)
Microsoft.DotNet.Open.Api.Tools.Tests (1)
Microsoft.DotNet.PackageTesting (4)
Microsoft.DotNet.SharedFramework.Sdk (6)
Microsoft.DotNet.SignCheckLibrary (11)
Verification\Exclusion.cs (11)
21private Dictionary<string, HashSet<string>> _fileExcludedCache = new();
22private Dictionary<string, HashSet<string>> _fileNotExcludedCache = new();
23private Dictionary<string, HashSet<string>> _parentExcludedCache = new();
24private Dictionary<string, HashSet<string>> _parentNotExcludedCache = new();
130Dictionary<string, HashSet<string>> cache = isExcluded ? _fileExcludedCache : _fileNotExcludedCache;
136Dictionary<string, HashSet<string>> cache = isExcluded ? _parentExcludedCache : _parentNotExcludedCache;
141Dictionary<string, HashSet<string>> excludedCache,
142Dictionary<string, HashSet<string>> notExcludedCache,
163private void AddToCache(Dictionary<string, HashSet<string>> cache, string key, IEnumerable<string> values)
179private bool IsInCache(Dictionary<string, HashSet<string>> cache, string key, IEnumerable<string> values)
180=> cache.TryGetValue(key, out var cachedValues) && values.Any(cachedValues.Contains);
Microsoft.DotNet.SignTool (15)
Microsoft.DotNet.SignTool.Tests (2)
Microsoft.DotNet.SourceBuild.Tasks (2)
Microsoft.DotNet.XliffTasks (6)
Microsoft.DotNet.XUnitAssert.Tests (85)
CollectionAssertsTests.cs (24)
1498 var expected = new HashSet<int> { 42, 2112 };
1499 var actual = new HashSet<int> { 2112, 42 };
1512 var expected = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
1513 var actual = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
1525 var expected = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
1526 var actual = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
1534 var expected = new HashSet<int> { 42, 2112 };
1535 var actual = new HashSet<int> { 2600, 42 };
1552 var expected = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
1553 var actual = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, true }) };
1569 var expected = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
1570 var actual = new HashSet<BitArray> { new BitArray(new[] { true, true }) };
2165 var expected = new HashSet<int> { 42, 2112 };
2166 var actual = new HashSet<int> { 2112, 42 };
2187 var expected = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
2188 var actual = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
2208 var expected = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
2209 var actual = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
2225 var expected = new HashSet<int> { 42, 2112 };
2226 var actual = new HashSet<int> { 2600, 42 };
2235 var expected = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, false }) };
2236 var actual = new HashSet<BitArray>(comparer) { new BitArray(new[] { true, true }) };
2244 var expected = new HashSet<BitArray> { new BitArray(new[] { true, false }) };
2245 var actual = new HashSet<BitArray> { new BitArray(new[] { true, true }) };
EqualityAssertsTests.cs (32)
1221 var expected = new HashSet<int> { 1, 2, 3 };
1222 var actual = new HashSet<int> { 1, 2, 3 };
1230 var expected = new HashSet<int> { 1, 2, 3 };
1231 var actual = new HashSet<int> { 1, 2, 4 };
1247 var expected = new HashSet<int> { 1, 2, 3 };
1248 var actual = new HashSet<int> { 2, 3, 1 };
1256 var expected = new HashSet<int> { 1, 2, 3 };
1257 var actual = new HashSet<int> { 2, 4, 1 };
1273 var expected = new HashSet<int> { 1, 2, 3 };
1274 var actual = new HashSet<int> { 1, 2 };
1290 var expected = new HashSet<int> { 1, 2 };
1291 var actual = new HashSet<int> { 1, 2, 3 };
1307 var expected = new HashSet<string> { "bar", "foo" };
1341 var expected = new HashSet<string> { "bar" };
1342 var actual = new HashSet<string> { "baz" };
1466 var actual = new HashSet<string> { "bar" };
1479 var actual = new HashSet<string> { "baz" };
1548 var actual = new HashSet<string> { "baz" };
3450 var expected = new HashSet<int> { 1, 2, 3 };
3451 var actual = new HashSet<int> { 1, 2, 3 };
3467 var expected = new HashSet<int> { 1, 2, 3 };
3468 var actual = new HashSet<int> { 1, 2, 4 };
3476 var expected = new HashSet<int> { 1, 2, 3 };
3477 var actual = new HashSet<int> { 2, 3, 1 };
3493 var expected = new HashSet<int> { 1, 2, 3 };
3494 var actual = new HashSet<int> { 2, 4, 1 };
3502 var expected = new HashSet<string> { "bar", "foo" };
3540 var expected = new HashSet<string> { "bar" };
3541 var actual = new HashSet<string> { "baz" };
3652 var actual = new HashSet<string> { "bar" };
3678 var actual = new HashSet<string> { "baz" };
3734 var actual = new HashSet<string> { "baz" };
SetAssertsTests.cs (28)
17 var set = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "forty-two" };
34 var set = new HashSet<string>() { "eleventeen" };
67 var set = new HashSet<string>() { "eleventeen" };
84 var set = new HashSet<string>(StringComparer.OrdinalIgnoreCase) { "forty-two" };
123 var expectedSubset = new HashSet<int> { 1, 2, 3 };
124 var actual = new HashSet<int> { 1, 2, 3 };
140 var expectedSubset = new HashSet<int> { 1, 2, 3, 4 };
141 var actual = new HashSet<int> { 1, 2, 3 };
149 var expectedSubset = new HashSet<int> { 1, 2, 3 };
150 var actual = new HashSet<int> { 1, 2, 7 };
189 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
190 var actual = new HashSet<int> { 1, 2, 3 };
206 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
207 var actual = new HashSet<int> { 1, 2, 3, 4 };
215 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
216 var actual = new HashSet<int> { 1, 2, 7 };
255 var expectedSubset = new HashSet<int> { 1, 2, 3 };
256 var actual = new HashSet<int> { 1, 2, 3 };
264 var expectedSubset = new HashSet<int> { 1, 2, 3, 4 };
265 var actual = new HashSet<int> { 1, 2, 3 };
273 var expectedSubset = new HashSet<int> { 1, 2, 3 };
274 var actual = new HashSet<int> { 1, 2, 7 };
313 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
314 var actual = new HashSet<int> { 1, 2, 3 };
322 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
323 var actual = new HashSet<int> { 1, 2, 3, 4 };
331 var expectedSuperset = new HashSet<int> { 1, 2, 3 };
332 var actual = new HashSet<int> { 1, 2, 7 };
Microsoft.DotNet.XUnitV3Extensions (1)
Microsoft.Extensions.AI.Abstractions.Tests (2)
Microsoft.Extensions.AI.Evaluation (2)
Microsoft.Extensions.AI.Evaluation.Console (2)
Microsoft.Extensions.AI.Evaluation.Integration.Tests (5)
Microsoft.Extensions.AI.Evaluation.Quality (3)
Microsoft.Extensions.AI.OpenAI (1)
Microsoft.Extensions.AI.OpenAI.Tests (1)
Microsoft.Extensions.ApiDescription.Client (3)
Microsoft.Extensions.ApiDescription.Client.Tests (1)
Microsoft.Extensions.AsyncState (5)
Microsoft.Extensions.Compliance.Abstractions (7)
Microsoft.Extensions.Compliance.Testing.Tests (2)
Microsoft.Extensions.Configuration.Binder (3)
Microsoft.Extensions.DependencyInjection (3)
Microsoft.Extensions.DependencyInjection.AutoActivation (2)
Microsoft.Extensions.DependencyModel (1)
Microsoft.Extensions.Diagnostics.HealthChecks (2)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (5)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (5)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.FileProviders.Composite (1)
Microsoft.Extensions.FileSystemGlobbing (2)
Microsoft.Extensions.Http (1)
Microsoft.Extensions.Http.Diagnostics (2)
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Microsoft.Extensions.Http.Resilience (5)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.Localization (1)
Microsoft.Extensions.Logging.Generators (4)
Microsoft.Extensions.Options.DataAnnotations (2)
Microsoft.Extensions.Options.SourceGeneration (13)
Microsoft.Extensions.ServiceDiscovery (1)
Microsoft.Extensions.Telemetry (6)
Microsoft.Extensions.Telemetry.Abstractions (5)
Microsoft.Extensions.TimeProvider.Testing (1)
Microsoft.Extensions.Validation.ValidationsGenerator (5)
Microsoft.Gen.ComplianceReports (5)
Microsoft.Gen.ContextualOptions (5)
Microsoft.Gen.Logging (24)
Microsoft.Gen.MetadataExtractor (18)
Microsoft.Gen.Metrics (18)
Microsoft.Gen.MetricsReports (18)
Microsoft.Interop.ComInterfaceGenerator (2)
Microsoft.Interop.LibraryImportGenerator (11)
Analyzers\CustomMarshallerAttributeFixer.cs (9)
32Dictionary<(INamedTypeSymbol marshallerType, ITypeSymbol managedType, bool isLinearCollectionMarshaller), HashSet<string>> uniqueMarshallersToFix = new();
47if (!uniqueMarshallersToFix.TryGetValue(uniqueMarshallerFixKey, out HashSet<string> membersToAdd))
63HashSet<string> missingMembers = marshallerInfo.Value;
130private static (HashSet<string> missingMembers, List<Diagnostic> fixedDiagnostics) GetRequiredShapeMissingMemberNames(IEnumerable<Diagnostic> diagnostics)
132HashSet<string> missingMemberNames = new();
154private static async Task<Solution> AddMissingMembers(Document doc, SyntaxNode node, HashSet<string> missingMemberNames, CancellationToken ct)
191HashSet<string> missingMemberNames,
204private static void AddMissingMembersToStatelessMarshaller(DocumentEditor editor, SyntaxNode declaringSyntax, INamedTypeSymbol marshallerType, ITypeSymbol managedType, HashSet<string> missingMemberNames, bool isLinearCollectionMarshaller)
400private static void AddMissingMembersToStatefulMarshaller(DocumentEditor editor, SyntaxNode declaringSyntax, INamedTypeSymbol marshallerType, ITypeSymbol managedType, HashSet<string> missingMemberNames, bool isLinearCollectionMarshaller)
Microsoft.Maui (5)
Microsoft.Maui.Controls (17)
Microsoft.Maui.Controls.DesignTools (2)
Microsoft.ML.AutoML (14)
Microsoft.ML.CodeGenerator (7)
Microsoft.ML.Core (7)
Microsoft.ML.Core.Tests (6)
Microsoft.ML.Data (47)
Microsoft.ML.Ensemble (2)
Microsoft.ML.EntryPoints (3)
Microsoft.ML.FastTree (5)
Microsoft.ML.IntegrationTests (1)
Microsoft.ML.InternalCodeAnalyzer (1)
Microsoft.ML.OnnxConverter (14)
Microsoft.ML.OnnxTransformer (1)
Microsoft.ML.Predictor.Tests (1)
Microsoft.ML.ResultProcessor (2)
Microsoft.ML.StandardTrainers (1)
Microsoft.ML.Sweeper (5)
Microsoft.ML.TensorFlow (1)
Microsoft.ML.TestFramework (3)
Microsoft.ML.Tests (5)
Microsoft.ML.TimeSeries (1)
Microsoft.ML.Tokenizers (2)
Microsoft.ML.TorchSharp (6)
Microsoft.ML.Transforms (5)
Microsoft.ML.Vision (1)
Microsoft.VisualStudio.LanguageServices (23)
Microsoft.VisualStudio.LanguageServices.CodeLens (1)
Mvc.Analyzers.Test (1)
netstandard (1)
PresentationBuildTasks (2)
PresentationCore (7)
PresentationFramework (7)
Replay (2)
Roslyn.Diagnostics.Analyzers (75)
Roslyn.Diagnostics.CSharp.Analyzers (7)
Roslyn.VisualStudio.DiagnosticsWindow (1)
Roslyn.VisualStudio.Next.UnitTests (3)
RulesetToEditorconfigConverter (2)
RunTests (2)
Shared (5)
Shared.Tests (7)
SocialWeather (4)
System.CodeDom (1)
System.Collections (1)
System.Collections.Immutable (23)
System.ComponentModel.Annotations (2)
System.ComponentModel.Composition (14)
System.ComponentModel.TypeConverter (2)
System.Composition.Hosting (3)
System.Core (1)
System.Data.Common (2)
System.Diagnostics.DiagnosticSource (3)
System.Formats.Cbor (17)
System.IO.Packaging (2)
System.Linq (14)
System.Linq.AsyncEnumerable (18)
System.Linq.Expressions (22)
System.Linq.Parallel (5)
System.Net.HttpListener (1)
System.Private.CoreLib (107)
src\libraries\System.Private.CoreLib\src\System\Collections\Generic\HashSet.cs (68)
95if (collection is HashSet<T> otherAsHashSet && EffectiveEqualityComparersAreEqual(this, otherAsHashSet))
146private void ConstructFrom(HashSet<T> source)
196/// <summary>Removes all elements from the <see cref="HashSet{T}"/> object.</summary>
213/// <summary>Determines whether the <see cref="HashSet{T}"/> contains the specified element.</summary>
214/// <param name="item">The element to locate in the <see cref="HashSet{T}"/> object.</param>
215/// <returns>true if the <see cref="HashSet{T}"/> object contains the specified element; otherwise, false.</returns>
371/// Gets an instance of a type that may be used to perform operations on the current <see cref="HashSet{T}"/>
393/// Gets an instance of a type that may be used to perform operations on the current <see cref="HashSet{T}"/>
417/// Provides a type that may be used to perform operations on a <see cref="HashSet{T}"/>
424internal AlternateLookup(HashSet<T> set)
431/// <summary>Gets the <see cref="HashSet{T}"/> against which this instance performs operations.</summary>
432public HashSet<T> Set { get; }
436internal static bool IsCompatibleItem(HashSet<T> set)
444internal static IAlternateEqualityComparer<TAlternate, T> GetAlternateComparer(HashSet<T> set)
455HashSet<T> set = Set;
543HashSet<T> set = Set;
628HashSet<T> set = Set;
769/// <summary>Adds the specified element to the <see cref="HashSet{T}"/>.</summary>
771/// <returns>true if the element is added to the <see cref="HashSet{T}"/> object; false if the element is already present.</returns>
800/// <summary>Modifies the current <see cref="HashSet{T}"/> object to contain all elements that are present in itself, the specified collection, or both.</summary>
801/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
815/// <summary>Modifies the current <see cref="HashSet{T}"/> object to contain only elements that are present in that object and in the specified collection.</summary>
816/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
842if (other is HashSet<T> otherAsSet && EqualityComparersAreEqual(this, otherAsSet))
852/// <summary>Removes all elements in the specified collection from the current <see cref="HashSet{T}"/> object.</summary>
853/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
881/// <summary>Modifies the current <see cref="HashSet{T}"/> object to contain only elements that are present either in that object or in the specified collection, but not both.</summary>
882/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
909if (other is HashSet<T> otherAsSet && EqualityComparersAreEqual(this, otherAsSet))
919/// <summary>Determines whether a <see cref="HashSet{T}"/> object is a subset of the specified collection.</summary>
920/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
921/// <returns>true if the <see cref="HashSet{T}"/> object is a subset of <paramref name="other"/>; otherwise, false.</returns>
946if (other is HashSet<T> otherAsSet && EqualityComparersAreEqual(this, otherAsSet))
956/// <summary>Determines whether a <see cref="HashSet{T}"/> object is a proper subset of the specified collection.</summary>
957/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
958/// <returns>true if the <see cref="HashSet{T}"/> object is a proper subset of <paramref name="other"/>; otherwise, false.</returns>
988if (other is HashSet<T> otherAsSet && EqualityComparersAreEqual(this, otherAsSet))
1000/// <summary>Determines whether a <see cref="HashSet{T}"/> object is a proper superset of the specified collection.</summary>
1001/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
1002/// <returns>true if the <see cref="HashSet{T}"/> object is a superset of <paramref name="other"/>; otherwise, false.</returns>
1026if (other is HashSet<T> otherAsSet &&
1045/// <summary>Determines whether a <see cref="HashSet{T}"/> object is a proper superset of the specified collection.</summary>
1046/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
1047/// <returns>true if the <see cref="HashSet{T}"/> object is a proper superset of <paramref name="other"/>; otherwise, false.</returns>
1071if (other is HashSet<T> otherAsSet && EqualityComparersAreEqual(this, otherAsSet))
1088/// <summary>Determines whether the current <see cref="HashSet{T}"/> object and a specified collection share common elements.</summary>
1089/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
1090/// <returns>true if the <see cref="HashSet{T}"/> object and <paramref name="other"/> share at least one common element; otherwise, false.</returns>
1120/// <summary>Determines whether a <see cref="HashSet{T}"/> object and the specified collection contain the same elements.</summary>
1121/// <param name="other">The collection to compare to the current <see cref="HashSet{T}"/> object.</param>
1122/// <returns>true if the <see cref="HashSet{T}"/> object is equal to <paramref name="other"/>; otherwise, false.</returns>
1145if (other is HashSet<T> otherAsSet && EqualityComparersAreEqual(this, otherAsSet))
1172/// <summary>Copies the elements of a <see cref="HashSet{T}"/> object to an array, starting at the specified array index.</summary>
1207/// <summary>Removes all elements that match the conditions defined by the specified predicate from a <see cref="HashSet{T}"/> collection.</summary>
1333/// Sets the capacity of a <see cref="HashSet{T}"/> object to the actual number of elements it contains,
1339/// Sets the capacity of a <see cref="HashSet{T}"/> object to the specified number of entries,
1383/// <summary>Returns an <see cref="IEqualityComparer"/> object that can be used for equality testing of a <see cref="HashSet{T}"/> object.</summary>
1384public static IEqualityComparer<HashSet<T>> CreateSetComparer() => new HashSetEqualityComparer<T>();
1410/// <returns>true if the element is added to the <see cref="HashSet{T}"/> object; false if the element is already present.</returns>
1533internal bool IsSubsetOfHashSetWithSameComparer(HashSet<T> other)
1550private void IntersectWithHashSetWithSameComparer(HashSet<T> other)
1617private void SymmetricExceptWithUniqueHashSet(HashSet<T> other)
1776internal static bool EqualityComparersAreEqual(HashSet<T> set1, HashSet<T> set2) => set1.Comparer.Equals(set2.Comparer);
1782internal static bool EffectiveEqualityComparersAreEqual(HashSet<T> set1, HashSet<T> set2) => set1.EffectiveComparer.Equals(set2.EffectiveComparer);
1800private readonly HashSet<T> _hashSet;
1805internal Enumerator(HashSet<T> hashSet)
System.Private.CoreLib.Generators (18)
NativeRuntimeEventSourceGenerator.cs (11)
40Dictionary<string, HashSet<string>> inclusionList = ParseInclusionListFromString(inclusionText);
61private static Dictionary<string, HashSet<string>> ParseInclusionListFromString(string? inclusionText)
63Dictionary<string, HashSet<string>> inclusionList = [];
101if (!inclusionList.TryGetValue(providerName, out HashSet<string>? value))
112private static bool IncludeEvent(Dictionary<string, HashSet<string>> inclusionList, string providerName, string eventName)
119if (inclusionList.TryGetValue(providerName, out HashSet<string>? events) && events.Contains(eventName))
124if (inclusionList.TryGetValue("*", out HashSet<string>? wildcardEvents) && wildcardEvents.Contains(eventName))
132private static string GenerateEventSourceClass(XElement providerNode, string className, Dictionary<string, HashSet<string>> inclusionList)
159private static void GenerateKeywordsClass(XElement providerNode, StringWriter writer, Dictionary<string, HashSet<string>> inclusionList)
175var usedKeywords = new HashSet<string>();
222private static void GenerateEventMethods(XElement providerNode, StringWriter writer, Dictionary<string, HashSet<string>> inclusionList)
System.Private.DataContractSerialization (14)
System\Runtime\Serialization\DataContract.cs (8)
1094private static bool IsTypeSerializable(Type type, HashSet<Type>? previousCollectionTypes)
1123private static void ValidatePreviousCollectionTypes(Type collectionType, Type itemType, HashSet<Type> previousCollectionTypes)
1234internal static XmlQualifiedName GetXmlName(Type type, HashSet<Type> previousCollectionTypes, out bool hasDataContract)
1290private static XmlQualifiedName GetNonDCTypeXmlName(Type type, HashSet<Type> previousCollectionTypes)
1315private static bool TryGetBuiltInXmlAndArrayTypeXmlName(Type type, HashSet<Type> previousCollectionTypes, [NotNullWhen(true)] out XmlQualifiedName? xmlName)
1364internal static XmlQualifiedName GetCollectionXmlName(Type type, Type itemType, HashSet<Type> previousCollectionTypes, out CollectionDataContractAttribute? collectionContractAttribute)
2075internal virtual bool Equals(object? other, HashSet<DataContractPairKey>? checkedContracts)
2084internal bool IsEqualOrChecked(object? other, HashSet<DataContractPairKey>? checkedContracts)
System.Private.Windows.Core (12)
System.Private.Windows.Core.TestUtilities (1)
System.Private.Xml (11)
System.Private.Xml.Linq (1)
System.Reflection.DispatchProxy (1)
System.Reflection.Emit (2)
System.Reflection.MetadataLoadContext (1)
System.Resources.Extensions (10)
System.Runtime.Serialization.Schema (5)
System.Security.Cryptography.Pkcs (1)
System.ServiceModel.Syndication (1)
System.Text.Json (3)
System.Text.Json.SourceGeneration (6)
System.Text.RegularExpressions (18)
System.Text.RegularExpressions.Generator (16)
System.Threading.RateLimiting (1)
System.Windows.Controls.Ribbon (3)
System.Windows.Forms (14)
System.Windows.Forms.Design (15)
System.Windows.Forms.Primitives.TestUtilities (2)
System.Windows.Forms.PrivateSourceGenerators (1)
System.Windows.Input.Manipulations (3)
System.Xaml (19)
TaskUsageLogger (10)
Templates.Blazor.Tests (4)
Templates.Blazor.WebAssembly.Auth.Tests (4)
Templates.Blazor.WebAssembly.Tests (4)
Templates.Mvc.Tests (4)
Templates.Tests (4)
Test.Utilities (56)
TestDiscoveryWorker (1)
Text.Analyzers (73)
xunit.assert (18)