We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9da4c26 commit 18965a3Copy full SHA for 18965a3
src/Samhammer.Options.Test/OptionsResolverTest.cs
@@ -68,6 +68,17 @@ public void OptionsFromConfiguration()
68
result.Value.Should().BeEquivalentTo(expected);
69
}
70
71
+ [Fact]
72
+ public void OptionsFromConfiguration_MissingSection()
73
+ {
74
+ services.ResolveOptions(Configuration);
75
+
76
+ var result = ServiceProvider.GetService<IOptions<TestOptions>>();
77
+ var expected = new TestOptions();
78
79
+ result.Value.Should().BeEquivalentTo(expected);
80
+ }
81
82
[Fact]
83
public void OptionsFromConfigurationAndCode()
84
{
0 commit comments