aspnet / KestrelHttpServer

[Archived] A cross platform web server for ASP.NET Core. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
2.63k stars 528 forks source link

Fix tests that were mocking ILogger #3066

Closed pakrym closed 5 years ago

pakrym commented 5 years ago

Use TestSink.MessageLogged instead.

Tratcher commented 5 years ago

Do you have a summary for why it was broken?

pakrym commented 5 years ago

We started using structs as TState in ILogger.Log().

I wasn't able to find an easy way of setting up Mock method where T is an unknown struct but it doesn't matter much because mocks are not required there at all.

halter73 commented 5 years ago

https://github.com/moq/moq4/issues/343