<?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"
	>
<channel>
	<title>Comments on: Unit Testing in .NET with NUnit</title>
	<atom:link href="http://brennan.offwhite.net/blog/2005/01/24/unit-testing-in-net-with-nunit/feed/" rel="self" type="application/rss+xml" />
	<link>http://brennan.offwhite.net/blog/2005/01/24/unit-testing-in-net-with-nunit/</link>
	<description>My Experiences with Software Development</description>
	<pubDate>Tue, 06 Jan 2009 15:10:21 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: Graeme Foster</title>
		<link>http://brennan.offwhite.net/blog/2005/01/24/unit-testing-in-net-with-nunit/#comment-112</link>
		<dc:creator>Graeme Foster</dc:creator>
		<pubDate>Tue, 25 Jan 2005 08:32:44 +0000</pubDate>
		<guid isPermaLink="false">http://brennanwp.offwhite.net/blog/?p=73#comment-112</guid>
		<description>.NET 2.0 introduces partial classes in C#. These let you easily have tests within a class (so you can test private stuff in the class as well as the public interface - I know that's frowned on by some and smiled on by others, but for me it helps get the job done) while still keeping the test code away from the "real" code. Works well for me.

For example, we have MyClass.cs containing the class code, and an accompanying MyClass.Tests.cs file which has the unit tests. Everything in that file is enclosed in a #if TEST condition.
</description>
		<content:encoded><![CDATA[<p>.NET 2.0 introduces partial classes in C#. These let you easily have tests within a class (so you can test private stuff in the class as well as the public interface - I know that's frowned on by some and smiled on by others, but for me it helps get the job done) while still keeping the test code away from the "real" code. Works well for me.</p>
<p>For example, we have MyClass.cs containing the class code, and an accompanying MyClass.Tests.cs file which has the unit tests. Everything in that file is enclosed in a #if TEST condition.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brennan Stehling</title>
		<link>http://brennan.offwhite.net/blog/2005/01/24/unit-testing-in-net-with-nunit/#comment-111</link>
		<dc:creator>Brennan Stehling</dc:creator>
		<pubDate>Mon, 24 Jan 2005 19:44:02 +0000</pubDate>
		<guid isPermaLink="false">http://brennanwp.offwhite.net/blog/?p=73#comment-111</guid>
		<description>I agree.  I have read C and C++ code with these directives and it is just insane.  But in C the purpose is to allow them to place cross-platform support into the codebase, like including a different header or calling a different threading implementation.  It is not as important for languages like C# and Java which has the standardized runtime.

Also with Java and C# you can use Ant and Nant scripts which will allow you to automatically strip out some lines of code or ignore some files during the compile process so there is not need for those directives.</description>
		<content:encoded><![CDATA[<p>I agree.  I have read C and C++ code with these directives and it is just insane.  But in C the purpose is to allow them to place cross-platform support into the codebase, like including a different header or calling a different threading implementation.  It is not as important for languages like C# and Java which has the standardized runtime.</p>
<p>Also with Java and C# you can use Ant and Nant scripts which will allow you to automatically strip out some lines of code or ignore some files during the compile process so there is not need for those directives.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris Peterson</title>
		<link>http://brennan.offwhite.net/blog/2005/01/24/unit-testing-in-net-with-nunit/#comment-110</link>
		<dc:creator>Chris Peterson</dc:creator>
		<pubDate>Mon, 24 Jan 2005 19:37:01 +0000</pubDate>
		<guid isPermaLink="false">http://brennanwp.offwhite.net/blog/?p=73#comment-110</guid>
		<description>I find using the separate projects easier than using directives.  When maintaining code I hate seeing all different kinds of directives in the main code.  I can understand having them if you are working on a bug, but please people get rid of them before the code goes live.</description>
		<content:encoded><![CDATA[<p>I find using the separate projects easier than using directives.  When maintaining code I hate seeing all different kinds of directives in the main code.  I can understand having them if you are working on a bug, but please people get rid of them before the code goes live.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
