expectation

Managing Feature creep

Does anyone have any practical suggestions about managing feature creep in GUIs? I'm getting strong pressure from both internal and external sources to add, modify, tweak etc. I always cringe when someone approaches me with the words "wouldn't it be nice if...?". I can't just turn around and yell 'NO' at them, because often they are my...

Setting expectations on MoQ

Hi! I´m using MoQ to test some controllers I have but i'm not being able to set the expectations. This is the code I have: var rep = new Mock<IUserRepository>(); rep.Setup(r => r.Save()); The problem is that, my Save() method expects a User object which I cannot set in the expectation because a instance of it will be ...

Can NMock expect method invocations in background threads?

I'm creating a WPF application using the Composite Application Library (CAL), aka PRISM. I'm also using MVVM (Model-View-ViewModel). To prevent background processing from blocking the UI and making it unresponsive, I want to have the view model make most work calls on a background thread. To do this, I'm using the .NET ThreadPool object...