ArrangeSet() Assert Bug When Referring To Same Subproperty Name of Two Parent Properties of the Same Type

2 posts, 0 answers
  1. Marc
    Marc avatar
    5 posts
    Member since:
    May 2015

    Posted 15 Sep 2016 Link to this post

    JustMock R3 2016 (2016.3.914.2)

    The below test will pass when the second ArrangeSet should fail instead. I tried reporting the issue through VS2013 but I got a CommunicationException error: The server did not provide a meaningful reply.

    public void Test()

        var pageMock = Mock.Create<IPage>()
        Mock.ArrangeSet(() => pageMock.WebControl1.Enabled = false).OccursNever();
        Mock.ArrangeSet(() => pageMock.WebControl2.Enabled = false).MustBeCalled();


  2. Svetlozar
    Svetlozar avatar
    296 posts

    Posted 20 Sep 2016 Link to this post


    Thank you for your feedback.

    We reproduced the issue and it has a bug in our backlog. I am really sorry for the inconvenience!

    Telerik by Progress
    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