Skip to content
Merged
Changes from all commits
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
9 changes: 5 additions & 4 deletions Shared.Tests/ConfigurationRootExtensionsTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
public partial class SharedTests
{
#region Properties


#endregion

#region Methods
Expand All @@ -44,10 +44,11 @@ public void ConfigurationRootExtensions_LogConfiguration_ConfigurationIsLogged()
String[] loggedEntries = this.FilterLogEntries(testLogger);
Int32 expectedCount = TestHelpers.DefaultAppSettings.Count; // 5 headers
loggedEntries.Length.ShouldBe(expectedCount, String.Join(Environment.NewLine, loggedEntries.ToArray()));
loggedEntries.Where(l => l.Contains("No Value")).Count().ShouldBe(1);
loggedEntries.Count(l => l.Contains("No Value")).ShouldBe(1);
}

private string[] FilterLogEntries(TestLogger testLogger) {
private string[] FilterLogEntries(TestLogger testLogger)
{
return testLogger.GetLogEntries().Where(l => !l.Contains("PSLockDownPolicy") && !String.IsNullOrEmpty(l))
.Where(l => !l.Contains("Configuration Section"))
.Where(l => !l.Contains("CF_USER_TEXT_ENCODING")).ToArray();
Expand Down
Loading