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
    4 posts
    Member since:
    May 2015

    Posted 15 Sep 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.

    [TestMethod]
    public void Test()
    {

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

        Mock.Assert(pageMock);
    }

  2. Svetlozar
    Admin
    Svetlozar avatar
    269 posts

    Posted 20 Sep Link to this post

    Hi,

    Thank you for your feedback.

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

    Regards,
    Svetlozar
    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
  3. DevCraft R3 2016 release webinar banner
Back to Top