Thanks again for sending the post. Yes you can use Mock.Initalize
for instance methods as well. Like let's take the following example:
public void Initialize()
>().For((x) => x.Delete());
Then, inside the test method i did the following to see if everything worked as expected.
var filename =
var fi =
Mock.Arrange(() => fi.Delete()).DoInstead(() => called =
In addition, you can find similar ones under %Program_Files%\Telerik\JustMock\Examples folder in Elevated\MsCorlibFixture.cs for c# examples.
Hope the information is useful.
the Telerik team
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