In Typical AAA syntax , you first have to act then do assert. It also ensures the original flow of control. In your sample you are first Asserting then you are acting on it which is wrong.
A typical brain flow could be "I want to assert if the things goes as expected"
The correct code will be :
ICustomer cust = Mock.Create<ICustomer>();
Order ord =
Mock.Assert(() => cust.GetAddress(), Occurs.Once());
Thanks for the formating and typo, i will fix and let you know. Optionally, i can send you the update both for your previous one and this one via email, if you want.
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 Public Issue Tracking
system and vote to affect the priority of the items.