News


Add to Technorati Favorites

My Stats

  • Posts - 53
  • Comments - 412
  • Trackbacks - 20

Twitter












Tag Cloud


Recent Comments


Recent Posts


Archives


Post Categories


Image Galleries


Blogs I read


Company Links


Fun Stuff


Kansas City User Groups


My CMS Projects



nerd

I was IM’ing with a co-worker recently, and both of us were working on writing Unit Tests for code we had just completed. He was saying that his car was having trouble, was in the shop, and that they really didn’t know what was wrong with it.

I was going to tell him to not take any excuses from the mechanic, when the RhinoMocks IgnoreArguments()option popped into my head. I said something like “'tell him ‘FixMyCar.IgnoreArguments()’”, and it was a downward spiral of geek humor from there.

Below is a list that we have compile from that IM, and subsequent discussions. Feel free to leave comments with your own crap.

-Doug

 

 

I said to my wife:

   1: Expect.Call(GoingFishing()).IgnoreArguments().Return(true);

She said:

   1: Expect.Call(GettingLoving()).Return(null);

And:

   1: Expect.Call(SleepLocation()).Return(LocationConstant.Couch);

 

Here’s the result of a bad expectation:

   1: ExpectationException(MowLawn(): Expected, 1, Actual 0)

I then suggested that the humor shouldn’t be limited to just RhinoMocks, but should include C# (and other languages in general)…

   1: if ( You.Want(MyBody) && You.Think(IAmSexy) )
   2: {
   3:     ComeOnBaby.LetMeKnow();
   4: }
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

Comments

Gravatar # re: Geek Humor | C#/RhinoMocks
Posted by GwenOd on 1/18/2010 7:47 PM
It's not so simple to do a smashing custom essays, essentially if you are occupied. I consult you to find buy essay and to be free from question that your work will be done by essays writers
Post A Comment
Title:
Name:
Email:
Website:
Comment:
Verification: