Setup Method With Params Array
问题 I am developing tests for an application. There's a method that has a params array as a parameter. I have set up the method using Moq but when I run the test, the return value of the method is null, which means it is not being mocked. Here's a code sample: public interface ITicketManager { string GetFirstTicketInQueueIfMatches(params string[] ticketsToMatch); } public class TicketManager : ITicketManager { private Queue<string> ticketQueue = new Queue<string>(); public string