Created
October 22, 2010 11:59
-
-
Save einaros/640422 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var mock = new Mock<MemoryStream>(); | |
mock | |
.Setup(x => x.Read(It.IsAny<byte[]>(), It.IsAny<int>(), It.IsAny<int>())) | |
.Callback((byte[] array, int offset, int length) => Console.Out.WriteLine(array == null)); | |
mock.Object.Read(new byte[1], 1, 2); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
"array" will be null in the callback, when run through Moq 3.1.416.3.