I have tried to reproduce the issue on our side and came up with the following test scenario:
public interface IDependency
{
void DoWork();
}
public class SUT
{
private readonly IDependency dep;
public SUT(IDependency d)
{
this.dep = d;
}
}
[TestMethod]
public void TestMockingContainer()
{
var container = new MockingContainer<SUT>();
Mock.Assert(true);
}
If I place a breakpoint on Mock.Assert(true) I receive the following error:
To prevent an unsafe abort when evaluating the function 'Telerik.JustMock.AutoMock.MockingContainer<T>.Instance.get' all threads were allowed to run. This may have changed the state of the process and any breakpoints encountered have been skipped.
Can you confirm that the above snippet is identical to your test scenario so we can determine if we're dealing with the same issue. Please provide us with more details about your use-case if I'm missing something.
Looking forward for your feedback.
Regards,
Lyubomir Rusev
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items