I am a newbie to XUnit and Moq. I have a method which takes string as an argument.How to handle an exception using XUnit.
[Fact] public void ProfileRepositor
You could consider something like this if you want to stick to AAA:
// Act Task act() => handler.Handle(request); // Assert await Assert.ThrowsAsync(act);