<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Andrey Shchekin &#187; Naming</title>
	<atom:link href="http://blog.ashmind.com/index.php/category/naming/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.ashmind.com</link>
	<description></description>
	<lastBuildDate>Mon, 15 Mar 2010 18:00:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Unit Testing and the importance of naming</title>
		<link>http://blog.ashmind.com/2007/10/13/unit-testing-and-the-importance-of-naming/</link>
		<comments>http://blog.ashmind.com/2007/10/13/unit-testing-and-the-importance-of-naming/#comments</comments>
		<pubDate>Sat, 13 Oct 2007 11:36:37 +0000</pubDate>
		<dc:creator>Andrey Shchekin</dc:creator>
				<category><![CDATA[.Net]]></category>
		<category><![CDATA[Naming]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://blog.ashmind.com/index.php/2007/10/13/unit-testing-and-the-importance-of-naming/</guid>
		<description><![CDATA[Microsoft&#8217;s VSTS lacks RowTest and that&#8217;s why I will not use it. But there is one thing about VSTS that is done right. It is naming. We use TestFixture so often, but what is it exactly? Let&#8217;s go to wikipedia: Test fixture refers to the fixed state used as a baseline for running tests in [...]]]></description>
			<content:encoded><![CDATA[<p>Microsoft&#8217;s VSTS lacks <a href="http://www.mertner.com/confluence/display/MbUnit/RowTestAttribute">RowTest</a> and that&#8217;s why I will not use it.<br /> But there is one thing about VSTS that is done right.<br /> It is naming.</p>
<p>We use TestFixture so often, but what is it exactly?<br/> Let&#8217;s go to wikipedia:</p>
<blockquote><p>Test fixture refers to the fixed state used as a baseline for running tests in software testing.<br /> The purpose of a test fixture is to ensure that there is a well known and fixed environment in which tests are run so that results are repeatable.</p></blockquote>
<p>If I go and ask all developers I know, no one would be able to repeat this definition.</p>
<p>And it is why unit testing was really hard <em>for me</em> to understand.<br /> TestClass and TestMethod are practical names that desribe what we want to do.<br /> TestFixture is an academic name that describes what we are <em>supposed</em> to do.<br /> It conveys the feeling that I should read a tome of obscure knowledge to get it.<br /> While I am fine with reading, this time things just <em>seem</em> to be hard.</p>
<p>Take VB&#8217;s Shared versus C# static.<br/> How many people you know understand why static keyword has this name?<br/> But we still have to live without <a href="http://www.ayende.com/Blog/archive/2005/10/05/8245.aspx">useful features</a> just <a href="http://blogs.msdn.com/ericlippert/archive/2007/06/14/calling-static-methods-on-type-variables-is-illegal-part-one.aspx">because of the name</a>.</p>
<p>The moral of the story: naming is very important.<br /> It can make things unnecesarily complex or decrease your agility in changing underlying behavior.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.ashmind.com/2007/10/13/unit-testing-and-the-importance-of-naming/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
