<?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: Reflection Helper for DTO Testing</title>
	<atom:link href="http://elegantcode.com/2009/01/12/reflection-helper-for-dto-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://elegantcode.com/2009/01/12/reflection-helper-for-dto-testing/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=reflection-helper-for-dto-testing</link>
	<description></description>
	<lastBuildDate>Sun, 12 Feb 2012 18:54:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.5</generator>
	<item>
		<title>By: Chris</title>
		<link>http://elegantcode.com/2009/01/12/reflection-helper-for-dto-testing/comment-page-1/#comment-42795</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 13 Jan 2009 06:14:35 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/01/12/reflection-helper-for-dto-testing/#comment-42795</guid>
		<description>Oh, and don&#039;t forget this guy in your AssemblyInfo.cs in the project containing the DTOs, 
[assembly: InternalsVisibleTo(&quot;YourTestAssembly&quot;)]</description>
		<content:encoded><![CDATA[<p>Oh, and don&#8217;t forget this guy in your AssemblyInfo.cs in the project containing the DTOs,<br />
[assembly: InternalsVisibleTo("YourTestAssembly")]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://elegantcode.com/2009/01/12/reflection-helper-for-dto-testing/comment-page-1/#comment-42794</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Tue, 13 Jan 2009 06:11:58 +0000</pubDate>
		<guid isPermaLink="false">http://elegantcode.com/2009/01/12/reflection-helper-for-dto-testing/#comment-42794</guid>
		<description>I prefer a reflection-less approach for testing internals.  In your example you would create a class in your test project that inherits from whatever class has the protected internal member.  In that class you can add a ctor that takes an expected create date, set the protected internal member which you now have access to, and voila, test your internals without reflection.</description>
		<content:encoded><![CDATA[<p>I prefer a reflection-less approach for testing internals.  In your example you would create a class in your test project that inherits from whatever class has the protected internal member.  In that class you can add a ctor that takes an expected create date, set the protected internal member which you now have access to, and voila, test your internals without reflection.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

