Getting TimedOut Exception while creating MockingContainer

3 posts, 0 answers
  1. Roshan
    Roshan avatar
    2 posts
    Member since:
    May 2019

    Posted 24 May Link to this post

    Instance creation timed out and aborted 
  2. Roshan
    Roshan avatar
    2 posts
    Member since:
    May 2019

    Posted 24 May Link to this post

    Please find attached screenshot
  3. Lyubomir Rusev
    Admin
    Lyubomir Rusev avatar
    4 posts

    Posted 28 May Link to this post

    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
Back to Top