<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Unit Testing [Serializable]</title>
	<atom:link href="http://lostechies.com/keithdahlby/2010/05/20/unit-testing-serializable/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/keithdahlby/2010/05/20/unit-testing-serializable/</link>
	<description>Git, .NET and more</description>
	<lastBuildDate>Wed, 12 Jun 2013 13:14:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Kevin Watkins</title>
		<link>http://lostechies.com/keithdahlby/2010/05/20/unit-testing-serializable/#comment-46</link>
		<dc:creator>Kevin Watkins</dc:creator>
		<pubDate>Fri, 21 May 2010 09:32:48 +0000</pubDate>
		<guid isPermaLink="false">/blogs/dahlbyk/archive/2010/05/20/unit-testing-serializable.aspx#comment-46</guid>
		<description>I&#039;ve done something similar before using NUnit. I used the ValueSourceAttribute on my test method to specify another method that generates the list of types to check. Then the test method itself takes each type in turn and does Assert.That(type, Is.Serializable) to check that it&#039;s serializable.

The advantage of this approach is that you get a separate test for each type being checked. Therefore if one isn&#039;t serializable you can see at a glance which one it is. Looks like with the approach above you&#039;ve have to debug the test first to find out which type(s) aren&#039;t serializable.</description>
		<content:encoded><![CDATA[<p>I&#8217;ve done something similar before using NUnit. I used the ValueSourceAttribute on my test method to specify another method that generates the list of types to check. Then the test method itself takes each type in turn and does Assert.That(type, Is.Serializable) to check that it&#8217;s serializable.</p>
<p>The advantage of this approach is that you get a separate test for each type being checked. Therefore if one isn&#8217;t serializable you can see at a glance which one it is. Looks like with the approach above you&#8217;ve have to debug the test first to find out which type(s) aren&#8217;t serializable.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yann Trevin</title>
		<link>http://lostechies.com/keithdahlby/2010/05/20/unit-testing-serializable/#comment-45</link>
		<dc:creator>Yann Trevin</dc:creator>
		<pubDate>Fri, 21 May 2010 08:23:02 +0000</pubDate>
		<guid isPermaLink="false">/blogs/dahlbyk/archive/2010/05/20/unit-testing-serializable.aspx#comment-45</guid>
		<description>Interestingly enough, Gallio/MbUnit has a set of built-in assertions which exactly do that: Assert.IsSerializableType, Assert, SerializeThenDeserialize, etc.</description>
		<content:encoded><![CDATA[<p>Interestingly enough, Gallio/MbUnit has a set of built-in assertions which exactly do that: Assert.IsSerializableType, Assert, SerializeThenDeserialize, etc.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Mohundro</title>
		<link>http://lostechies.com/keithdahlby/2010/05/20/unit-testing-serializable/#comment-44</link>
		<dc:creator>David Mohundro</dc:creator>
		<pubDate>Thu, 20 May 2010 13:01:49 +0000</pubDate>
		<guid isPermaLink="false">/blogs/dahlbyk/archive/2010/05/20/unit-testing-serializable.aspx#comment-44</guid>
		<description>I have occasionally written tests to ensure that my objects serialize correctly to sort of &quot;future proof&quot; the classes. For example, I might want to ensure that someone doesn&#039;t add a non serializable type to it at some point in the future.

It certainly doesn&#039;t make sense to do this in all cases, but it has saved me in the past :)</description>
		<content:encoded><![CDATA[<p>I have occasionally written tests to ensure that my objects serialize correctly to sort of &#8220;future proof&#8221; the classes. For example, I might want to ensure that someone doesn&#8217;t add a non serializable type to it at some point in the future.</p>
<p>It certainly doesn&#8217;t make sense to do this in all cases, but it has saved me in the past :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
