2956 references to First
aspire (5)
Aspire.Azure.Messaging.EventHubs.Tests (1)
Aspire.Cli.Tests (15)
Aspire.Components.Common.TestUtilities (1)
Aspire.Dashboard (3)
Aspire.Dashboard.Tests (6)
Aspire.Hosting (3)
Aspire.Hosting.Azure (2)
Aspire.Hosting.Azure.Functions (1)
Aspire.Hosting.Azure.Tests (2)
Aspire.Hosting.DevTunnels.Tests (1)
Aspire.Hosting.PostgreSQL.Tests (3)
Aspire.Hosting.Redis.Tests (2)
Aspire.Hosting.Tests (5)
Aspire.Hosting.Valkey.Tests (1)
Aspire.Hosting.Yarp.Tests (2)
BasicWebSite (1)
BasketService (1)
blazor-devserver (1)
CodeGenerator (1)
Contract.Data.IntegrationTests (1)
CSharpSyntaxGenerator (3)
CustomAuthorizationFailureResponse (1)
dotnet-dev-certs (2)
dotnet-openapi (2)
dotnet-svcutil-lib (5)
dotnet-svcutil-lib.Tests (1)
GenerateDocumentationAndConfigFiles (12)
http2cat (1)
IdeBenchmarks (5)
IdeCoreBenchmarks (2)
IIS.FunctionalTests (8)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IISExpress.FunctionalTests (5)
installer.tasks (1)
Interop.FunctionalTests (2)
Metrics (10)
Metrics.Legacy (10)
Microsoft.AspNetCore.Analyzers.Test (25)
Microsoft.AspNetCore.App.Analyzers.Test (5)
Microsoft.AspNetCore.Authentication.Core (1)
Microsoft.AspNetCore.Authentication.Core.Test (6)
Microsoft.AspNetCore.Authentication.JwtBearer.Tools.Tests (1)
Microsoft.AspNetCore.Authentication.Test (74)
CertificateTests.cs (20)
488Assert.Equal(Certificates.SelfSignedValidWithNoEku.Issuer, actual.First().Value);
492Assert.Equal(Certificates.SelfSignedValidWithNoEku.Thumbprint, actual.First().Value);
501Assert.Equal(Certificates.SelfSignedValidWithNoEku.SubjectName.Name, actual.First().Value);
511Assert.Equal(Certificates.SelfSignedValidWithNoEku.SerialNumber, actual.First().Value);
521Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.DnsName, false), actual.First().Value);
531Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.EmailName, false), actual.First().Value);
541Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.SimpleName, false), actual.First().Value);
551Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.UpnName, false), actual.First().Value);
561Assert.Equal(Certificates.SelfSignedValidWithNoEku.GetNameInfo(X509NameType.UrlName, false), actual.First().Value);
617Assert.Equal(Expected, name.First().Value);
620Assert.Equal("1", count.First().Value);
636Assert.Equal(Expected, name.First().Value);
640Assert.Equal(expected, count.First().Value);
687Assert.Equal(Expected, actual.First().Value);
744Assert.Equal(Expected, name.First().Value);
747Assert.Equal("1", count.First().Value);
763Assert.Equal(Expected, name.First().Value);
767Assert.Equal(expected, count.First().Value);
785Assert.Equal(Expected, name.First().Value);
790Assert.Equal(laterExpected, count.First().Value);
GoogleTests.cs (16)
409Assert.Equal("/error?FailureMessage=AccessDenied", transaction.Response.Headers.GetValues("Location").First());
445Assert.Equal("https://example.com/custom-denied-page?rurl=http%3A%2F%2Fwww.google.com%2F", transaction.Response.Headers.GetValues("Location").First());
488Assert.StartsWith("/error?FailureMessage=", transaction.Response.Headers.GetValues("Location").First());
527Assert.Equal("/error?FailureMessage=itfailed" + UrlEncoder.Default.Encode(";Description=whyitfailed;Uri=https://example.com/fail"), transaction.Response.Headers.GetValues("Location").First());
566Assert.Equal("/me", transaction.Response.Headers.GetValues("Location").First());
637transaction.Response.Headers.GetValues("Location").First());
689transaction.Response.Headers.GetValues("Location").First());
729Assert.Equal("/me", transaction.Response.Headers.GetValues("Location").First());
769Assert.Equal("/", transaction.Response.Headers.GetValues("Location").First());
817Assert.Equal("/foo", transaction.Response.Headers.GetValues("Location").First());
861transaction.Response.Headers.GetValues("Location").First());
890Assert.Equal("/me", transaction.Response.Headers.GetValues("Location").First());
934Assert.Equal("/me", transaction.Response.Headers.GetValues("Location").First());
978Assert.Equal("/me", transaction.Response.Headers.GetValues("Location").First());
1015Assert.Equal("/me", transaction.Response.Headers.GetValues("Location").First());
1089Assert.Equal("/challenge", transaction.Response.Headers.GetValues("Location").First());
Microsoft.AspNetCore.Authorization.Test (5)
Microsoft.AspNetCore.Components.Analyzers (1)
Microsoft.AspNetCore.Components.Analyzers.Tests (2)
Microsoft.AspNetCore.Components.Endpoints.Tests (9)
Microsoft.AspNetCore.Components.QuickGrid.Tests (13)
GridSortTest.cs (13)
39Assert.Equal("Name", propertyList.First().PropertyName);
40Assert.Equal(SortDirection.Ascending, propertyList.First().Direction);
55Assert.Equal("NullableDate", propertyList.First().PropertyName);
56Assert.Equal(SortDirection.Ascending, propertyList.First().Direction);
71Assert.Equal("NullableInt", propertyList.First().PropertyName);
72Assert.Equal(SortDirection.Ascending, propertyList.First().Direction);
87Assert.Equal("Child.ChildName", propertyList.First().PropertyName);
88Assert.Equal(SortDirection.Ascending, propertyList.First().Direction);
103Assert.Equal("Child.ChildNullableDate", propertyList.First().PropertyName);
104Assert.Equal(SortDirection.Ascending, propertyList.First().Direction);
119Assert.Equal("NullableDate", propertyList.First().PropertyName);
120Assert.Equal(SortDirection.Descending, propertyList.First().Direction);
138var firstProperty = propertyList.First();
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (2)
Microsoft.AspNetCore.Components.Tests (16)
Microsoft.AspNetCore.Components.Web.Tests (2)
Microsoft.AspNetCore.DataProtection.Tests (4)
Microsoft.AspNetCore.DeveloperCertificates.XPlat (2)
Microsoft.AspNetCore.Diagnostics.Tests (14)
ExceptionHandlerTest.cs (13)
190Assert.Equal("no-cache", values.First());
193Assert.Equal("-1", values.First());
246Assert.Equal("no-cache", values.First());
249Assert.Equal("-1", values.First());
299Assert.Equal("max-age=3600", values.First());
302Assert.Equal("max-age=3600", values.First());
305Assert.Equal(expiresTime, values.First());
308Assert.Equal("abcdef", values.First());
373Assert.Equal("no-cache", values.First());
441Assert.Equal("max-age=3600", values.First());
444Assert.Equal("max-age=3600", values.First());
447Assert.Equal(expiresTime, values.First());
450Assert.Equal("abcdef", values.First());
Microsoft.AspNetCore.Grpc.JsonTranscoding (1)
Microsoft.AspNetCore.Grpc.Swagger (2)
Microsoft.AspNetCore.Hosting.Tests (4)
Microsoft.AspNetCore.Http.Connections.Tests (3)
Microsoft.AspNetCore.Http.Microbenchmarks (1)
Microsoft.AspNetCore.Http.Results.Tests (4)
Microsoft.AspNetCore.HttpsPolicy.Tests (6)
Microsoft.AspNetCore.Identity (1)
Microsoft.AspNetCore.Identity.FunctionalTests (2)
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.Identity.Specification.Tests (1)
Microsoft.AspNetCore.Identity.Test (4)
Microsoft.AspNetCore.JsonPatch.SystemTextJson.Tests (3)
Microsoft.AspNetCore.JsonPatch.Tests (3)
Microsoft.AspNetCore.Mvc.Abstractions.Test (1)
Microsoft.AspNetCore.Mvc.Core (1)
Microsoft.AspNetCore.Mvc.Core.Test (3)
Microsoft.AspNetCore.Mvc.FunctionalTests (2)
Microsoft.AspNetCore.Mvc.IntegrationTests (9)
Microsoft.AspNetCore.Mvc.Localization.Test (2)
Microsoft.AspNetCore.Mvc.NewtonsoftJson (1)
Microsoft.AspNetCore.Mvc.NewtonsoftJson.Test (5)
Microsoft.AspNetCore.Mvc.Razor.Test (3)
Microsoft.AspNetCore.Mvc.RazorPages.Test (8)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (14)
Microsoft.AspNetCore.OpenApi.Tests (38)
Services\OpenApiSchemaService\OpenApiSchemaService.PolymorphicSchemas.cs (14)
40Assert.Equal("triangle", triangleSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>());
42Assert.Equal("square", squareSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>());
79Assert.Equal(0, citySchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<int>());
83Assert.Equal(1, timeSeriesSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<int>());
87Assert.Equal(2, newsSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<int>());
122Assert.Equal("student", citySchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>());
126Assert.Equal("teacher", timeSeriesSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>());
158Assert.Equal("paint", paintSchema.Properties["$type"].Enum.First().GetValue<string>());
162Assert.Equal("fabric", fabricSchema.Properties["$type"].Enum.First().GetValue<string>());
210Assert.Equal("dog", dogSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>());
214Assert.Equal("cat", catSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>());
218Assert.Equal("pet", petSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>());
291Assert.Equal("manager", managerSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>());
293Assert.Equal("employee", employeeSchema.Properties[schema.Discriminator.PropertyName].Enum.First().GetValue<string>());
Microsoft.AspNetCore.Owin.Tests (2)
Microsoft.AspNetCore.RateLimiting.Tests (1)
Microsoft.AspNetCore.RequestDecompression.Tests (2)
Microsoft.AspNetCore.ResponseCompression (1)
Microsoft.AspNetCore.ResponseCompression.Tests (22)
ResponseCompressionMiddlewareTest.cs (22)
110AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
111AssertLog(logMessages.Skip(1).First(), LogLevel.Trace, "Response compression is available for this Content-Type.");
112AssertLog(logMessages.Skip(2).First(), LogLevel.Debug, "No matching response compression provider found.");
194AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
196AssertLog(logMessages.Skip(1).First(), LogLevel.Debug, $"Response compression is not enabled for the Content-Type '{expected}'.");
282AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
283AssertLog(logMessages.Skip(1).First(), LogLevel.Debug, $"Response compression is not enabled for the Content-Type '{contentType}'.");
359AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
360AssertLog(logMessages.Skip(1).First(), LogLevel.Trace, "Response compression is available for this Content-Type.");
361AssertLog(logMessages.Skip(2).First(), LogLevel.Debug, "No matching response compression provider found.");
384AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
385AssertLog(logMessages.Skip(1).First(), LogLevel.Trace, "Response compression is available for this Content-Type.");
386AssertLog(logMessages.Skip(2).First(), LogLevel.Debug, "No matching response compression provider found.");
396AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
397AssertLog(logMessages.Skip(1).First(), LogLevel.Debug, "Response compression is not enabled for the Content-Type 'text/custom'.");
410AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
411AssertLog(logMessages.Skip(1).First(), LogLevel.Debug, "Response compression disabled due to the Content-Range header.");
428AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
429AssertLog(logMessages.Skip(1).First(), LogLevel.Debug, "Response compression disabled due to the Content-Encoding header.");
1339AssertLog(logMessages.First(), LogLevel.Trace, "This request accepts compression.");
1340AssertLog(logMessages.Skip(1).First(), LogLevel.Trace, "Response compression is available for this Content-Type.");
1341AssertLog(logMessages.Skip(2).First(), LogLevel.Debug, $"The response will be compressed with '{provider}'.");
Microsoft.AspNetCore.Routing.Microbenchmarks (2)
Microsoft.AspNetCore.Routing.Tests (8)
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (22)
Microsoft.AspNetCore.Server.HttpSys.NonHelixTests (1)
Microsoft.AspNetCore.Server.Kestrel.Core (2)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Tests (11)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic.Tests (1)
Microsoft.AspNetCore.Session.Tests (10)
Microsoft.AspNetCore.Shared.Tests (15)
SecurityHelperTests.cs (11)
45Assert.Equal("Test3", user.Identities.Skip(0).First().Name);
46Assert.Equal("Test2", user.Identities.Skip(1).First().Name);
47Assert.Equal("Test1", user.Identities.Skip(2).First().Name);
75Assert.Equal(newEmptyIdentity, user.Identities.Skip(0).First());
76Assert.Equal(identityTwo, user.Identities.Skip(1).First());
77Assert.Equal(identityNoAuthTypeWithClaim, user.Identities.Skip(2).First());
78Assert.Equal(identityEmptyWithAuthType, user.Identities.Skip(3).First());
87Assert.Equal("Test3", user.Identities.Skip(0).First().Name);
88Assert.Equal(identityTwo, user.Identities.Skip(1).First());
89Assert.Equal(identityNoAuthTypeWithClaim, user.Identities.Skip(2).First());
90Assert.Equal(identityEmptyWithAuthType, user.Identities.Skip(3).First());
Microsoft.AspNetCore.SignalR.Client.FunctionalTests (5)
Microsoft.AspNetCore.SignalR.Tests (5)
Microsoft.AspNetCore.StaticFiles.FunctionalTests (1)
Microsoft.AspNetCore.TestHost.Tests (8)
Microsoft.AspNetCore.Testing.Tests (1)
Microsoft.AspNetCore.WebSockets.Tests (1)
Microsoft.Build.Framework (1)
Microsoft.Cci.Extensions (5)
Microsoft.CodeAnalysis (2)
Microsoft.CodeAnalysis.Analyzers (18)
Microsoft.CodeAnalysis.AnalyzerUtilities (15)
Microsoft.CodeAnalysis.BannedApiAnalyzers (11)
Microsoft.CodeAnalysis.CodeStyle (5)
Microsoft.CodeAnalysis.CodeStyle.Fixes (14)
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (2)
Microsoft.CodeAnalysis.Collections.Package (1)
Microsoft.CodeAnalysis.CSharp (16)
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
121.First();
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (20)
CommandLineTests.cs (20)
759Assert.Equal((int)ErrorCode.ERR_CantOpenWin32Manifest, errors.First().Code);
760Assert.Equal(2, errors.First().Arguments.Count());
771Assert.Equal((int)ErrorCode.ERR_CantOpenIcon, errors.First().Code);
772Assert.Equal(2, errors.First().Arguments.Count());
782Assert.Equal((int)ErrorCode.ERR_CantOpenWin32Res, errors.First().Code);
783Assert.Equal(2, errors.First().Arguments.Count());
793Assert.Equal((int)ErrorCode.ERR_CantOpenWin32Res, errors.First().Code);
794Assert.Equal(2, errors.First().Arguments.Count());
804Assert.Equal((int)ErrorCode.ERR_CantOpenIcon, errors.First().Code);
805Assert.Equal(2, errors.First().Arguments.Count());
815Assert.Equal((int)ErrorCode.ERR_CantOpenWin32Manifest, errors.First().Code);
816Assert.Equal(2, errors.First().Arguments.Count());
884Assert.Equal((int)ErrorCode.ERR_ErrorBuildingWin32Resources, errors.First().Code);
885Assert.Equal(1, errors.First().Arguments.Count());
9660var text = comp.DiagnosticFormatter.Format(syntaxTree.GetDiagnostics().First());
9671text = comp.DiagnosticFormatter.Format(syntaxTree.GetDiagnostics().First());
9679text = comp.DiagnosticFormatter.Format(syntaxTree.GetDiagnostics().First());
10405var syntaxTreeInput = ctx.CompilationProvider.Select((c, _) => c.SyntaxTrees.First());
14704var classOptions = gc.AnalyzerConfigOptions.GetOptions(gc.Compilation.SyntaxTrees.First());
14744var classOptions = provider.GetOptions(cmd.Compilation.SyntaxTrees.First());
Microsoft.CodeAnalysis.CSharp.EditorFeatures (2)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (79)
Microsoft.CodeAnalysis.CSharp.Emit.UnitTests (95)
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (17)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (261)
Semantics\ExtensionTests.cs (44)
951var extension1 = tree.GetRoot().DescendantNodes().OfType<ExtensionBlockDeclarationSyntax>().First();
978var extension1 = tree.GetRoot().DescendantNodes().OfType<ExtensionBlockDeclarationSyntax>().First();
1282var extension1 = tree.GetRoot().DescendantNodes().OfType<ExtensionBlockDeclarationSyntax>().First();
1459var extension1 = tree.GetRoot().DescendantNodes().OfType<ExtensionBlockDeclarationSyntax>().First();
1633var extension1 = tree.GetRoot().DescendantNodes().OfType<ExtensionBlockDeclarationSyntax>().First();
1657var extension1 = tree.GetRoot().DescendantNodes().OfType<ExtensionBlockDeclarationSyntax>().First();
1690var extension1 = tree.GetRoot().DescendantNodes().OfType<ExtensionBlockDeclarationSyntax>().First();
1719var extension1 = tree.GetRoot().DescendantNodes().OfType<ExtensionBlockDeclarationSyntax>().First();
1747var extension1 = tree.GetRoot().DescendantNodes().OfType<ExtensionBlockDeclarationSyntax>().First();
3318var type1 = tree.GetRoot().DescendantNodes().OfType<ExtensionBlockDeclarationSyntax>().First();
3380var type1 = tree.GetRoot().DescendantNodes().OfType<ExtensionBlockDeclarationSyntax>().First();
3693var type1 = tree.GetRoot().DescendantNodes().OfType<ExtensionBlockDeclarationSyntax>().First();
4978var m = ext.DescendantNodes().OfType<MethodDeclarationSyntax>().First();
12881var memberAccess1 = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "new object().Method").First();
12937var memberAccess1 = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "new object().Method").First();
18053var memberAccess = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "object.M").First();
18081var memberAccess = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "object.M").First();
18109var memberAccess = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "object.M").First();
18137var memberAccess = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "object.ToString").First();
18279var memberAccess = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "object.f").First();
18421var memberAccess = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "object.f").First();
19155var memberAccess = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "C.M").First();
19187var memberAccess = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "new C().M").First();
19225var memberAccess = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "C.M").First();
19262var memberAccess = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "new C().M").First();
19345var memberAccess = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "new C().M").First();
21454var memberAccess = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "object.Member").First();
24747var memberAccess1 = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "\"\".Property").First();
24775var memberAccess1 = GetSyntaxes<MemberAccessExpressionSyntax>(tree, """(b switch { true => "", _ => "" }).Property""").First();
24803var memberAccess1 = GetSyntaxes<MemberAccessExpressionSyntax>(tree, """(b ? "" : null).Property""").First();
24888var memberAccess1 = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "null.Property").First();
24925var memberAccess1 = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "default.Property").First();
25020var memberAccess1 = GetSyntaxes<MemberAccessExpressionSyntax>(tree, "(default, default).Property").First();
25680var deconstruction = tree.GetRoot().DescendantNodes().OfType<AssignmentExpressionSyntax>().First();
25798var deconstruction = tree.GetRoot().DescendantNodes().OfType<AssignmentExpressionSyntax>().First();
25833var deconstruction = tree.GetRoot().DescendantNodes().OfType<AssignmentExpressionSyntax>().First();
25891var deconstruction = tree.GetRoot().DescendantNodes().OfType<AssignmentExpressionSyntax>().First();
25930var deconstruction = tree.GetRoot().DescendantNodes().OfType<AssignmentExpressionSyntax>().First();
25980var deconstruction = tree.GetRoot().DescendantNodes().OfType<AssignmentExpressionSyntax>().First();
28553VerifyFlowGraph(comp, comp.SyntaxTrees.Single().GetRoot().DescendantNodes().OfType<MethodDeclarationSyntax>().First(), """
38854var extensionParameterSyntax = tree.GetRoot().DescendantNodes().OfType<ParameterSyntax>().First();
38897var extensionParameterSyntax = tree.GetRoot().DescendantNodes().OfType<ParameterSyntax>().First();
48845var loop = tree.GetRoot().DescendantNodes().OfType<ForEachStatementSyntax>().First();
48877loop = tree.GetRoot().DescendantNodes().OfType<ForEachStatementSyntax>().First();
Microsoft.CodeAnalysis.CSharp.Features (19)
src\Analyzers\CSharp\CodeFixes\UseUtf8StringLiteral\UseUtf8StringLiteralCodeFixProvider.cs (1)
121.First();
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.IOperation.UnitTests (18)
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (240)
SourceGeneration\GeneratorDriverTests.cs (9)
1271c.ReportDiagnostic(d.WithLocation(Location.Create(c.Compilation.SyntaxTrees.First(), l)));
2421compilation = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.First(), CSharpSyntaxTree.ParseText(source, parseOptions));
2480var c2 = compilation.ReplaceSyntaxTree(compilation.SyntaxTrees.First(), CSharpSyntaxTree.ParseText("class E{}", parseOptions));
4438var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator1"); }); }).AsSourceGenerator();
4439var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator2"); }); }).AsSourceGenerator();
4483var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", "//" + c.SyntaxTrees.First().GetRoot().ToFullString() + " generator1"); }); }).AsSourceGenerator();
4484var generator2 = new PipelineCallbackGenerator2((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", "//" + c.SyntaxTrees.First().GetRoot().ToFullString() + " generator2"); }); }).AsSourceGenerator();
4507var generator1 = new PipelineCallbackGenerator((ctx) => { ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen1Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator1"); }); }).AsSourceGenerator();
4508var generator2 = new PipelineCallbackGenerator2((ctx) => { initWasCalled = true; ctx.RegisterSourceOutput(ctx.CompilationProvider, (spc, c) => { spc.AddSource("gen2Source.cs", c.SyntaxTrees.First().GetRoot().ToFullString() + " //generator2"); }); }).AsSourceGenerator();
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (203)
Symbols\Source\NullablePublicAPITests.cs (26)
1207var syntaxTree = comp.SyntaxTrees.First();
2743Assert.Equal(PublicNullableAnnotation.Annotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations().First());
2748Assert.Equal(PublicNullableAnnotation.NotAnnotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations().First());
2789Assert.Equal(PublicNullableAnnotation.Annotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations().First());
2794Assert.Equal(PublicNullableAnnotation.NotAnnotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations().First());
2832Assert.Equal(PublicNullableAnnotation.Annotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations().First());
2837Assert.Equal(PublicNullableAnnotation.NotAnnotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations().First());
2881Assert.Equal(PublicNullableAnnotation.Annotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations().First());
2886Assert.Equal(PublicNullableAnnotation.NotAnnotated, symInfo.Symbol.ContainingType.TypeArgumentNullableAnnotations().First());
3148var collectionInitializer = root.DescendantNodes().OfType<InitializerExpressionSyntax>().First();
3193var collectionInitializer = root.DescendantNodes().OfType<InitializerExpressionSyntax>().First();
3369Assert.Equal(annotation, spanType.TypeArgumentNullableAnnotations().First());
3414Assert.Equal(annotation, method.ContainingType.TypeArgumentNullableAnnotations().First());
3459Assert.Equal(annotation, method.ContainingType.TypeArgumentNullableAnnotations().First());
3537var lambda = root.DescendantNodes().OfType<LambdaExpressionSyntax>().First();
3562.First()
3598var lambda = root.DescendantNodes().OfType<LambdaExpressionSyntax>().First();
3623.First()
3854var lambda = root.DescendantNodes().OfType<LambdaExpressionSyntax>().First();
3856var o2Declaration = lambda.DescendantNodes().OfType<VariableDeclaratorSyntax>().First();
3913var fieldLambda = root.DescendantNodes().OfType<LambdaExpressionSyntax>().First();
3975var lambda = root.DescendantNodes().OfType<LambdaExpressionSyntax>().First();
4044var lambda = root.DescendantNodes().OfType<SimpleLambdaExpressionSyntax>().First();
4111var lambda = root.DescendantNodes().OfType<LambdaExpressionSyntax>().First();
4174var lambda = root.DescendantNodes().OfType<LambdaExpressionSyntax>().First();
4176var localFunction = lambda.DescendantNodes().OfType<LocalFunctionStatementSyntax>().First();
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (80)
Microsoft.CodeAnalysis.CSharp.Test.Utilities (4)
Microsoft.CodeAnalysis.CSharp.Workspaces (11)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (107)
CodeGeneration\SymbolEditorTests.cs (59)
50var compilation = await solution.Projects.First().GetCompilationAsync();
72var symbol = (await GetSymbolsAsync(solution, "C")).First();
78var actual = await GetActualAsync(editor.GetChangedDocuments().First());
100var symbol = (await GetSymbolsAsync(solution, "C")).First();
111var actual = await GetActualAsync(editor.GetChangedDocuments().First());
137var symbol = (await GetSymbolsAsync(solution, "C")).First();
148var actual = await GetActualAsync(editor.GetChangedDocuments().First());
178var comp = await solution.Projects.First().GetCompilationAsync();
179var symbolA = comp.GlobalNamespace.GetMembers("A").First();
180var symbolB = comp.GlobalNamespace.GetMembers("B").First();
190var actual = await GetActualAsync(editor.GetChangedDocuments().First());
225var comp = await solution.Projects.First().GetCompilationAsync();
226var symbolA = comp.GlobalNamespace.GetMembers("A").First();
227var symbolB = comp.GlobalNamespace.GetMembers("B").First();
273var symbol = (await GetSymbolsAsync(solution, "C")).First();
278var actual = await GetActualAsync(editor.GetChangedDocuments().First());
309var comp = await solution.Projects.First().GetCompilationAsync();
310var symbol = comp.GlobalNamespace.GetMembers("C").First();
346var symbol = (await GetSymbolsAsync(solution, "C")).First();
353var actual = await GetActualAsync(editor.GetChangedDocuments().First());
383var symbol = (await GetSymbolsAsync(solution, "C")).First();
390var actual = await GetActualAsync(editor.GetChangedDocuments().First());
420var symbol = (await GetSymbolsAsync(solution, "C")).First();
432var actual = await GetActualAsync(editor.GetChangedDocuments().First());
466var symbol = (await GetSymbolsAsync(solution, "C")).First();
479var actual = await GetActualAsync(editor.GetChangedDocuments().First());
516var symbol = (INamedTypeSymbol)(await GetSymbolsAsync(solution, "C")).First();
523var actual = await GetActualAsync(editor.GetChangedDocuments().First());
554var symbol = (await GetSymbolsAsync(solution, "C")).First();
564var actual = await GetActualAsync(editor.GetChangedDocuments().First());
588var symbol = (await GetSymbolsAsync(solution, "C")).First();
598var actual = await GetActualAsync(editor.GetChangedDocuments().First());
621var symbol = (await GetSymbolsAsync(solution, "C")).First();
627var actual = await GetActualAsync(editor.GetChangedDocuments().First());
646var symbol = (await GetSymbolsAsync(solution, "C")).First();
653var actual = await GetActualAsync(editor.GetChangedDocuments().First());
677var symbol = (await GetSymbolsAsync(solution, "C")).First();
683var actual = await GetActualAsync(editor.GetChangedDocuments().First());
702var symbol = (INamedTypeSymbol)(await GetSymbolsAsync(solution, "C")).First();
712var actual = await GetActualAsync(editor.GetChangedDocuments().First());
724actual = await GetActualAsync(editor.GetChangedDocuments().First());
750var symbol = (INamedTypeSymbol)(await GetSymbolsAsync(solution, "C")).First();
757var actual = await GetActualAsync(editor.GetChangedDocuments().First());
791var symbol = (INamedTypeSymbol)(await GetSymbolsAsync(solution, "C")).First();
798var actual = await GetActualAsync(editor.GetChangedDocuments().First());
828var symbol = (INamedTypeSymbol)(await GetSymbolsAsync(solution, "C")).First();
835var actual = await GetActualAsync(editor.GetChangedDocuments().First());
861var symbol = (INamedTypeSymbol)(await GetSymbolsAsync(solution, "C")).First();
868var actual = await GetActualAsync(editor.GetChangedDocuments().First());
894var symbol = (INamedTypeSymbol)(await GetSymbolsAsync(solution, "C")).First();
901var actual = await GetActualAsync(editor.GetChangedDocuments().First());
931var symbol = (INamedTypeSymbol)(await GetSymbolsAsync(solution, "C")).First();
938var actual = await GetActualAsync(editor.GetChangedDocuments().First());
968var symbol = (INamedTypeSymbol)(await GetSymbolsAsync(solution, "C")).First();
975var actual = await GetActualAsync(editor.GetChangedDocuments().First());
997var symbol = (INamedTypeSymbol)(await GetSymbolsAsync(solution, "C")).First();
1004var actual = await GetActualAsync(editor.GetChangedDocuments().First());
1035var typeC = (INamedTypeSymbol)(await GetSymbolsAsync(solution, "C")).First();
1045var typeI = (INamedTypeSymbol)(await GetSymbolsAsync(solution, "I")).First();
Microsoft.CodeAnalysis.EditorFeatures (19)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (26)
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (46)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
Microsoft.CodeAnalysis.ExpressionEvaluator.ResultProvider.Utilities (1)
Microsoft.CodeAnalysis.Extensions.Package (3)
Microsoft.CodeAnalysis.ExternalAccess.Razor.Features (1)
Microsoft.CodeAnalysis.Features (34)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.Features.UnitTests (4)
Microsoft.CodeAnalysis.InteractiveHost (1)
Microsoft.CodeAnalysis.LanguageServer (1)
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (245)
Completion\CompletionTests.cs (62)
93var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
103AssertJsonEquals(expected, results.Items.First());
146var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
181var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
187AssertJsonEquals(expected, results.Items.First());
216var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
256var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
286var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
292AssertJsonEquals(expected, results.Items.First());
370var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
376AssertJsonEquals(expected, results.Items.First());
433var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
440AssertJsonEquals(expected, results.Items.First());
466var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
494var document = solution.Projects.First().Documents.First();
507AssertJsonEquals(expected, results.Items.First());
533var document = solution.Projects.First().Documents.First();
546AssertJsonEquals(expected, results.Items.First());
572var document = solution.Projects.First().Documents.First();
585AssertJsonEquals(expected, results.Items.First());
632var document = solution.Projects.First().Documents.First();
641AssertJsonEquals(expected, results.Items.First());
730var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
763var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
766Assert.Null(results.Items.First().TextEdit);
767Assert.Null(results.Items.First().InsertText);
768Assert.True(((LSP.VSInternalCompletionItem)results.Items.First()).VsResolveTextEditOnCommit);
793var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
796Assert.Null(results.Items.First().TextEdit);
797Assert.Null(results.Items.First().InsertText);
821var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
990Assert.Equal("T", results.Items.First().Label);
1003Assert.Contains("ta", results.Items.First().Label, StringComparison.OrdinalIgnoreCase);
1058Assert.Equal("T", results.Items.First().Label);
1071Assert.Equal("TaiwanCalendar", results.Items.First().Label);
1126Assert.Equal("T", results.Items.First().Label);
1138Assert.Equal("Task", results.Items.First().Label);
1151Assert.Equal("T", results.Items.First().Label);
1163Assert.Equal("Timeout", results.Items.First().Label);
1288Assert.Contains("ta", results.Items.First().Label, StringComparison.OrdinalIgnoreCase);
1350Assert.Equal("T", results.Items.First().Label);
1367Assert.Equal("Saaa", results.Items.First().Label);
1470Assert.Equal("T", results.Items.First().Label);
1506var document = testLspServer.GetCurrentSolution().Projects.First().Documents.First();
References\FindAllReferencesHandlerTests.cs (14)
57var results = await RunFindAllReferencesAsync(testLspServer, testLspServer.GetLocations("caret").First());
95var results = await RunFindAllReferencesAsync(testLspServer, testLspServer.GetLocations("caret").First(), progress);
135var results = await RunFindAllReferencesAsync(testLspServer, testLspServer.GetLocations("caret").First());
180var results = await RunFindAllReferencesAsync(testLspServer, testLspServer.GetLocations("caret").First());
204var results = await RunFindAllReferencesAsync(testLspServer, testLspServer.GetLocations("caret").First());
225var results = await RunFindAllReferencesAsync(testLspServer, testLspServer.GetLocations("caret").First());
248var results = await RunFindAllReferencesAsync(testLspServer, testLspServer.GetLocations("caret").First());
276var results = await RunFindAllReferencesAsync(testLspServer, testLspServer.GetLocations("caret").First());
289var results = await RunFindAllReferencesAsync(testLspServer, testLspServer.GetLocations("caret").First());
292var textRuns = ((ClassifiedTextElement)results.First().Text).Runs;
321var results = await RunFindAllReferencesAsync(testLspServer, testLspServer.GetLocations("caret").First());
344var results = await RunFindAllReferencesAsync(testLspServer, testLspServer.GetLocations("caret").First());
377var project = workspace.CurrentSolution.Projects.First().AddAnalyzerReference(new TestGeneratorReference(razorGenerator));
380var results = await RunFindAllReferencesAsync(testLspServer, testLspServer.GetLocations("caret").First());
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (11)
Microsoft.CodeAnalysis.PublicApiAnalyzers (9)
Microsoft.CodeAnalysis.PublicApiAnalyzers.CodeFixes (1)
Microsoft.CodeAnalysis.ResxSourceGenerator (9)
Microsoft.CodeAnalysis.Test.Utilities (15)
Microsoft.CodeAnalysis.Threading.Package (1)
Microsoft.CodeAnalysis.UnitTests (25)
Microsoft.CodeAnalysis.Workspaces (26)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (37)
Microsoft.CodeAnalysis.Workspaces.UnitTests (72)
Microsoft.CommonLanguageServerProtocol.Framework.Package (1)
Microsoft.Data.Analysis.Tests (2)
Microsoft.DotNet.Arcade.Sdk (1)
Microsoft.DotNet.Build.Manifest (2)
Microsoft.DotNet.Build.Tasks.Feed (2)
Microsoft.DotNet.Build.Tasks.Workloads (2)
Microsoft.DotNet.Git.IssueManager (2)
Microsoft.DotNet.Helix.Sdk (2)
Microsoft.DotNet.Helix.Sdk.Tests (9)
Microsoft.DotNet.NuGetRepack.Tasks (1)
Microsoft.DotNet.Open.Api.Tools.Tests (1)
Microsoft.DotNet.SharedFramework.Sdk (3)
Microsoft.DotNet.SignCheckLibrary (2)
Microsoft.DotNet.SourceBuild.Tasks (2)
Microsoft.DotNet.XUnitAssert.Tests (2)
Microsoft.DotNet.XUnitExtensions (3)
Microsoft.Extensions.AI.Abstractions.Tests (1)
Microsoft.Extensions.AI.AzureAIInference.Tests (1)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (1)
82.First();
Microsoft.Extensions.AI.Integration.Tests (1)
Microsoft.Extensions.AI.OpenAI.Tests (4)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (1)
82.First();
Microsoft.Extensions.AI.Tests (7)
test\Libraries\Microsoft.Extensions.AI.Abstractions.Tests\AssertExtensions.cs (1)
82.First();
Microsoft.Extensions.ApiDescription.Tool.Tests (1)
Microsoft.Extensions.Caching.Abstractions (1)
Microsoft.Extensions.DependencyModel (1)
Microsoft.Extensions.Diagnostics.Probes.Tests (5)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (4)
Microsoft.Extensions.Diagnostics.Testing (1)
Microsoft.Extensions.Http.Diagnostics (1)
Microsoft.Extensions.Http.Diagnostics.Tests (1)
Microsoft.Extensions.Http.Resilience.Tests (1)
Microsoft.Extensions.ML (2)
Microsoft.Extensions.Options.Contextual.Tests (2)
Microsoft.Extensions.SecretManager.Tools.Tests (1)
Microsoft.Extensions.Validation.Tests (20)
ValidatableTypeInfoTests.cs (16)
68Assert.Equal("The Name field is required.", kvp.Value.First());
73Assert.Equal("The field Age must be between 0 and 120.", kvp.Value.First());
78Assert.Equal("The Street field is required.", kvp.Value.First());
83Assert.Equal("The City field is required.", kvp.Value.First());
157Assert.Equal("Salary must be a positive value.", error.Value.First());
210Assert.Equal("The field Doors must be between 2 and 5.", kvp.Value.First());
215Assert.Equal("The Make field is required.", kvp.Value.First());
220Assert.Equal("The Model field is required.", kvp.Value.First());
275Assert.Equal("The ProductName field is required.", kvp.Value.First());
280Assert.Equal("The field Quantity must be between 1 and 100.", kvp.Value.First());
285Assert.Equal("The field Quantity must be between 1 and 100.", kvp.Value.First());
406Assert.Equal("SKU must start with 'PROD-'.", error.Value.First());
492Assert.Equal("The Name field is required.", kvp.Value.First());
497Assert.Equal("Date must be in the past.", kvp.Value.First());
580Assert.Equal("FirstName and LastName are required.", kvp.Value.First());
585Assert.Equal("FirstName and LastName are required.", kvp.Value.First());
Microsoft.Gen.ComplianceReports.Unit.Tests (2)
Microsoft.Gen.MetadataExtractor.Unit.Tests (3)
Microsoft.Gen.MetricsReports.Unit.Tests (3)
Microsoft.Maui (1)
Microsoft.Maui.Controls (5)
Microsoft.Maui.Controls.Build.Tasks (15)
Microsoft.Maui.Controls.Xaml (4)
Microsoft.ML.AutoML (17)
Microsoft.ML.AutoML.SourceGenerator (4)
Microsoft.ML.AutoML.Tests (15)
Microsoft.ML.CodeGenerator (5)
Microsoft.ML.CodeGenerator.Tests (1)
Microsoft.ML.Core (3)
Microsoft.ML.Data (44)
Microsoft.ML.Ensemble (2)
Microsoft.ML.EntryPoints (11)
Microsoft.ML.FastTree (17)
Microsoft.ML.GenAI.Phi.Tests (2)
Microsoft.ML.OnnxTransformerTest (5)
Microsoft.ML.Parquet (2)
Microsoft.ML.PerformanceTests (2)
Microsoft.ML.Samples (12)
Microsoft.ML.Samples.GPU (8)
Microsoft.ML.SearchSpace (6)
Microsoft.ML.TensorFlow.Tests (1)
Microsoft.ML.Tests (23)
Microsoft.ML.TimeSeries (2)
Microsoft.ML.Tokenizers (1)
Microsoft.ML.Transforms (5)
Microsoft.Net.Http.Headers.Tests (54)
Microsoft.VisualStudio.LanguageServices (11)
Microsoft.VisualStudio.LanguageServices.CSharp (3)
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (11)
Microsoft.VisualStudio.LanguageServices.Implementation (4)
Microsoft.VisualStudio.LanguageServices.Xaml (1)
Mvc.Api.Analyzers.Test (3)
Roslyn.Diagnostics.Analyzers (14)
Roslyn.Diagnostics.CSharp.Analyzers (2)
Roslyn.VisualStudio.DiagnosticsWindow (1)
Roslyn.VisualStudio.Next.UnitTests (36)
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (11)
51var project = workspace.CurrentSolution.Projects.First();
54var diagnostics = analyzerResult.GetDocumentDiagnostics(project.DocumentIds.First(), AnalysisKind.Semantic);
62diagnostics = analyzerResult.GetDocumentDiagnostics(project.DocumentIds.First(), AnalysisKind.Semantic);
84var project = workspace.CurrentSolution.Projects.First();
87var diagnostics = analyzerResult.GetDocumentDiagnostics(project.DocumentIds.First(), AnalysisKind.Semantic);
95diagnostics = analyzerResult.GetDocumentDiagnostics(project.DocumentIds.First(), AnalysisKind.Semantic);
115var task = Task.Run(() => AnalyzeAsync(workspace, workspace.CurrentSolution.ProjectIds.First(), analyzerType, isHostAnalyzer: false, source.Token));
156var project = workspace.CurrentSolution.Projects.First();
169var diagnostics = analyzerResult.GetDocumentDiagnostics(project.DocumentIds.First(), AnalysisKind.Semantic);
195var project = workspace.CurrentSolution.Projects.First().AddAnalyzerReference(analyzerReference);
209var diagnostics = analyzerResult.GetDocumentDiagnostics(project.DocumentIds.First(), AnalysisKind.Syntax);
RulesetToEditorconfigConverter (1)
Sample (1)
artifacts\obj\Sample\Release\net10.0\generated\Microsoft.AspNetCore.OpenApi.SourceGenerators\Microsoft.AspNetCore.OpenApi.SourceGenerators.XmlCommentGenerator\OpenApiXmlCommentSupport.generated.cs (1)
469var response = operation.Responses.First();
ServerComparison.FunctionalTests (1)
SocialSample (1)
Sockets.BindTests (7)
Sockets.FunctionalTests (4)
System.Collections.Immutable (2)
System.ComponentModel.Composition (1)
System.Linq.Expressions (1)
System.Linq.Parallel (1)
System.Windows.Forms.Analyzers.CodeFixes.CSharp (2)
System.Windows.Forms.Primitives.TestUtilities (1)
System.Windows.Forms.PrivateSourceGenerators.Tests (1)
System.Windows.Forms.Tests (3)
System.Windows.Forms.UI.IntegrationTests (9)
Templates.Blazor.Tests (2)
Templates.Blazor.WebAssembly.Auth.Tests (2)
Templates.Blazor.WebAssembly.Tests (2)
Templates.Mvc.Tests (2)
Templates.Tests (2)
Test.Utilities (10)
Text.Analyzers (12)
Wasm.Performance.Driver (1)
WindowsBase.Tests (16)
System\Windows\NameScopeTests.cs (16)
135Assert.Equal(name, nameScope.Keys.First());
138Assert.Equal(scopedElement, nameScope.Values.First());
148Assert.Equal(name, nameScope.Keys.First());
151Assert.Equal(scopedElement, nameScope.Values.First());
256Assert.Equal(name, nameScope.Keys.First());
259Assert.Equal(scopedElement, nameScope.Values.First());
269Assert.Equal(name, nameScope.Keys.First());
272Assert.Equal(scopedElement, nameScope.Values.First());
350Assert.Equal(name, nameScope.Keys.First());
353Assert.Equal(scopedElement, nameScope.Values.First());
363Assert.Equal(name, nameScope.Keys.First());
366Assert.Equal(scopedElement, nameScope.Values.First());
853Assert.Equal(name, nameScope.Keys.First());
856Assert.Equal(scopedElement, nameScope.Values.First());
866Assert.Equal(name, nameScope.Keys.First());
869Assert.Equal(scopedElement, nameScope.Values.First());
XmlFormattersWebSite (2)