My issue is - I have a class that has a System.Threading.Thread
dependancy, and it will Start()
the Thread once a certain condition is met. I am having an issue Mocking a System.Threading.Thread
.
I generally use Moq for mock objects, but I can't Mock a Thread
(because it is sealed).
I do realize I could write some wrapper that contains a Thread, then mock that wrapper - but I would like to avoid that if possible.
Thanks in advance for any ideas!