Trying to write Unit test for Silverlight 4.0 using Moq 4.0.10531.7 public delegate void DataReceived(ObservableCollection<TeamPlayerData> AllReadyPlayers, GetSquadDataCompletedEventArgs squadD
I\'m writing some unit tests in my project and I have a datacontext dependency on the controller containing the methods I\'d like to test.
Let\'s say I want to use Moq to create a callback on a setter to store the set property in my own field for later use.(Contrived example - but it gets to the point of the question.)I could do somethin
I am using Entity Frameowrk 4.0 and I am calling a stored procedure which returns an ObjectResult and I tried 开发者_C百科to use MOQ and have not been able to mock ObjectResult. Has anybody been able
I have read this: http://martinfowler.co开发者_JAVA技巧m/articles/mocksArentStubs.html My concepts about a stub and a mock are clear. I understand the need of isolation frameworks like moq, rhinomocks
I have to write a lot of code that deals with serial ports. Usually there will be a device connected at the other end of the wire and I usually create my own mocks to simulate their behavior.
I\'m new to unit testing, and I\'m learning how to use NUnit and Moq. NUnit provides Assert syntax for testing conditions in my unit tests, while Moq provides some Verify functions. To some extent the
I made the following test for my class: va开发者_StackOverflow中文版r mock = new Mock<IRandomNumberGenerator>();
I want to mock a ServiceContract. The problem is that Moq (and Castle Dynamic-Proxy) copies the attributes from the interface to the dynamic proxy which Wcf don\'t like. Wcf says: The ServiceContractA
I have a function in my service layer whose output needs to be mocked. it takes in a FinanceAccount object and returns a List