321 references to Elements
aspire (32)
Aspire.Cli.Tests (44)
Packaging\NuGetConfigMergerTests.cs (43)
95Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("value") == "https://feed1.example");
96Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("value") == "https://feed2.example");
100Assert.Equal(2, psm!.Elements("packageSource").Count());
136Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("value") == "https://feed2.example");
140Assert.NotNull(psm.Elements("packageSource").First().Elements("package").FirstOrDefault(p => (string?)p.Attribute("pattern") == "Aspire.*"));
176Assert.DoesNotContain(packageSources.Elements("add"), e => (string?)e.Attribute("value") == "https://old.example");
178Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("value") == "https://new.example");
181Assert.Single(psm.Elements("packageSource"));
216Assert.Equal(2, psm!.Elements("packageSource").Count());
327Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("key") == "nuget" && (string?)e.Attribute("value") == "https://api.nuget.org/v3/index.json");
328Assert.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");
331Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("value") == "https://example.com/aspire-feed");
335var nugetMapping = psm.Elements("packageSource").FirstOrDefault(ps => (string?)ps.Attribute("key") == "nuget");
337Assert.Contains(nugetMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "*");
340var urlMapping = psm.Elements("packageSource").FirstOrDefault(ps => (string?)ps.Attribute("key") == "https://api.nuget.org/v3/index.json");
377Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("key") == "nuget.org");
378Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("key") == "custom");
381Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("value") == "https://example.com/aspire-daily");
393var aspireMapping = psm.Elements("packageSource").FirstOrDefault(ps => (string?)ps.Attribute("key") == "https://example.com/aspire-daily");
395Assert.Contains(aspireMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "Aspire*");
398var nugetMapping = psm.Elements("packageSource").FirstOrDefault(ps => (string?)ps.Attribute("key") == "nuget.org");
400Assert.Contains(nugetMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "*");
402var customMapping = psm.Elements("packageSource").FirstOrDefault(ps => (string?)ps.Attribute("key") == "custom");
404Assert.Contains(customMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "*");
446Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("key") == "nuget.org");
449Assert.Contains(packageSources.Elements("add"), e => (string?)e.Attribute("value") == "https://example.com/aspire-daily");
459var nugetMapping = psm.Elements("packageSource").FirstOrDefault(ps => (string?)ps.Attribute("key") == "nuget.org");
461Assert.Contains(nugetMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "*");
464var aspireMapping = psm.Elements("packageSource").FirstOrDefault(ps => (string?)ps.Attribute("key") == "https://example.com/aspire-daily");
466Assert.Contains(aspireMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "Aspire*");
467Assert.Contains(aspireMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "Microsoft.Extensions.ServiceDiscovery*");
512Assert.DoesNotContain(packageSources.Elements("add"),
516Assert.Contains(packageSources.Elements("add"),
520Assert.Contains(packageSources.Elements("add"),
526Assert.DoesNotContain(psm.Elements("packageSource"),
530var validExampleMapping = psm.Elements("packageSource")
533Assert.Contains(validExampleMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "*");
536var nugetMapping = psm.Elements("packageSource")
539Assert.Contains(nugetMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "Aspire*");
540Assert.Contains(nugetMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "Microsoft.Extensions.ServiceDiscovery*");
541Assert.Contains(nugetMapping.Elements("package"), p => (string?)p.Attribute("pattern") == "*");
544Assert.Equal(2, psm.Elements("packageSource").Count());
dotnet-svcutil-lib (6)
GenerateDocumentationAndConfigFiles (9)
IIS.FunctionalTests (3)
src\Servers\IIS\IIS\test\IIS.Shared.FunctionalTests\ApplicationInitializationTests.cs (1)
118.Elements("site"))
IIS.LongTests (2)
IIS.NewHandler.FunctionalTests (2)
IIS.ShadowCopy.Tests (1)
IISExpress.FunctionalTests (3)
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.SemanticSearch.Extensions (1)
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.SetupNugetSources.Tests (9)
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)