Hi - thanks for your response.
In answer to your questions;
Yes the error is occuring on the WhenCalled line.
1) I'm using isolator version 6.0.4.0.
2) The full test method is;
[TestMethod]
public void TestOverriddenCalculateConfirmWithErrorsSupressed()
{
IMainForm form = Isolate.Fake.Instance<IMainForm>();
MainFormPresenter presenter = new MainFormPresenter(form);
Isolate.WhenCalled(() => form.ConfirmCalculate()).WillReturn(true);
Isolate.WhenCalled(() => form.SupressError).WillReturn(true);
presenter.Calculate();
Isolate.Verify.WasCalledWithAnyArguments(() = > form.ConfirmCalculate());
Assert.IsInstanceOfType(presenter, typeof(MainFormPresenter));
}
3) I have added the [isolated] attribute to the test class, however, I have also tried adding it to the test method with the same results.
I will send the project and relevant test through to the support email address now.
Many thanks
Steve.