Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Assert.AreEqual(null, actual) never returns...
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Daniel Harman  
View profile  
 More options Jul 19 2010, 7:00 am
From: Daniel Harman <daniel.a.har...@gmail.com>
Date: Mon, 19 Jul 2010 04:00:03 -0700 (PDT)
Local: Mon, Jul 19 2010 7:00 am
Subject: Assert.AreEqual(null, actual) never returns...
Hi,

I'm new to mbunit and have been porting a few tests from MSTest to see
whether this is the platform for me. One thing that struct me as odd
is that if I pass a null into Assert.AreEqual to compare against a
properly initialised object, the code never returns out of the
AreEqual - it just hangs there.

Is this expected behaviour as I find it surprising? Or perhaps a
problem connected to running them through the coderush test runner and
not Gallio 3.1.397?

Dan


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Discussion subject changed to "MbUnit Assert.AreEqual(null, actual) never returns..." by Yann Trevin
Yann Trevin  
View profile  
 More options Jul 21 2010, 2:22 am
From: Yann Trevin <yann.tre...@gmail.com>
Date: Wed, 21 Jul 2010 08:22:02 +0200
Local: Wed, Jul 21 2010 2:22 am
Subject: Re: MbUnit Assert.AreEqual(null, actual) never returns...

Hi Dan,

The assertion is definitely not supposed to hang. I daily run tens of
thousands assertions of that kind for my own projects at work and at home
without any problem. There is certainly something else which causes the
problem.

   - Does your type implement an equality mechanism? (IEquatable<T>,
   equality operator overload, or just Object.Equals). It's sometimes tricky. I
   remember buggy implementations of mine which caused infinite loops or stack
   overflows (especially with an equality operator overload combined with a
   null checking by using == in the Object.Equals override!)
   - You also mention the coderush test runner. We do not provide any test
   runner for coderush (and in fact I didn't know it was possible to run tests
   within coderush). So it is possible that there is an issue here (3rd party
   test runner?). Could you try to run the same test within any other test
   runner (like Icarus, Echo, TD.Net, R#, etc.)
   - Or do you mean the Visual Studio test runner? (i.e. the same you use
   for MSTest) Which version of VS are you using?

Also, could you please try Gallio 3.2 RC
<http://gallio.org/Downloads.aspx>as v3.1 do not support some "new"
versions of certain 3rd party s/w like
VS2010, R# 5.x, NUnit 2.5.4 and later, etc. (usually because their test
model or their extensibility model has changed)

Ultimately, please send to us a screenshot, and perhaps a sample code which
demonstrate the issue?

Regards,
Yann

2010/7/19 Daniel Harman <daniel.a.har...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »