38 references to GetProperty
Aspire.Hosting.Tests (38)
Dcp\ResourceSnapshotBuilderTests.cs (38)
150Assert.Equal("ide", GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 153Assert.Equal(configuration, GetProperty(snapshot, KnownProperties.Project.Configuration).Value); 159Assert.False(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).IsSensitive); 160Assert.True(GetProperty(snapshot, KnownProperties.Executable.Args).IsSensitive); 202Assert.Equal("ide", GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 203Assert.Equal("Release", GetProperty(snapshot, KnownProperties.Project.Configuration).Value); 248Assert.Equal("/app/project.csproj", GetProperty(snapshot, KnownProperties.Project.Path).Value); 249Assert.Equal(executablePath, GetProperty(snapshot, KnownProperties.Executable.Path).Value); 250Assert.Equal(1234, GetProperty(snapshot, KnownProperties.Executable.Pid).Value); 251Assert.Equal("direct", GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 255Assert.Equal(targetPath, GetProperty(snapshot, KnownProperties.Project.TargetPath).Value); 256Assert.Equal(useAppHost, GetProperty(snapshot, KnownProperties.Project.UseAppHost).Value); 257Assert.False(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).IsSensitive); 258Assert.True(GetProperty(snapshot, KnownProperties.Executable.Args).IsSensitive); 355Assert.Equal(expectedLaunchCommand, Assert.IsType<string>(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value)); 356Assert.Equal("Release", Assert.IsType<string>(GetProperty(snapshot, KnownProperties.Project.Configuration).Value)); 357Assert.Equal("net10.0", Assert.IsType<string>(GetProperty(snapshot, KnownProperties.Project.TargetFramework).Value)); 358Assert.True(GetProperty(snapshot, KnownProperties.Executable.Args).IsSensitive); 359Assert.False(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).IsSensitive); 360Assert.False(GetProperty(snapshot, KnownProperties.Project.Configuration).IsSensitive); 361Assert.False(GetProperty(snapshot, KnownProperties.Project.TargetFramework).IsSensitive); 402Assert.Null(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 446Assert.Null(GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 514Assert.True(GetProperty(snapshot, KnownProperties.Executable.Args).IsSensitive); 540Assert.Equal(launchCommand, GetProperty(snapshot, KnownProperties.Project.LaunchCommand).Value); 541Assert.Equal("Release", GetProperty(snapshot, KnownProperties.Project.Configuration).Value); 542Assert.Equal("net10.0", GetProperty(snapshot, KnownProperties.Project.TargetFramework).Value); 563var launchCommand = GetProperty(snapshot, KnownProperties.Project.LaunchCommand); 587var launchCommand = GetProperty(snapshot, KnownProperties.Project.LaunchCommand); 611Assert.Equal("python", GetProperty(snapshot, propertyName).Value); 612Assert.Equal(resource.WorkingDirectory, GetProperty(snapshot, KnownProperties.Resource.SourcePath).Value); 618Assert.Equal(resource.WorkingDirectory, GetProperty(snapshot, KnownProperties.Resource.SourcePath).Value); 627Assert.Equal(resource.WorkingDirectory, GetProperty(snapshot, KnownProperties.Resource.SourcePath).Value); 701Assert.True(GetProperty(snapshot, KnownProperties.Resource.AppArgs).IsSensitive); 702Assert.True(GetProperty(snapshot, KnownProperties.Resource.AppArgsSensitivity).IsSensitive); 814var property = GetProperty(snapshot, name); 823var property = GetProperty(snapshot, name); 832var property = GetProperty(snapshot, name);