Expect.Call(stream.Read(new byte[1024], 0, 1024))
.Do(delegate(byte[] buffer, int offset, int count) { return 0; });
But the compiler doesn't like it.
Any suggestions? I'd prefer to not use a partial mock.
Is there any technical limitations on to why anonymous functions
couldn't be made to work?
S.
Steve Freeman
http://www.mockobjects.com
Winner of the Agile Alliance Gordon Pask award 2006