Ilya Chernomordik

Results 8 comments of Ilya Chernomordik

Here is a mini version to verify the basics that can be extended further if anyone is interested: ```csharp public class LoggerMock : ILogger { readonly Stack _events = new...

I have found out that actually testing on extension method does work out of the box: ```csharp _logger .Received(1) .LogError(myException, "Exception happened"); ``` I am actually not sure why. It...

Thanks for the answer, I guess it's wise to follow your advise. I am curious though on why it suddenly started working? Since methods are still static and Nubstitute cannot...

@moikot Yes, thanks for the explanation, I guess I understand how it works. Maybe Microsoft will switch from using extension methods to the interface with default implementation in C#8, that...

I have created a project from scratch with latest version of stackexchange redis and nsubstitute. And I got en error right away (using @nkosihenry example with only nsubstitute, I did...

That's interesting, it does not seem that they took away internal abstract methods from RedisResult, so it might be something else after all. Thanks for checking this out @dtchepak

A more useful exception sounds always like a good idea to me. Though not trying to auto-sub in this edge case would be strange, since it does do that other...

It is quite a questionable design I guess as well to have internal methods on interface. In my opinion it should rather be public interfaces and internal interfaces, with the...