<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.1" -->
<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/"
	>

<channel>
	<title>IProgrammable &#187; NUnit</title>
	<link>http://www.iprogrammable.com</link>
	<description>Kawalerowicz Consulting News</description>
	<pubDate>Thu, 21 Jan 2010 16:11:45 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>
	<language>en</language>
			<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/en/</link>
		<comments>http://www.iprogrammable.com/2009_02_09/keep-your-lib-folder-up-to-date/en/#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>

		<category><![CDATA[DotNet]]></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 class="code">[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">&#8220;abc&#8221;</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/wp-content/uploads/2009/02/image.png"><img src="http://www.iprogrammable.com/wp-content/uploads/2009/02/image-thumb.png" title="image" style="border: 0px none ; display: inline" 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/en/feed/en/</wfw:commentRss>
		</item>
	</channel>
</rss>
