chevron-thin-right chevron-thin-left brand cancel-circle search youtube-icon google-plus-icon linkedin-icon facebook-icon twitter-icon toolbox download check linkedin phone twitter-old google-plus facebook profile-male chat calendar profile-male
0 votes

in below code messagebox.show not invoking.

in rea = new RRecord(path); method call it will work. again  mdd.DeleteOne(rea, remove); method call it will not work.

Please provide the solution

 using (RecordExpectations recorder = RecorderManager.StartRecording())
            {
                MessageBox.Show(null);
                recorder.Return(DialogResult.OK);
            }

            rea = new RRecord(path);
            Isolate.NonPublic.WhenCalled(aed, "RExist").WithExactArguments("rec").WillReturn(false);
            mdd.DeleteOne(rea, remove);

asked by gnanam (4.7k points)

1 Answer

0 votes

Hey gnanam,

I apologize, I did not understand your question.

 Could you please clarify your request with more details& code? 

What "aed" stands for?

in rea = new RRecord(path); method call it will work. again mdd.DeleteOne(rea, remove); method call it will not work.

 

"method call it will not work" - What do you mean by that? the method will not be invoked?

answered by CoralTypemock (940 points)
rea = new RRecord(path);
...