I have a test where at some point two lists are compared.
IsEqual(List<string> a, List<string> b, ComparisonConfig conf)
The above function returns true result if List A equals List B and false result otherwise.
In tests I need to setup this function so it returns correct outcome when its called.
_service
.Setup(x => x.IsEqual(It.IsAny<List<string>>(), It.IsAny<List<string>>(), null))
.Returns(Result.Ok(true));
for now this always returns true even though lists are not equal.
So the question is how can I make this setup return Result.Ok(true) when arguments are equal and Result.Ok(false) otherwise.