WireMock.Net is a flexible product for stubbing and mocking web HTTP responses using advanced request matching and response templating. Based on the functionality from http://WireMock.org, but extended with more functionality.
Apache License 2.0
1.35k
stars
197
forks
source link
Use try..catch to set encoding in WireMockConsoleLogger #1104
In Linqpad, the "console" is just a facade over web browser output, so calling Console.OutputEncoding = System.Text.Encoding.UTF8 in the constructor for WireMockConsoleLogger throws an exception.
This PR adds a try..catch block to that code, so that the logger can be used in Linqpad (and any other non-standard consoles).
In Linqpad, the "console" is just a facade over web browser output, so calling
Console.OutputEncoding = System.Text.Encoding.UTF8
in the constructor forWireMockConsoleLogger
throws an exception.This PR adds a
try..catch
block to that code, so that the logger can be used in Linqpad (and any other non-standard consoles).