Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

tests failing with v2.14 (Debug.Write throws)
larsendaniel
#1 Posted : Tuesday, April 7, 2015 6:04:01 PM(UTC)
Rank: Member

Groups: Registered
Joined: 4/7/2015(UTC)
Posts: 14

Thanks: 2 times
We have some tests that started failing when I upgraded to v2.14 this week.

It looks passing a null object to Debug.Write now throws a NullReferenceException whereas it didn't before (confirmed with v2.13).

I'm not sure if this is expected or not. Is it a bug with v2.14 or is Debug.Write expected to throw with a null object, and therefore our code needs updated?
Remco
#2 Posted : Tuesday, April 7, 2015 9:49:07 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,144

Thanks: 959 times
Was thanked: 1290 time(s) in 1196 post(s)
Hi, thanks for posting!

There were no deliberate changes in v2.14 to make this throw an exception on null being written using Debug.Write, though looking at the code I think it may be possible that this is a regression in v2.14. I've noted it down to be fixed in the next release.

I recommend adjusting your code to avoid the null writes for the time being. Thanks for making me aware of this.


Cheers,

Remco
1 user thanked Remco for this useful post.
larsendaniel on 9/25/2015(UTC)
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.032 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download