Is it possible to use Moq to say a method accepts a string that starts with “ABC” for example.
As an example something like this:
logger.Verify(x => x.WriteData(Moq.It.IsAny<string>().StartsWith("ABC")), Times.Exactly(3));
That wont compile but hopefully it illustrates my point
try:
you can see another example of It.Is:
that comes from Moq documentation: https://github.com/Moq/moq4/wiki/Quickstart