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

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

1 Answer 30 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Marc
Top achievements
Rank 1
Marc asked on 15 Sep 2016, 02:10 PM

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);
}

1 Answer, 1 is accepted

Sort by
0
Svetlozar
Telerik team
answered on 20 Sep 2016, 12:53 PM
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
Tags
General Discussions
Asked by
Marc
Top achievements
Rank 1
Answers by
Svetlozar
Telerik team
Share this question
or