xUnit: Can't assert exceptions
Hello, there! I want to compare exception types, but I'm getting error.
Here's my code:
Here's an error:
Here's part of code which I want to test:
5 Replies
Can you show the code for
_endpoint.GetReport
?You're not initializing ApiKey in that method though, it seems like it's already initialized in earlier code
yep, and I realised that I should created an Endpoint class in test, not in constructor, thanks!
