Assert exceptions with Verify instead of FluentAssertions #682
continuous-integration.yml
on: push
Matrix: 🛠 Build, test and pack
🐿 Publish
0s
Annotations
9 errors and 1 warning
Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.ExceptionFormatterThrowing
VerifyException : Directory: /Users/runner/work/serilog-formatting-log4net/serilog-formatting-log4net/tests
NotEqual:
- Received: Log4NetTextFormatterTest.ExceptionFormatterThrowing.received.txt
Verified: Log4NetTextFormatterTest.ExceptionFormatterThrowing.verified.txt
Equal:
- Received: Log4NetTextFormatterTest.ExceptionFormatterThrowing.received.xml
Verified: Log4NetTextFormatterTest.ExceptionFormatterThrowing.verified.xml
FileContent:
NotEqual:
Received: Log4NetTextFormatterTest.ExceptionFormatterThrowing.received.txt
{
target: null,
SelfLog:
[Serilog.Formatting.Log4Net.Log4NetTextFormatter] An exception was thrown while formatting an exception. Using the default exception formatter.
System.InvalidOperationException: 💥 Boom 💥
at Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.<>c.<ExceptionFormatterThrowing>b__29_1(Exception _) in {ProjectDirectory}Log4NetTextFormatterTest.cs:line 466
at Serilog.Formatting.Log4Net.Log4NetTextFormatter.FormatException(Exception exception) in /_/src/Log4NetTextFormatter.cs:line 424
}
Verified: Log4NetTextFormatterTest.ExceptionFormatterThrowing.verified.txt
{
target: null,
SelfLog:
[Serilog.Formatting.Log4Net.Log4NetTextFormatter] An exception was thrown while formatting an exception. Using the default exception formatter.
System.InvalidOperationException: 💥 Boom 💥
at Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.<>c.<ExceptionFormatterThrowing>b__29_1(Exception _) in {ProjectDirectory}Log4NetTextFormatterTest.cs:line 466
at Serilog.Formatting.Log4Net.Log4NetTextFormatter.FormatException(Exception exception) in {SolutionDirectory}src/Log4NetTextFormatter.cs:line 424
}
|
Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.FilterPropertyThrowing
VerifyException : Directory: /Users/runner/work/serilog-formatting-log4net/serilog-formatting-log4net/tests
NotEqual:
- Received: Log4NetTextFormatterTest.FilterPropertyThrowing.received.txt
Verified: Log4NetTextFormatterTest.FilterPropertyThrowing.verified.txt
Equal:
- Received: Log4NetTextFormatterTest.FilterPropertyThrowing.received.xml
Verified: Log4NetTextFormatterTest.FilterPropertyThrowing.verified.xml
FileContent:
NotEqual:
Received: Log4NetTextFormatterTest.FilterPropertyThrowing.received.txt
{
target: null,
SelfLog:
[Serilog.Formatting.Log4Net.Log4NetTextFormatter] An exception was thrown while filtering property 'two'. Including the property in the log4net event.
System.InvalidOperationException: Can't handle property 'two'.
at Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.<>c.<FilterPropertyThrowing>b__24_1(LogEvent _, String propertyName) in {ProjectDirectory}Log4NetTextFormatterTest.cs:line 389
at Serilog.Formatting.Log4Net.Log4NetTextFormatter.IncludeProperty(LogEvent logEvent, String propertyName) in /_/src/Log4NetTextFormatter.cs:line 266
}
Verified: Log4NetTextFormatterTest.FilterPropertyThrowing.verified.txt
{
target: null,
SelfLog:
[Serilog.Formatting.Log4Net.Log4NetTextFormatter] An exception was thrown while filtering property 'two'. Including the property in the log4net event.
System.InvalidOperationException: Can't handle property 'two'.
at Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.<>c.<FilterPropertyThrowing>b__24_1(LogEvent _, String propertyName) in {ProjectDirectory}Log4NetTextFormatterTest.cs:line 389
at Serilog.Formatting.Log4Net.Log4NetTextFormatter.IncludeProperty(LogEvent logEvent, String propertyName) in {SolutionDirectory}src/Log4NetTextFormatter.cs:line 266
}
|
🛠 Build, test and pack (macos-latest)
Process completed with exit code 1.
|
Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.ExceptionFormatterThrowing
VerifyException : Directory: /home/runner/work/serilog-formatting-log4net/serilog-formatting-log4net/tests
NotEqual:
- Received: Log4NetTextFormatterTest.ExceptionFormatterThrowing.received.txt
Verified: Log4NetTextFormatterTest.ExceptionFormatterThrowing.verified.txt
Equal:
- Received: Log4NetTextFormatterTest.ExceptionFormatterThrowing.received.xml
Verified: Log4NetTextFormatterTest.ExceptionFormatterThrowing.verified.xml
FileContent:
NotEqual:
Received: Log4NetTextFormatterTest.ExceptionFormatterThrowing.received.txt
{
target: null,
SelfLog:
[Serilog.Formatting.Log4Net.Log4NetTextFormatter] An exception was thrown while formatting an exception. Using the default exception formatter.
System.InvalidOperationException: 💥 Boom 💥
at Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.<>c.<ExceptionFormatterThrowing>b__29_1(Exception _) in {ProjectDirectory}Log4NetTextFormatterTest.cs:line 466
at Serilog.Formatting.Log4Net.Log4NetTextFormatter.FormatException(Exception exception) in /_/src/Log4NetTextFormatter.cs:line 424
}
Verified: Log4NetTextFormatterTest.ExceptionFormatterThrowing.verified.txt
{
target: null,
SelfLog:
[Serilog.Formatting.Log4Net.Log4NetTextFormatter] An exception was thrown while formatting an exception. Using the default exception formatter.
System.InvalidOperationException: 💥 Boom 💥
at Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.<>c.<ExceptionFormatterThrowing>b__29_1(Exception _) in {ProjectDirectory}Log4NetTextFormatterTest.cs:line 466
at Serilog.Formatting.Log4Net.Log4NetTextFormatter.FormatException(Exception exception) in {SolutionDirectory}src/Log4NetTextFormatter.cs:line 424
}
|
Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.FilterPropertyThrowing
VerifyException : Directory: /home/runner/work/serilog-formatting-log4net/serilog-formatting-log4net/tests
NotEqual:
- Received: Log4NetTextFormatterTest.FilterPropertyThrowing.received.txt
Verified: Log4NetTextFormatterTest.FilterPropertyThrowing.verified.txt
Equal:
- Received: Log4NetTextFormatterTest.FilterPropertyThrowing.received.xml
Verified: Log4NetTextFormatterTest.FilterPropertyThrowing.verified.xml
FileContent:
NotEqual:
Received: Log4NetTextFormatterTest.FilterPropertyThrowing.received.txt
{
target: null,
SelfLog:
[Serilog.Formatting.Log4Net.Log4NetTextFormatter] An exception was thrown while filtering property 'two'. Including the property in the log4net event.
System.InvalidOperationException: Can't handle property 'two'.
at Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.<>c.<FilterPropertyThrowing>b__24_1(LogEvent _, String propertyName) in {ProjectDirectory}Log4NetTextFormatterTest.cs:line 389
at Serilog.Formatting.Log4Net.Log4NetTextFormatter.IncludeProperty(LogEvent logEvent, String propertyName) in /_/src/Log4NetTextFormatter.cs:line 266
}
Verified: Log4NetTextFormatterTest.FilterPropertyThrowing.verified.txt
{
target: null,
SelfLog:
[Serilog.Formatting.Log4Net.Log4NetTextFormatter] An exception was thrown while filtering property 'two'. Including the property in the log4net event.
System.InvalidOperationException: Can't handle property 'two'.
at Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.<>c.<FilterPropertyThrowing>b__24_1(LogEvent _, String propertyName) in {ProjectDirectory}Log4NetTextFormatterTest.cs:line 389
at Serilog.Formatting.Log4Net.Log4NetTextFormatter.IncludeProperty(LogEvent logEvent, String propertyName) in {SolutionDirectory}src/Log4NetTextFormatter.cs:line 266
}
|
🛠 Build, test and pack (ubuntu-latest)
Process completed with exit code 1.
|
Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.ExceptionFormatterThrowing
VerifyException : Directory: D:\a\serilog-formatting-log4net\serilog-formatting-log4net\tests
NotEqual:
- Received: Log4NetTextFormatterTest.ExceptionFormatterThrowing.received.txt
Verified: Log4NetTextFormatterTest.ExceptionFormatterThrowing.verified.txt
Equal:
- Received: Log4NetTextFormatterTest.ExceptionFormatterThrowing.received.xml
Verified: Log4NetTextFormatterTest.ExceptionFormatterThrowing.verified.xml
FileContent:
NotEqual:
Received: Log4NetTextFormatterTest.ExceptionFormatterThrowing.received.txt
{
target: null,
SelfLog:
[Serilog.Formatting.Log4Net.Log4NetTextFormatter] An exception was thrown while formatting an exception. Using the default exception formatter.
System.InvalidOperationException: 💥 Boom 💥
at Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.<>c.<ExceptionFormatterThrowing>b__29_1(Exception _) in {ProjectDirectory}Log4NetTextFormatterTest.cs:line 466
at Serilog.Formatting.Log4Net.Log4NetTextFormatter.FormatException(Exception exception) in /_/src/Log4NetTextFormatter.cs:line 424
}
Verified: Log4NetTextFormatterTest.ExceptionFormatterThrowing.verified.txt
{
target: null,
SelfLog:
[Serilog.Formatting.Log4Net.Log4NetTextFormatter] An exception was thrown while formatting an exception. Using the default exception formatter.
System.InvalidOperationException: 💥 Boom 💥
at Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.<>c.<ExceptionFormatterThrowing>b__29_1(Exception _) in {ProjectDirectory}Log4NetTextFormatterTest.cs:line 466
at Serilog.Formatting.Log4Net.Log4NetTextFormatter.FormatException(Exception exception) in {SolutionDirectory}src/Log4NetTextFormatter.cs:line 424
}
|
Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.FilterPropertyThrowing
VerifyException : Directory: D:\a\serilog-formatting-log4net\serilog-formatting-log4net\tests
NotEqual:
- Received: Log4NetTextFormatterTest.FilterPropertyThrowing.received.txt
Verified: Log4NetTextFormatterTest.FilterPropertyThrowing.verified.txt
Equal:
- Received: Log4NetTextFormatterTest.FilterPropertyThrowing.received.xml
Verified: Log4NetTextFormatterTest.FilterPropertyThrowing.verified.xml
FileContent:
NotEqual:
Received: Log4NetTextFormatterTest.FilterPropertyThrowing.received.txt
{
target: null,
SelfLog:
[Serilog.Formatting.Log4Net.Log4NetTextFormatter] An exception was thrown while filtering property 'two'. Including the property in the log4net event.
System.InvalidOperationException: Can't handle property 'two'.
at Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.<>c.<FilterPropertyThrowing>b__24_1(LogEvent _, String propertyName) in {ProjectDirectory}Log4NetTextFormatterTest.cs:line 389
at Serilog.Formatting.Log4Net.Log4NetTextFormatter.IncludeProperty(LogEvent logEvent, String propertyName) in /_/src/Log4NetTextFormatter.cs:line 266
}
Verified: Log4NetTextFormatterTest.FilterPropertyThrowing.verified.txt
{
target: null,
SelfLog:
[Serilog.Formatting.Log4Net.Log4NetTextFormatter] An exception was thrown while filtering property 'two'. Including the property in the log4net event.
System.InvalidOperationException: Can't handle property 'two'.
at Serilog.Formatting.Log4Net.Tests.Log4NetTextFormatterTest.<>c.<FilterPropertyThrowing>b__24_1(LogEvent _, String propertyName) in {ProjectDirectory}Log4NetTextFormatterTest.cs:line 389
at Serilog.Formatting.Log4Net.Log4NetTextFormatter.IncludeProperty(LogEvent logEvent, String propertyName) in {SolutionDirectory}src/Log4NetTextFormatter.cs:line 266
}
|
🛠 Build, test and pack (windows-latest)
Process completed with exit code 1.
|
🛠 Build, test and pack (ubuntu-latest)
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
|
Artifacts
Produced during runtime
Name | Size | Digest | |
---|---|---|---|
Received-Linux
Expired
|
1.02 KB |
sha256:70b72edb278886a343b66627d3006761b442d00d1f8f0162da1a1c3c23fd98d2
|
|
Received-Windows
Expired
|
1.02 KB |
sha256:db3b290907fb11354b2f1626ea7144a68abaa500a40dd01c2edea969e7212fd2
|
|
Received-macOS
Expired
|
1.02 KB |
sha256:a904cc9ef31e64ab23e58a11f6bb5946ac4d41cc70d926be20122561c249d657
|
|
TestResults (Linux)
Expired
|
3.1 KB |
sha256:36a7e0781efb29bf57933ec72bf43254cdacc713b037ade65994b78c759eda3d
|
|
TestResults (Windows)
Expired
|
2.92 KB |
sha256:31d9cb0b6ff30bdfc5c6e683e3a7f5f638ac22e71c1a72207d54a15884ccf935
|
|
TestResults (macOS)
Expired
|
3.12 KB |
sha256:629b319ffff8bfee9bbe7ba342c5d8f3939aa9016c885129567e79909b7977f7
|
|