How to setup generic method using moq library in C#
Interface IA
{
void foo();
void Get<T>();
}
[Fact]
public void SetupGenericMethod()
{
var mock = new Mock<IA>();
mock.Setup(x=> x.Get<It.IsAny<???>()>()
}
Any help on this one is really appreciated. Thanks a bunch for your time
Aucun commentaire:
Enregistrer un commentaire