Closed daveoftheparty closed 8 months ago
This interface:
public interface IService { Task<ServiceResponse> FooAsync(string foo, object bar, EventProcessRequest body, CancellationToken cancellationToken = default); }
produced this mock setup which is invalid code:
service .Setup(fooAsync) .Returns((string foo, object bar, EventProcessRequest body, CancellationToken cancellationToken = default(CancellationToken)) => { return default; });
it's the = default(CancellationToken that is the problem
= default(CancellationToken
This interface:
produced this mock setup which is invalid code:
it's the
= default(CancellationToken
that is the problem