How to mock an SqlDataReader using Moq - Update
- by Simon G
Hi,
I'm new to moq and setting up mocks so i could do with a little help.
Title says it all really - how do I mock up an SqlDataReader using Moq?
Thanks
Update
After further testing this is what I have so far:
private IDataReader MockIDataReader()
{
var moq = new Mock<IDataReader>();
moq.Setup( x => x.Read() ).Returns( true…