testing

There are 2 entries for the tag testing

Sucky MSTest and the "WaitAll for multiple handles on a STA thread is not supported" Error

If you are doing any multi-threading and are using MSTest, you will probably run across this error. For some reason, MSTest by default runs in STA threading mode. WTF, Microsoft! Why so stuck in the old COM world? When I run the same test using NUnit, I don't have this problem. Unfortunately, my company has chosen MSTest, so I have a lot of testing problems. NUnit is so much better, IMO. After determining that I wasn't referencing any unmanaged code that would flip the thread into STA, which can...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Using Delegates in Rhino Mocks With the .Do Statement

I use Rhino Mocks pretty much exclusively for mocking and testing. I find that there really isn't anything that I've wanted to do that I haven't been able to figure out how to accomplish with Rhino Mocks. What is everyone else using? I'd like to know so I can take a look. Anyway, as you know, with Expect.Call we can return property values, return values from functions, throw an error, etc. Sometimes just returning a static value isn't going to work, or it's just easier to give it some simple code...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati