You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I want to mock third one. So I create a mock setup like this.
var clientMock = new Mock<GitHttpClientBase>().Setup(p =>
p.GetThreadsAsync(RepositoryId, 53, It.IsAny<int?>, It.IsAny<int?>, It.IsAny<object>, It.IsAny<CancellationToken>())).ReturnsAsync(new List<GitPullRequestCommentThread>());
It cases these errors. It looks the compiler misunderstand the target orverload. Am I wrong? Any workaround here?
Severity Code Description Project File Line Suppression State
Error CS1503 Argument 2: cannot convert from 'int' to 'string' APISpike C:\Users\tsushi\source\repos\PullRequestBot\APISpike\Program.cs 62 Active
Severity Code Description Project File Line Suppression State
Error CS1503 Argument 3: cannot convert from 'method group' to 'int' APISpike C:\Users\tsushi\source\repos\PullRequestBot\APISpike\Program.cs 62 Active
Severity Code Description Project File Line Suppression State
Error CS1503 Argument 4: cannot convert from 'method group' to 'int?' APISpike C:\Users\tsushi\source\repos\PullRequestBot\APISpike\Program.cs 62 Active
Severity Code Description Project File Line Suppression State
Error CS1503 Argument 5: cannot convert from 'method group' to 'int?' APISpike C:\Users\tsushi\source\repos\PullRequestBot\APISpike\Program.cs 62 Active
The text was updated successfully, but these errors were encountered:
Hello,
I'm encounter the issue that I can't mock a method.
It has a abstract class with these methods.
I want to mock third one. So I create a mock setup like this.
It cases these errors. It looks the compiler misunderstand the target orverload. Am I wrong? Any workaround here?
The text was updated successfully, but these errors were encountered: