<?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 NHibernate DALs &#8211; What Are You *Really* Testing?</title>
	<atom:link href="http://lostechies.com/joeybeninghove/2007/05/17/unit-testing-nhibernate-dals-what-are-you-really-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://lostechies.com/joeybeninghove/2007/05/17/unit-testing-nhibernate-dals-what-are-you-really-testing/</link>
	<description>Just another LosTechies site</description>
	<lastBuildDate>Fri, 15 Oct 2010 23:08:45 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.4.2</generator>
	<item>
		<title>By: Ben</title>
		<link>http://lostechies.com/joeybeninghove/2007/05/17/unit-testing-nhibernate-dals-what-are-you-really-testing/#comment-7</link>
		<dc:creator>Ben</dc:creator>
		<pubDate>Wed, 25 Feb 2009 23:41:14 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joeydotnet/archive/2007/05/17/unit-testing-nhibernate-dals-what-are-you-really-testing.aspx#comment-7</guid>
		<description>I know this is an old post, but I&#039;m dealing with these questions now.  </description>
		<content:encoded><![CDATA[<p>I know this is an old post, but I&#8217;m dealing with these questions now.  </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joeyDotNet</title>
		<link>http://lostechies.com/joeybeninghove/2007/05/17/unit-testing-nhibernate-dals-what-are-you-really-testing/#comment-6</link>
		<dc:creator>joeyDotNet</dc:creator>
		<pubDate>Tue, 22 May 2007 09:45:12 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joeydotnet/archive/2007/05/17/unit-testing-nhibernate-dals-what-are-you-really-testing.aspx#comment-6</guid>
		<description>Hey Ben,
Yeah, I definitely know what you mean about dealing with broken session factories.  I&#039;m actually almost done with a new blog post on various ways to validate NHibernate mapping files that may help.  

Hopefully I&#039;ll get that posted in the next day or two.</description>
		<content:encoded><![CDATA[<p>Hey Ben,<br />
Yeah, I definitely know what you mean about dealing with broken session factories.  I&#8217;m actually almost done with a new blog post on various ways to validate NHibernate mapping files that may help.  </p>
<p>Hopefully I&#8217;ll get that posted in the next day or two.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ben Scheirman</title>
		<link>http://lostechies.com/joeybeninghove/2007/05/17/unit-testing-nhibernate-dals-what-are-you-really-testing/#comment-5</link>
		<dc:creator>Ben Scheirman</dc:creator>
		<pubDate>Fri, 18 May 2007 10:22:10 +0000</pubDate>
		<guid isPermaLink="false">/blogs/joeydotnet/archive/2007/05/17/unit-testing-nhibernate-dals-what-are-you-really-testing.aspx#comment-5</guid>
		<description>Great post.  Often this is a difficult thing to grasp when combining NHibernate and Unit Tests.

I generally separate the tests into 2 namespaces (or assemblies) so that TDD.NET can run them independently.

I have my Unit Tests that just test the behavior of my constructors, collections, and business rules.  Then I have my integration tests that actually test to see if I can save and load a customer, for example.

The problem that I face is that while it is easy to to TDD to drive out your mapping in this way, later on when you make a mapping change it will make ALL of your integration tests fail.  This goes against one of the core concepts of unit testing.  We should be able to identify EXACTLY what went wrong from (hopefully) a single failing test.

But since an invalid mapping will render the session factory creation broken, most of the integration tests will break as well.

Ideas?</description>
		<content:encoded><![CDATA[<p>Great post.  Often this is a difficult thing to grasp when combining NHibernate and Unit Tests.</p>
<p>I generally separate the tests into 2 namespaces (or assemblies) so that TDD.NET can run them independently.</p>
<p>I have my Unit Tests that just test the behavior of my constructors, collections, and business rules.  Then I have my integration tests that actually test to see if I can save and load a customer, for example.</p>
<p>The problem that I face is that while it is easy to to TDD to drive out your mapping in this way, later on when you make a mapping change it will make ALL of your integration tests fail.  This goes against one of the core concepts of unit testing.  We should be able to identify EXACTLY what went wrong from (hopefully) a single failing test.</p>
<p>But since an invalid mapping will render the session factory creation broken, most of the integration tests will break as well.</p>
<p>Ideas?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
