11 writes to Features
aspire (1)
Configuration\AspireConfigFile.cs (1)
484
config.
Features
= settings.Features;
Aspire.Cli.Tests (10)
Configuration\AspireConfigFileTests.cs (1)
700
Features
= new Dictionary<string, bool>
Configuration\KnownFeaturesTests.cs (2)
22
config.
Features
= new Dictionary<string, bool> { [KnownFeatures.AppHostServerV2] = value };
43
config.
Features
= new Dictionary<string, bool>
Projects\GuestAppHostProjectTests.cs (3)
73
Features
= new() { [KnownFeatures.AppHostServerV2] = true }
126
Features
= new Dictionary<string, bool>
2202
Features
= new() { [KnownFeatures.AppHostServerV2] = true }
Projects\NativeAppHostServerProjectTests.cs (4)
41
new AspireConfigFile {
Features
= new() { [KnownFeatures.AppHostServerV2] = true } }.Save(enabled.FullName);
42
new AspireConfigFile {
Features
= new() { [KnownFeatures.AppHostServerV2] = false } }.Save(disabled.FullName);
59
new AspireConfigFile {
Features
= new() { [KnownFeatures.AppHostServerV2] = true } }.Save(workspace.Path);
71
new AspireConfigFile {
Features
= new() { [KnownFeatures.AppHostServerV2] = true } }.Save(workspace.Path);
22 references to Features
aspire (2)
KnownFeatures.cs (2)
42
=> config?.
Features
is { } features && features.TryGetValue(AppHostServerV2, out var enabled) && enabled;
151
return config.
Features
is { } projectFeatures
Aspire.Cli.Tests (20)
Commands\ConfigCommandTests.cs (2)
831
Assert.NotNull(config?.
Features
);
832
Assert.True(config.
Features
[featureName]);
Commands\TemplateSourceStartupTests.cs (2)
332
Assert.NotNull(migrated.
Features
);
333
Assert.False(migrated.
Features
["defaultWatchEnabled"]);
Configuration\AspireConfigFileTests.cs (9)
667
Assert.NotNull(result.
Features
);
668
Assert.True(result.
Features
["polyglotSupportEnabled"]);
669
Assert.False(result.
Features
["showAllTemplates"]);
688
Assert.NotNull(result.
Features
);
689
Assert.True(result.
Features
["polyglotSupportEnabled"]);
690
Assert.False(result.
Features
["showAllTemplates"]);
710
Assert.NotNull(loaded?.
Features
);
711
Assert.True(loaded.
Features
["polyglotSupportEnabled"]);
712
Assert.False(loaded.
Features
["showAllTemplates"]);
Configuration\ConfigSourceServiceGitTests.cs (1)
479
Assert.Equal(new Dictionary<string, bool> { ["feature:name"] = true }, config.
Features
);
Configuration\ConfigurationHelperTests.cs (4)
424
Assert.NotNull(config?.
Features
);
425
Assert.True(config.
Features
["polyglotSupportEnabled"]);
426
Assert.False(config.
Features
["showAllTemplates"]);
587
Assert.Equal(new Dictionary<string, bool> { ["feature:name"] = true }, config.
Features
);
Configuration\ConfigurationServiceTests.cs (2)
776
Assert.NotNull(config?.
Features
);
777
Assert.True(config.
Features
["polyglotSupportEnabled"]);