Re: Is.Serializable

"Charlie Poole" <[email protected]> Wed, 13 Aug 2008 17:02:56 -0700
Newsgroups gmane.comp.windows.dotnet.nunit.user
Message-ID <000001c8fda1$20384620$6401a8c0@ferrari>
Looks OK to me. At first I assumed you would just check for the attribute,
but that's not sufficient, so I
see you are serializing and deserializing the object to a memory stream. You
test that the return
is not null and that's it. Some people may want to test more, but it seems
like that would be
a different assert. What do others think?
 
Charlie


  _____  

From: [email protected]
[mailto:[email protected]] On Behalf Of Simone
Busoli
Sent: Monday, August 11, 2008 7:11 AM
To: [email protected]
Subject: [Nunit-users] Is.Serializable


With regards to: http://sourceforge.net/tracker/index.php?func=detail
<http://sourceforge.net/tracker/index.php?func=detail&aid=2028517&group_id=1
0749&atid=360749> &aid=2028517&group_id=10749&atid=360749

I have implemented a SerializableConstraint accessible via Is.Serializable.
The match is true if serialization to and deserialization from a memory
stream via a BinaryFormatter both succeed and the deserialized object is not
null. Otherwise the match returns false.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/

_______________________________________________
Nunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nunit-users