This is a migrated thread and some comments may be shown as answers.

Getting TimedOut Exception while creating MockingContainer

2 Answers 79 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Roshan
Top achievements
Rank 1
Roshan asked on 24 May 2019, 05:19 AM
Instance creation timed out and aborted 

2 Answers, 1 is accepted

Sort by
0
Roshan
Top achievements
Rank 1
answered on 24 May 2019, 05:23 AM
Please find attached screenshot
0
Lyubomir Rusev
Telerik team
answered on 28 May 2019, 07:55 AM
Hello Roshan,

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
Tags
General Discussions
Asked by
Roshan
Top achievements
Rank 1
Answers by
Roshan
Top achievements
Rank 1
Lyubomir Rusev
Telerik team
Share this question
or