Wie generische Methode zum Einrichten moq Bibliothek in C#moq generische Methode Setup auf Schnittstelle
Interface IA
{
void foo();
void Get<T>();
}
[Fact]
public void SetupGenericMethod()
{
var mock = new Mock<IA>();
mock.Setup(x=> x.Get<It.IsAny<???>()>()
}
Jede Hilfe zu diesem verwendet, ist wirklich zu schätzen. Vielen Dank für Ihre Zeit
Mögliches Duplikat von [Mocking generische Methoden in Moq ohne Angabe von T] (http://stackoverflow.com/questions/20072429/mocking-generic-methods-in-moq-without-specifying-t) –