Skip to content

Assert exceptions with Verify instead of FluentAssertions #682

Assert exceptions with Verify instead of FluentAssertions

Assert exceptions with Verify instead of FluentAssertions #682

Triggered via push December 19, 2024 20:50
Status Failure
Total duration 1m 58s
Artifacts 6
Matrix: 🛠 Build, test and pack
🐿 Publish
0s
🐿 Publish
Fit to window
Zoom out
Zoom in

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
Received-Linux
1.02 KB
Received-Windows
1.02 KB
Received-macOS
1.02 KB
TestResults (Linux)
3.1 KB
TestResults (Windows)
2.92 KB
TestResults (macOS)
3.12 KB