Skip to content

Commit

Permalink
style: updated formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
samtrion committed Aug 26, 2024
1 parent 53ec440 commit 3520593
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/NetEvolve.Logging.XUnit/XUnitLogger.cs
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ internal static string LogLevelToString(LogLevel logLevel) =>
LogLevel.Warning => "WARN",
LogLevel.Error => "FAIL",
LogLevel.Critical => "CRIT",
_ => "NONE"
_ => "NONE",
};

/// <inheritdoc/>
Expand Down
6 changes: 3 additions & 3 deletions src/NetEvolve.Logging.XUnit/XUnitLoggerOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public class XUnitLoggerOptions : IXUnitLoggerOptions
DisableAdditionalInformation = true,
DisableLogLevel = true,
DisableScopes = true,
DisableTimestamp = true
DisableTimestamp = true,
};

/// <summary>
Expand All @@ -32,7 +32,7 @@ public class XUnitLoggerOptions : IXUnitLoggerOptions
DisableAdditionalInformation = false,
DisableLogLevel = false,
DisableScopes = false,
DisableTimestamp = false
DisableTimestamp = false,
};

/// <summary>
Expand All @@ -43,7 +43,7 @@ public class XUnitLoggerOptions : IXUnitLoggerOptions
{
DisableAdditionalInformation = true,
DisableScopes = true,
DisableTimestamp = true
DisableTimestamp = true,
};

/// <inheritdoc cref="IXUnitLoggerOptions.DisableAdditionalInformation"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ public void AddXUnit_TestCase2_Expected()
XUnitLoggerOptions.Default,
XUnitLoggerOptions.EnableAllFeatures,
XUnitLoggerOptions.DisableAllFeatures,
XUnitLoggerOptions.Minimal
XUnitLoggerOptions.Minimal,
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,6 @@ public void AddXUnit_TestCase2_Expected()
XUnitLoggerOptions.Default,
XUnitLoggerOptions.EnableAllFeatures,
XUnitLoggerOptions.DisableAllFeatures,
XUnitLoggerOptions.Minimal
XUnitLoggerOptions.Minimal,
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public async Task LoggedMessages_Theory_Expected(
DisableLogLevel = disableLogLevel,
DisableScopes = disableScopes,
DisableTimestamp = disableTimestamp,
TimestampFormat = formatTimestamp!
TimestampFormat = formatTimestamp!,
};
var logger = XUnitLogger.CreateLogger<TestCase1>(
_testOutputHelper,
Expand Down Expand Up @@ -90,7 +90,7 @@ public async Task ToString_Theory_Expected(
DisableLogLevel = disableLogLevel,
DisableScopes = disableScopes,
DisableTimestamp = disableTimestamp,
TimestampFormat = formatTimestamp!
TimestampFormat = formatTimestamp!,
};
var logger = XUnitLogger.CreateLogger<TestCase1>(
_testOutputHelper,
Expand Down Expand Up @@ -123,6 +123,6 @@ public async Task ToString_Theory_Expected(
{ false, true, false, false, null },
{ false, false, true, false, null },
{ false, false, false, true, null },
{ false, false, false, false, "yyyy-MM-dd HH:mm:ss" }
{ false, false, false, false, "yyyy-MM-dd HH:mm:ss" },
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ bool disableTimestamp
DisableLogLevel = disableLogLevel,
DisableScopes = disableScopes,
DisableTimestamp = disableTimestamp,
TimestampFormat = _timestampFormat
TimestampFormat = _timestampFormat,
};
var logger = XUnitLogger.CreateLogger<TestCase1>(
_testOutputHelper,
Expand Down Expand Up @@ -78,7 +78,7 @@ bool disableTimestamp
DisableLogLevel = disableLogLevel,
DisableScopes = disableScopes,
DisableTimestamp = disableTimestamp,
TimestampFormat = _timestampFormat
TimestampFormat = _timestampFormat,
};
var logger = XUnitLogger.CreateLogger<TestCase2>(
_testOutputHelper,
Expand Down Expand Up @@ -117,7 +117,7 @@ bool disableTimestamp
DisableLogLevel = disableLogLevel,
DisableScopes = disableScopes,
DisableTimestamp = disableTimestamp,
TimestampFormat = _timestampFormat
TimestampFormat = _timestampFormat,
};
var logger = XUnitLogger.CreateLogger(
_fixture.MessageSink,
Expand Down Expand Up @@ -159,7 +159,7 @@ bool disableTimestamp
DisableLogLevel = disableLogLevel,
DisableScopes = disableScopes,
DisableTimestamp = disableTimestamp,
TimestampFormat = _timestampFormat
TimestampFormat = _timestampFormat,
};
var logger = XUnitLogger.CreateLogger(
_fixture.MessageSink,
Expand Down Expand Up @@ -201,7 +201,7 @@ bool disableTimestamp
DisableLogLevel = disableLogLevel,
DisableScopes = disableScopes,
DisableTimestamp = disableTimestamp,
TimestampFormat = _timestampFormat
TimestampFormat = _timestampFormat,
};
var logger = XUnitLogger.CreateLogger<TestCase1>(
_fixture.MessageSink,
Expand Down Expand Up @@ -243,7 +243,7 @@ bool disableTimestamp
DisableLogLevel = disableLogLevel,
DisableScopes = disableScopes,
DisableTimestamp = disableTimestamp,
TimestampFormat = _timestampFormat
TimestampFormat = _timestampFormat,
};
var logger = XUnitLogger.CreateLogger<TestCase2>(
_fixture.MessageSink,
Expand Down Expand Up @@ -278,6 +278,6 @@ bool disableTimestamp
{ false, true, false, false },
{ false, false, true, false },
{ false, false, false, true },
{ false, false, false, false }
{ false, false, false, false },
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public void LogLevelToString_Theory_Expected(string expected, LogLevel logLevel)
{ "WARN", LogLevel.Warning },
{ "FAIL", LogLevel.Error },
{ "CRIT", LogLevel.Critical },
{ "NONE", LogLevel.None }
{ "NONE", LogLevel.None },
};

[Fact]
Expand Down

0 comments on commit 3520593

Please sign in to comment.