﻿<?xml version="1.0" encoding="utf-8"?><rss version="2.0"><channel><title>Ayende @ Rahien</title><link>http://ayende.com</link><description>Ayende @ Rahien</description><copyright>Copyright (C) Ayende Rahien  2004 - 2021 (c) 2026</copyright><ttl>60</ttl><item><title>IVR commented on An example of bad test, part 1</title><description>Well, it looks like C#, is it?
</description><link>http://ayende.com/3534/an-example-of-bad-test-part-1#comment5</link><guid>http://ayende.com/3534/an-example-of-bad-test-part-1#comment5</guid><pubDate>Mon, 18 Aug 2008 09:34:07 GMT</pubDate></item><item><title>Ayende Rahien commented on An example of bad test, part 1</title><description>Testing async code is tough.
  
ManualResetEvent is the common case.
</description><link>http://ayende.com/3534/an-example-of-bad-test-part-1#comment4</link><guid>http://ayende.com/3534/an-example-of-bad-test-part-1#comment4</guid><pubDate>Sun, 17 Aug 2008 03:20:06 GMT</pubDate></item><item><title>Ayende Rahien commented on An example of bad test, part 1</title><description>Rob,
  
Just to clarify.
  
Spike code has no standards, agreed.
  
It just turned out to be a good example to show bad testing practices.
  
</description><link>http://ayende.com/3534/an-example-of-bad-test-part-1#comment3</link><guid>http://ayende.com/3534/an-example-of-bad-test-part-1#comment3</guid><pubDate>Sun, 17 Aug 2008 03:19:19 GMT</pubDate></item><item><title>Rob Conery commented on An example of bad test, part 1</title><description>Also - it's worth mentioning that I have no idea how to unit test something that is fired in an asynch way. In other words, WWF uses the WorflowRuntime, which is off on its own thread. I have a race condition in this code but believe it or not - the result came in :) and I was happy.
  
  
Now that said - what I could do is start and then stop the runtime - wait for it, and then see what the status of the order is... thoughts?
</description><link>http://ayende.com/3534/an-example-of-bad-test-part-1#comment2</link><guid>http://ayende.com/3534/an-example-of-bad-test-part-1#comment2</guid><pubDate>Sun, 17 Aug 2008 03:11:08 GMT</pubDate></item><item><title>Rob Conery commented on An example of bad test, part 1</title><description>Ayende this is a spike, as I mentioned about 5 times on my blog and in the video. I understand the issue you're having here - I just wanted to see if it would work. It did...
</description><link>http://ayende.com/3534/an-example-of-bad-test-part-1#comment1</link><guid>http://ayende.com/3534/an-example-of-bad-test-part-1#comment1</guid><pubDate>Sun, 17 Aug 2008 03:03:31 GMT</pubDate></item></channel></rss>