Telerik JustMock
var foo = Mock.Create<FooGeneric<
int
>>();
[TestMethod]
public
void
ShouldMockGenericMethodInNonGenericClass()
{
//Arrange
var foo = Mock.Create<Foo>();
Mock.Arrange(() => foo.Get<
int
,
int
>(1)).Returns(10);
// Act
var actual = foo.Get<
int
,
int
>(1);
//Assert
Assert.AreEqual(10, actual);
}