MissingMethodException with Task<> as return value of the method to stub
72 views
Skip to first unread message
chao tian
unread,
Dec 11, 2014, 9:35:03 PM12/11/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to rhino...@googlegroups.com
Stub() throws MissingMethodException: Constructor on type 'Task`1Proxy4954f20fb2d640d5a07ecbd60e27a719' not found. This is a very basic scenario that should just work. Does anyone know why?
public interface ITest
{
Task<int> GetValue();
}
ITest test = MockRepository.GenerateMock<ITest>();
test.Stub(x => x.GetValue());
haifisch
unread,
Dec 19, 2014, 3:46:06 AM12/19/14
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message