<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Testing Non-Public members with MbUnit (Part II).</title>
	<atom:link href="http://vkreynin.wordpress.com/2007/04/29/testing-non-public-members-with-mbunit-part-ii/feed/" rel="self" type="application/rss+xml" />
	<link>http://vkreynin.wordpress.com/2007/04/29/testing-non-public-members-with-mbunit-part-ii/</link>
	<description>Never stop learning.</description>
	<lastBuildDate>Fri, 18 Dec 2009 16:34:47 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Stefan</title>
		<link>http://vkreynin.wordpress.com/2007/04/29/testing-non-public-members-with-mbunit-part-ii/#comment-519</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Thu, 21 Aug 2008 15:08:17 +0000</pubDate>
		<guid isPermaLink="false">http://vkreynin.wordpress.com/2007/04/29/testing-non-public-members-with-mbunit-part-ii/#comment-519</guid>
		<description>Hi Vadim,
if I replace &#039;null&#039; by &#039;0&#039; MbUnit says &#039;Fail to find ByteArrayToInt16 Method ...).
What is wrong?</description>
		<content:encoded><![CDATA[<p>Hi Vadim,<br />
if I replace &#8216;null&#8217; by &#8216;0&#8242; MbUnit says &#8216;Fail to find ByteArrayToInt16 Method &#8230;).<br />
What is wrong?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vadim</title>
		<link>http://vkreynin.wordpress.com/2007/04/29/testing-non-public-members-with-mbunit-part-ii/#comment-509</link>
		<dc:creator>Vadim</dc:creator>
		<pubDate>Tue, 29 Jul 2008 02:26:52 +0000</pubDate>
		<guid isPermaLink="false">http://vkreynin.wordpress.com/2007/04/29/testing-non-public-members-with-mbunit-part-ii/#comment-509</guid>
		<description>Stefan,
You have NullReferenceException because you&#039;re assigning null to Int16.

Try to use 0 instead of null:

object[] args = new object[] { byteArray, 0};</description>
		<content:encoded><![CDATA[<p>Stefan,<br />
You have NullReferenceException because you&#8217;re assigning null to Int16.</p>
<p>Try to use 0 instead of null:</p>
<p>object[] args = new object[] { byteArray, 0};</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Stefan</title>
		<link>http://vkreynin.wordpress.com/2007/04/29/testing-non-public-members-with-mbunit-part-ii/#comment-508</link>
		<dc:creator>Stefan</dc:creator>
		<pubDate>Mon, 28 Jul 2008 13:44:09 +0000</pubDate>
		<guid isPermaLink="false">http://vkreynin.wordpress.com/2007/04/29/testing-non-public-members-with-mbunit-part-ii/#comment-508</guid>
		<description>Hallo,

I tried to test private methods with out parameters but mbunit always throws a System.NullreferenceException.

If i tried it without the out modifier the test always worked fine.

Here is the method:
private bool ByteArrayToInt16(byte[] byteArray, out Int16 returnInt)

and this it How I tried to test is:

...
           
        ClassCRC16 crc16;
        Reflector _reflector;

 crc16 = new ClassCRC16();
            _reflector = new Reflector(crc16);

object[] args = new object[] { byteArray, null};
_reflector.InvokeMethod(&quot;ByteArrayToInt16&quot;, args);

The last line always &quot;creates&quot; this exception.

What is wrong? Any idea?</description>
		<content:encoded><![CDATA[<p>Hallo,</p>
<p>I tried to test private methods with out parameters but mbunit always throws a System.NullreferenceException.</p>
<p>If i tried it without the out modifier the test always worked fine.</p>
<p>Here is the method:<br />
private bool ByteArrayToInt16(byte[] byteArray, out Int16 returnInt)</p>
<p>and this it How I tried to test is:</p>
<p>&#8230;</p>
<p>        ClassCRC16 crc16;<br />
        Reflector _reflector;</p>
<p> crc16 = new ClassCRC16();<br />
            _reflector = new Reflector(crc16);</p>
<p>object[] args = new object[] { byteArray, null};<br />
_reflector.InvokeMethod(&#8220;ByteArrayToInt16&#8243;, args);</p>
<p>The last line always &#8220;creates&#8221; this exception.</p>
<p>What is wrong? Any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vadim</title>
		<link>http://vkreynin.wordpress.com/2007/04/29/testing-non-public-members-with-mbunit-part-ii/#comment-458</link>
		<dc:creator>Vadim</dc:creator>
		<pubDate>Tue, 17 Jun 2008 15:31:40 +0000</pubDate>
		<guid isPermaLink="false">http://vkreynin.wordpress.com/2007/04/29/testing-non-public-members-with-mbunit-part-ii/#comment-458</guid>
		<description>Max,

Private methods with out parameters are goint to work the same way.</description>
		<content:encoded><![CDATA[<p>Max,</p>
<p>Private methods with out parameters are goint to work the same way.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Max</title>
		<link>http://vkreynin.wordpress.com/2007/04/29/testing-non-public-members-with-mbunit-part-ii/#comment-457</link>
		<dc:creator>Max</dc:creator>
		<pubDate>Tue, 17 Jun 2008 14:31:15 +0000</pubDate>
		<guid isPermaLink="false">http://vkreynin.wordpress.com/2007/04/29/testing-non-public-members-with-mbunit-part-ii/#comment-457</guid>
		<description>Do private methods with out parameters work the same way?</description>
		<content:encoded><![CDATA[<p>Do private methods with out parameters work the same way?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Testing internals members with InternalsVisibleTo attribute. &#171; Vadim&#8217;s Weblog</title>
		<link>http://vkreynin.wordpress.com/2007/04/29/testing-non-public-members-with-mbunit-part-ii/#comment-338</link>
		<dc:creator>Testing internals members with InternalsVisibleTo attribute. &#171; Vadim&#8217;s Weblog</dc:creator>
		<pubDate>Sun, 09 Dec 2007 14:18:20 +0000</pubDate>
		<guid isPermaLink="false">http://vkreynin.wordpress.com/2007/04/29/testing-non-public-members-with-mbunit-part-ii/#comment-338</guid>
		<description>[...] internals members with InternalsVisibleTo&#160;attribute.  I posted previously about testing non-public members with MbUnit.&#160; I recently found out about InternalsVisibleTo [...]</description>
		<content:encoded><![CDATA[<p>[...] internals members with InternalsVisibleTo&nbsp;attribute.  I posted previously about testing non-public members with MbUnit.&nbsp; I recently found out about InternalsVisibleTo [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Julian</title>
		<link>http://vkreynin.wordpress.com/2007/04/29/testing-non-public-members-with-mbunit-part-ii/#comment-9</link>
		<dc:creator>Julian</dc:creator>
		<pubDate>Sat, 05 May 2007 19:08:12 +0000</pubDate>
		<guid isPermaLink="false">http://vkreynin.wordpress.com/2007/04/29/testing-non-public-members-with-mbunit-part-ii/#comment-9</guid>
		<description>Good job :)</description>
		<content:encoded><![CDATA[<p>Good job :)</p>
]]></content:encoded>
	</item>
</channel>
</rss>
