When setting up an Mock object to return a specific value regardless of input parameters I currently have to effectively write out the full signature, e.g.
Mock.Get(myThing).Setup(x => x.DoThing(It.IsAny<Int32>(), It.IsAny<String>(), It.IsAny<IEnumerable<Boolean>>())).Returns(false)
This is a little tedious if there are multiple input parameters and I don't care about any of them, so is there a way that I can say It.IsAnyForAllInputParameters()?
Aucun commentaire:
Enregistrer un commentaire