I'm using JustMock Q1 2012 SP1 (2012.1.508.6) and when I try to create a mock of the Thread class, I get an exception.
I tried the following methods:
- var mock = Mock.Create<Thread>.Create(any argument);
- var mock = Mock.Create<Thread>.Create(new Thread(delegate{}));
Both fails whether I use the MockClass attribute or not.
Any suggestion?
Thanks.
I tried the following methods:
- var mock = Mock.Create<Thread>.Create(any argument);
- var mock = Mock.Create<Thread>.Create(new Thread(delegate{}));
Both fails whether I use the MockClass attribute or not.
Any suggestion?
Thanks.