302 references to Elements
aspire (31)
Aspire.Cli.Tests (43)
Packaging\NuGetConfigMergerTests.cs (43)
93Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("value") == "https://feed1.example");
94Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("value") == "https://feed2.example");
98Assert.Equal(2, psm!.Elements("packageSource").Count());
134Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("value") == "https://feed2.example");
138Assert.NotNull(psm.Elements("packageSource").First().Elements("package").FirstOrDefault(p => (string?)p.Attribute("pattern") == "Aspire.*"));
174Assert.DoesNotContain(packageSources.Elements("add"), e => (string?)e.Attribute("value") == "https://old.example");
176Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("value") == "https://new.example");
179Assert.Single(psm.Elements("packageSource"));
214Assert.Equal(2, psm!.Elements("packageSource").Count());
325Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("key") == "nuget" && (string?)e.Attribute("value") == "https://api.nuget.org/v3/index.json");
326Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("key") == "dotnet9" && (string?)e.Attribute("value") == "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet9/nuget/v3/index.json");
329Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("value") == "https://example.com/aspire-feed");
333var nugetMapping = psm.Elements("packageSource").FirstOrDefault(ps => (string?)ps.Attribute("key") == "nuget");
335Assert.Contains(nugetMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "*");
338var urlMapping = psm.Elements("packageSource").FirstOrDefault(ps => (string?)ps.Attribute("key") == "https://api.nuget.org/v3/index.json");
375Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("key") == "nuget.org");
376Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("key") == "custom");
379Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("value") == "https://example.com/aspire-daily");
391var aspireMapping = psm.Elements("packageSource").FirstOrDefault(ps => (string?)ps.Attribute("key") == "https://example.com/aspire-daily");
393Assert.Contains(aspireMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "Aspire*");
396var nugetMapping = psm.Elements("packageSource").FirstOrDefault(ps => (string?)ps.Attribute("key") == "nuget.org");
398Assert.Contains(nugetMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "*");
400var customMapping = psm.Elements("packageSource").FirstOrDefault(ps => (string?)ps.Attribute("key") == "custom");
402Assert.Contains(customMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "*");
444Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("key") == "nuget.org");
447Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("value") == "https://example.com/aspire-daily");
457var nugetMapping = psm.Elements("packageSource").FirstOrDefault(ps => (string?)ps.Attribute("key") == "nuget.org");
459Assert.Contains(nugetMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "*");
462var aspireMapping = psm.Elements("packageSource").FirstOrDefault(ps => (string?)ps.Attribute("key") == "https://example.com/aspire-daily");
464Assert.Contains(aspireMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "Aspire*");
465Assert.Contains(aspireMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "Microsoft.Extensions.ServiceDiscovery*");
510Assert.DoesNotContain(packageSources.Elements("add"),
514Assert.Contains(packageSources.Elements("add"),
518Assert.Contains(packageSources.Elements("add"),
524Assert.DoesNotContain(psm.Elements("packageSource"),
528var validExampleMapping = psm.Elements("packageSource")
531Assert.Contains(validExampleMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "*");
534var nugetMapping = psm.Elements("packageSource")
537Assert.Contains(nugetMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "Aspire*");
538Assert.Contains(nugetMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "Microsoft.Extensions.ServiceDiscovery*");
539Assert.Contains(nugetMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "*");
542Assert.Equal(2, psm.Elements("packageSource").Count());
dotnet-svcutil-lib (6)
GenerateDocumentationAndConfigFiles (9)
IIS.LongTests (1)
IIS.NewHandler.FunctionalTests (1)
IIS.NewShim.FunctionalTests (1)
IISExpress.FunctionalTests (1)
Metrics (9)
Metrics.Legacy (9)
Microsoft.AspNetCore.Authentication.Test (27)
Microsoft.AspNetCore.CookiePolicy.Test (1)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.Identity.InMemory.Test (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Microsoft.AspNetCore.OpenApi.SourceGenerators (1)
Microsoft.AspNetCore.Rewrite (4)
Microsoft.AspNetCore.Server.IntegrationTesting (1)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (1)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.Analyzers (10)
Microsoft.CodeAnalysis.AnalyzerUtilities (9)
Microsoft.CodeAnalysis.BannedApiAnalyzers (9)
Microsoft.CodeAnalysis.CodeStyle (8)
Microsoft.CodeAnalysis.CSharp.EditorFeatures2.UnitTests (1)
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (9)
Microsoft.CodeAnalysis.PublicApiAnalyzers (9)
Microsoft.CodeAnalysis.ResxSourceGenerator (10)
Microsoft.CodeAnalysis.Workspaces (8)
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (1)
Microsoft.CodeAnalysis.Workspaces.Test.Utilities (15)
Microsoft.DotNet.Arcade.Sdk (2)
Microsoft.DotNet.Build.Manifest (3)
Microsoft.DotNet.Build.Tasks.Installers (4)
Microsoft.DotNet.Build.Tasks.Packaging (1)
Microsoft.DotNet.MacOsPkg.Core (1)
Microsoft.DotNet.NuGetRepack.Tasks (1)
Microsoft.DotNet.XliffTasks (7)
Microsoft.Maui.Resizetizer (3)
Microsoft.VisualStudio.LanguageServices (1)
Microsoft.VisualStudio.LanguageServices.CSharp (1)
Microsoft.VisualStudio.LanguageServices.Implementation (2)
Roslyn.Diagnostics.Analyzers (9)
RulesetToEditorconfigConverter (1)
System.ComponentModel.TypeConverter (1)
System.Private.CoreLib.Generators (5)
Test.Utilities (9)
Text.Analyzers (10)