You need to use the method Expect.Do() which takes a delegate. This delegate then needs to 'do' something, in place of the calling code. Therefore, write a delegate that populates the fields variable for you private int SetupFields( object fields ) { fields 0 = 100; fields 1 = " } Test public void TestGetValues() { MockRepository mocks = new MockRepository(); using ( mocks.Record() ) { Expect .
Call( reader. GetValues( null ) ) .IgnoreArguments() . Do( new Func( SetupField ) ) } // verify here }.
You need to use the method Expect.Do() which takes a delegate. This delegate then needs to 'do' something, in place of the calling code. Therefore, write a delegate that populates the fields variable for you.
Private int SetupFields( object fields ) { fields 0 = 100; fields 1 = " } Test public void TestGetValues() { MockRepository mocks = new MockRepository(); using ( mocks.Record() ) { Expect . Call( reader. GetValues( null ) ) .IgnoreArguments() .
Do( new Func( SetupField ) ) } // verify here }.
I notice your small typo, but I believe this is what I need! Thank you – Devtron Nov 27 '08 at 22:23 I can't post a.
You need to use the method Expect.Do() which takes a delegate. This delegate then needs to 'do' something, in place of the calling code. Therefore, write a delegate that populates the fields variable for you.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.