<?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>Agile Sharepoint development by 21apps and Andrew Woodward MVP &#187; Unit Testing</title>
	<atom:link href="http://www.21apps.com/tag/unit-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.21apps.com</link>
	<description></description>
	<lastBuildDate>Wed, 28 Jul 2010 10:19:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Call for common code &#8211; Can we unit test it</title>
		<link>http://www.21apps.com/sharepoint/call-for-common-code-can-we-unit-test-it/</link>
		<comments>http://www.21apps.com/sharepoint/call-for-common-code-can-we-unit-test-it/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 16:53:39 +0000</pubDate>
		<dc:creator>Andrew Woodward</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Pex]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://www.21apps.com/?p=1218</guid>
		<description><![CDATA[One of the challenges with unit testing SharePoint projects is the need to fake the calls into SharePoint.  If you are a regular reader of my blog you will have seen examples of how I have been doing this using Typemock Isolator. 
Microsoft have their own isolation framework called moles.  A more accurate descripition would be [...]]]></description>
			<content:encoded><![CDATA[<p>One of the challenges with unit testing SharePoint projects is the need to fake the calls into SharePoint.  If you are a regular reader of my blog you will have seen examples of how I have been doing this using Typemock Isolator. </p>
<p>Microsoft have their own isolation framework called moles.  A more accurate descripition would be isolation through detours and stubs.  Moles was developed to support <a href="http://research.microsoft.com/en-us/projects/pex/" target="_blank">Pex</a> white box testing and one interesting development from within the team has been Behaviours.  Behaviours are really a way to model the thing you want to isolate for the test without needing to define every isolation point. </p>
<p>Isolatation frameworks (regardless of technology) can result in brittle code, test code that is very tightly linked to the production code.   A simple change from List.GetItems() to List.Items[""] will cause the test to fail.</p>
<p>One of the samples provided with Pex is the modelling of SharePoint Behaviour that will make it much easier for people to be able to create robust tests with minimal or no additional isolation code needed.   Part of the work we are doing is to drive out the things that need to be modelled and reporting these to the Pex team.  It is not going to be easy to model the whole of SharePoint from day one,  however it should be possible to cover the areas most used.</p>
<p>This is where I would like some help.     Do you have any code that you use often,  code that you would like to unit test that takes a long time to isolate and that end up being brittle?</p>
<p>Please post examples here in the comments and we will try to get as much covered as possible.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.21apps.com/sharepoint/call-for-common-code-can-we-unit-test-it/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Small steps for testing, big steps for SharePoint testing</title>
		<link>http://www.21apps.com/sharepoint/small-steps-big-steps-for-sharepoint-testing/</link>
		<comments>http://www.21apps.com/sharepoint/small-steps-big-steps-for-sharepoint-testing/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 08:55:17 +0000</pubDate>
		<dc:creator>Andrew Woodward</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[TypeMock]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://www.21apps.com/?p=977</guid>
		<description><![CDATA[Following on from my rant response yesterday about the more negative views from the SharePoint community my reading this morning was so much more positive.
Unit Testing Workflows
In my response to a question from Aaron Weiker I said that I would like to see much more guidance and investigation into the way we approach Unit Testing [...]]]></description>
			<content:encoded><![CDATA[<p>Following on from my <span style="text-decoration: line-through;">rant</span> <a href="http://www.21apps.com/sharepoint/tdd-and-sharepoint-is-it-worth-doing/">response</a> yesterday about the more negative views from the SharePoint community my <a href="http://blog.typemock.com/2009/06/problem-solving-with-isolator.html" target="_blank">reading</a> this morning was so much more positive.</p>
<h3>Unit Testing Workflows</h3>
<p>In my response to a question from <a href="http://www.21apps.com/sharepoint/tdd-and-sharepoint-is-it-worth-doing/#disqus_thread">Aaron Weiker</a> I said that I would like to see much more guidance and investigation into the way we approach Unit Testing workflows in SharePoint,  so it was great to find Richard Fennell is doing a lot of work in this area.  I have been working with Typemock Isolator, CThru and SilverUnit testing recently (post coming) and was very interested to see that Richard had <a href="http://blogs.blackmarble.co.uk/blogs/rfennell/archive/2009/06/22/logging-everything-that-is-going-on-when-an-assembly-loads-using-cthru.aspx" target="_blank">picked up this</a> whilst looking for a <a href="http://blogs.blackmarble.co.uk/blogs/rfennell/archive/2009/04/07/testing-sharepoint-workflows-using-typemock-isolator-part-3.aspx" target="_blank">possible solution to the challenges</a> of Unit Testing SharePoint workflows; something I have to confess I had not even considered.</p>
<p>I&#8217;m looking forward to seeing where Richard gets with this and also the use of <a href="http://blogs.blackmarble.co.uk/blogs/rfennell/archive/2008/10/04/running-fitness-net-tests-in-unit-test-some-tips.aspx" target="_blank">Fit/Fitness</a>, although I&#8217;m personally not a big fan of the way tables are used to define the tests.</p>
<h3>Integration Testing SharePoint from MSTest</h3>
<p>Having been a bit behind with my reviews of the latest <a href="http://spg.codeplex.com/" target="_blank">Codeplex P&amp;P</a> project I missed the discussion with Francis on how they found a use for <a href="http://blogs.msdn.com/francischeung/archive/2009/06/24/using-typemock-isolator-for-integration-tests.aspx" target="_blank">Typemock Isolator to do Integration tests</a>.</p>
<p>The code is really very very simple,  many will be glad to hear, and deals with the places where your code makes a call to SPContext.Current or SPFarm.Local.</p>
<p>The simple ideas really are the best ones.</p>
<p>As you can see,  a few small steps for testing but big steps for SharePoint testing and a demonstration that in general the SharePoint community is committed to improving the way solutions are developed.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.21apps.com/sharepoint/small-steps-big-steps-for-sharepoint-testing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Typemock ASP.Net Bundle &#8211; get a free license</title>
		<link>http://www.21apps.com/agile/testing/typemock-aspnet-get-a-free-license/</link>
		<comments>http://www.21apps.com/agile/testing/typemock-aspnet-get-a-free-license/#comments</comments>
		<pubDate>Tue, 19 May 2009 12:25:18 +0000</pubDate>
		<dc:creator>Andrew Woodward</dc:creator>
				<category><![CDATA[Testing]]></category>
		<category><![CDATA[TypeMock]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://www.21apps.com/?p=954</guid>
		<description><![CDATA[One of my favourite tools Typemock has just been released in a fantastic ASP.Net bundle and have once again offered this up to the blogging community to get for free.
Unit Testing ASP.NET? ASP.NET unit testing has never been this easy.
Typemock is launching a new product for ASP.NET developers &#8211; the ASP.NET Bundle &#8211; and for [...]]]></description>
			<content:encoded><![CDATA[<p>One of my favourite tools Typemock has just been released in a fantastic ASP.Net bundle and have once again offered this up to the blogging community to get for free.</p>
<p><a href="http://www.typemock.com/">Unit Testing</a> ASP.NET? <a href="http://www.typemock.com/ASP.NET_unit_testing_page.php">ASP.NET unit testing</a> has never been this easy.<br />
Typemock is launching a new product for ASP.NET developers &#8211; the <strong>ASP.NET Bundle</strong> &#8211; and for the launch will be giving out <strong>FREE licenses</strong> to bloggers and their readers.<br />
The ASP.NET Bundle is the ultimate ASP.NET unit testing solution, and offers both <a href="http://www.typemock.com/">Typemock Isolator</a>, a <a href="http://www.typemock.com/">unit test</a> tool and <a href="http://sm-art.biz/Ivonna.aspx">Ivonna</a>, the Isolator add-on for <a href="http://sm-art.biz/Ivonna.aspx">ASP.NET unit testing</a>, for a bargain price.<br />
Typemock Isolator is a leading <a href="http://www.typemock.com/">.NET unit testing</a> tool (C# and VB.NET) for many &#8216;hard to test&#8217; technologies such as <a href="http://typemock.com/sharepointpage.php">SharePoint</a>, <a href="http://www.typemock.com/ASP.NET_unit_testing_page.php">ASP.NET</a>, <a href="http://www.typemock.com/ASP.NET_unit_testing_page.php">MVC</a>, <a href="http://www.typemock.com/wcfpage.php">WCF</a>, WPF, <a href="http://www.typemock.com/Silverlight_unit_testing_page.php">Silverlight</a> and more. Note that for <a href="http://www.typemock.com/Silverlight_unit_testing_page.php">unit testing Silverlight</a> there is an open source Isolator add-on called <a href="http://www.typemock.com/Silverlight_unit_testing_page.php">SilverUnit</a>.<br />
The first 60 bloggers who will blog this text in their blog and <a href="http://blog.typemock.com/2009/05/get-free-typemock-licenses-aspnet.html">tell us about it</a>, will get a Free Isolator ASP.NET Bundle license (Typemock Isolator + Ivonna). If you post this in an ASP.NET <strong>dedicated</strong> blog, you&#8217;ll get a license automatically (even if more than 60 submit) during the first week of this announcement.<br />
Also 8 bloggers will get an <strong>additional 2 licenses</strong> (each) to give away to their readers / friends.<br />
Go ahead, click the following link for <a href="http://blog.typemock.com/2009/05/get-free-typemock-licenses-aspnet.html">more information </a>on how to get your free license.</p>
<p>I&#8217;ve not had the chance to try out the Ivonna or SilverUnit add-ons to the framework yet, but will be looking at these in the near future and they can help you test more of your SharePoint solutions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.21apps.com/agile/testing/typemock-aspnet-get-a-free-license/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>More great Unit Testing SharePoint Examples</title>
		<link>http://www.21apps.com/sharepoint/unit-testing-sharepoint-examples/</link>
		<comments>http://www.21apps.com/sharepoint/unit-testing-sharepoint-examples/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 12:21:31 +0000</pubDate>
		<dc:creator>Andrew Woodward</dc:creator>
				<category><![CDATA[SharePoint]]></category>
		<category><![CDATA[Testing]]></category>
		<category><![CDATA[TypeMock]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://www.21apps.com/?p=927</guid>
		<description><![CDATA[Great to see that more people are publishing their experiences with unit testing SharePoint.   Here are some of examples I have found that are really worth looking at:
Richard Fennell &#8211; Testing SharePoint Workflows using TypeMock Isolator (part 1, part 2 and part 3) &#8211; Richard is also going to be talking at a few NextGen [...]]]></description>
			<content:encoded><![CDATA[<p>Great to see that more people are publishing their experiences with unit testing SharePoint.   Here are some of examples I have found that are really worth looking at:</p>
<blockquote><p>Richard Fennell &#8211; Testing SharePoint Workflows using TypeMock Isolator (<a href="http://blogs.blackmarble.co.uk/blogs/rfennell/archive/2009/04/03/testing-sharepoint-workflows-using-typemock-isolator.aspx" target="_blank">part 1</a>, <a href="http://blogs.blackmarble.co.uk/blogs/rfennell/archive/2009/04/06/testing-sharepoint-workflows-using-typemock-isolator-part-2.aspx" target="_blank">part 2</a> and <a href="http://blogs.blackmarble.co.uk/blogs/rfennell/archive/2009/04/07/testing-sharepoint-workflows-using-typemock-isolator-part-3.aspx" target="_blank">part 3</a>) &#8211; Richard is also going to be talking at a few <a href="http://www.nxtgenug.net/ViewEvent.aspx?EventID=216" target="_blank">NextGen</a> meetings on the subject.</p></blockquote>
<blockquote><p>SharePoint Dev Wiki is really starting to get some good content not just on <a href="http://www.sharepointdevwiki.com/display/public/SharePoint%20Development%20with%20Unit%20Testing" target="_blank">unit testing</a> but on the whole development field.</p></blockquote>
<blockquote><p>Jeremy Thake (creator of SharePoint Dev Wiki) did a great usergroup meeting web cast on <a href="http://wss.made4the.net/archive/2009/03/25/sharepoint-development-with-unit-testing-webcast.aspx" target="_blank">SharePoint Development with Unit Testing</a></p></blockquote>
<blockquote><p>I&#8217;ve previously mentioned the <a href="http://msdn.microsoft.com/en-us/library/dd206923.aspx" target="_blank">Patterns and Practices</a> work and they have started to do some great <a href="http://channel9.msdn.com/posts/akMSFT/pp-SharePoint-Development-Guidance-v2-Whats-in-Drop-7/" target="_blank">Channel 9 videos</a> which really do make this so much more accessible.  Brilliant Job!</p></blockquote>
<p>If you have any links or posts on the subject please share by adding a link in the comments, and if you&#8217;ve done something new and exciting help the SharePoint Dev Wiki by posting details.</p>
<p>Looks like my predictions are starting to come true,  people really are doing SharePoint development better <img src='http://www.21apps.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.21apps.com/sharepoint/unit-testing-sharepoint-examples/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
