I use the following code:
----------------------------------------
MockManager.Init();
Mock fM=MockManager.Mock(typeof(MyForm), Constructor.NotMocked));
fM.ExpectAndReturn("ShowDialog", DialogResult.OK);
MyForm frm=new MyForm();
DialogResult res=frm.ShowDialog();
MockManager.Verify();
-----------------------------------------
The code fails with TypeMock exception:
"ShowDialog has 1 more expected calls"
I CANNOT UNDERSTAND WHY!!! PLEASE HELP! :?
________
Toyota Innova specifications