Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update test
  • Loading branch information
maryamariyan committed Dec 15, 2021
commit be9e9a5d2caf99870c3853f2f08ab4ee29aa305d
Original file line number Diff line number Diff line change
Expand Up @@ -99,11 +99,11 @@ public void AddUserSecrets_ThrowsIfAssemblyAttributeFromType()


[Fact]
public void AddUserSecrets_DoesNotThrowsIfOptional()
public void AddUserSecrets_DoesNotThrowsIfOptionalByDefault()
{
var config = new ConfigurationBuilder()
.AddUserSecrets<string>(optional: true)
.AddUserSecrets(typeof(List<>).Assembly, optional: true)
.AddUserSecrets<string>()
.AddUserSecrets(typeof(List<>).Assembly)
.Build();

Assert.Empty(config.AsEnumerable());
Expand Down