11 writes to Features
aspire (1)
Configuration\AspireConfigFile.cs (1)
466
config.
Features
= settings.Features;
Aspire.Cli.Tests (10)
Configuration\AspireConfigFileTests.cs (1)
641
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>
2199
Features
= new() { [KnownFeatures.AppHostServerV2] = true }
Projects\NativeAppHostServerProjectTests.cs (4)
32
new AspireConfigFile {
Features
= new() { [KnownFeatures.AppHostServerV2] = true } }.Save(enabled.FullName);
33
new AspireConfigFile {
Features
= new() { [KnownFeatures.AppHostServerV2] = false } }.Save(disabled.FullName);
50
new AspireConfigFile {
Features
= new() { [KnownFeatures.AppHostServerV2] = true } }.Save(workspace.Path);
62
new AspireConfigFile {
Features
= new() { [KnownFeatures.AppHostServerV2] = true } }.Save(workspace.Path);
22 references to Features
aspire (2)
KnownFeatures.cs (2)
43
=> config?.
Features
is { } features && features.TryGetValue(AppHostServerV2, out var enabled) && enabled;
161
return config.
Features
is { } projectFeatures
Aspire.Cli.Tests (20)
Commands\ConfigCommandTests.cs (2)
842
Assert.NotNull(config?.
Features
);
843
Assert.True(config.
Features
[featureName]);
Commands\TemplateSourceStartupTests.cs (2)
332
Assert.NotNull(migrated.
Features
);
333
Assert.False(migrated.
Features
["defaultWatchEnabled"]);
Configuration\AspireConfigFileTests.cs (9)
608
Assert.NotNull(result.
Features
);
609
Assert.True(result.
Features
["polyglotSupportEnabled"]);
610
Assert.False(result.
Features
["showAllTemplates"]);
629
Assert.NotNull(result.
Features
);
630
Assert.True(result.
Features
["polyglotSupportEnabled"]);
631
Assert.False(result.
Features
["showAllTemplates"]);
651
Assert.NotNull(loaded?.
Features
);
652
Assert.True(loaded.
Features
["polyglotSupportEnabled"]);
653
Assert.False(loaded.
Features
["showAllTemplates"]);
Configuration\ConfigSourceServiceGitTests.cs (1)
472
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)
530
Assert.NotNull(config?.
Features
);
531
Assert.True(config.
Features
["polyglotSupportEnabled"]);