Skip to content

Commit

Permalink
Fix Parameter order passed to ConfigurationDebugViewContext (dotnet#7…
Browse files Browse the repository at this point in the history
  • Loading branch information
tarekgh committed Nov 15, 2022
1 parent 469a75e commit a6ec7b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ public void NonSecretsAreNotConcealed()

var debugView = config.GetDebugView(ProcessValue);

Assert.DoesNotContain(SecretCover, debugView);
Assert.Equal("foo=foo-value (TestConfigurationProvider)" + Environment.NewLine, debugView);
}

private string ProcessValue(ConfigurationDebugViewContext context)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ void RecurseChildren(
if (valueAndProvider.Provider != null)
{
string? value = processValue != null
? processValue(new ConfigurationDebugViewContext(child.Key, child.Path, valueAndProvider.Value, valueAndProvider.Provider))
? processValue(new ConfigurationDebugViewContext(child.Path, child.Key, valueAndProvider.Value, valueAndProvider.Provider))
: valueAndProvider.Value;

stringBuilder
Expand Down

0 comments on commit a6ec7b9

Please sign in to comment.