<?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>IProgrammable &#187; NUnit</title>
	<atom:link href="http://www.iprogrammable.com/category/nunit/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.iprogrammable.com</link>
	<description>Kawalerowicz Consulting News</description>
	<lastBuildDate>Wed, 15 Feb 2012 13:21:34 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Keep your lib folder up to date</title>
		<link>http://www.iprogrammable.com/2009/02/09/keep-your-lib-folder-up-to-date/</link>
		<comments>http://www.iprogrammable.com/2009/02/09/keep-your-lib-folder-up-to-date/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 20:22:58 +0000</pubDate>
		<dc:creator>marcin.kawalerowicz</dc:creator>
				<category><![CDATA[NUnit]]></category>
		<category><![CDATA[SVN]]></category>

		<guid isPermaLink="false">http://www.iprogrammable.com/2009_02_09/keep-your-lib-folder-up-to-date/</guid>
		<description><![CDATA[I’m keeping all the 3rd party assemblies that I use in my .NET projects in a separate library folder called lib. It is a part of my Subversion repository. In most of my project it is placed in linked repository (with svn:externals property). It lets my check out the whole project on any machine I [...]]]></description>
			<content:encoded><![CDATA[<p>I’m keeping all the 3rd party assemblies that I use in my .NET projects in a separate library folder called <em>lib</em>. It is a part of my Subversion repository. In most of my project it is placed in linked repository (with svn:externals property). It lets my check out the whole project on any machine I like and it compiles right away.</p>
<p>But be aware! In such scenario (and, well… in any other scenario as well) you have to keep your lib up to date. Take a look at this nasty bug. I was using the NUnit version 2.4.6.0</p>
<p>Take a look at this test method:</p>
<pre>[NUnit.Framework.<span style="color: #2b91af">Test</span>]
<span style="color: blue">public void </span>Test()
{
    System.Text.<span style="color: #2b91af">ASCIIEncoding </span>ASCIIEncoding = <span style="color: blue">new </span>System.Text.<span style="color: #2b91af">ASCIIEncoding</span>();

    <span style="color: blue">string </span>str1 = <span style="color: #a31515">"abc"</span>;

    <span style="color: blue">byte</span>[] array = ASCIIEncoding.GetBytes(str1.ToCharArray());

    System.<span style="color: #2b91af">Array</span>.Resize&lt;<span style="color: blue">byte</span>&gt;(<span style="color: blue">ref </span>array, 10);

    <span style="color: blue">string </span>str2 = ASCIIEncoding.GetString(array);

    NUnit.Framework.<span style="color: #2b91af">Assert</span>.AreEqual(str1, str2);
}</pre>
<p><a href="http://11011.net/software/vspaste"></a></p>
<p>What would you expect?</p>
<p><a href="http://www.iprogrammable.com/files/2009/02/image.png"><img src="http://www.iprogrammable.com/files/2009/02/image-thumb.png" style="border: 0px none" alt="image" border="0" height="78" width="393" /></a></p>
<p>Fail! Isn’t it?</p>
<p>No! 1 passed, 0 failed, 0 skipped, took 0,54 seconds.</p>
<p>Even NUnit hast bugs to! I’ve updated to the newest version and it works as a charm! So keep you <em>lib</em> folder up to date!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.iprogrammable.com/2009/02/09/keep-your-lib-folder-up-to-date/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

