I have an interface like this:
public interface IConfigManager {
T GetSetting<T>();
}
On test project, I add fake for above dll, but cannot write fake method for it. Open the generated code, it looks like:
public class StubIConfigManager : StubBase<IConfigManager>, IConfigManager
{
// Summary:
// Sets stubs of GetSetting()
public void GetSettingOf1<T>(FakesDelegates.Func<T> stub);
}
Because GetSettingOf1
was not define as a delegate so I can use lambda expression to fake.
How can I fake it?