<?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>KarlZ &#187; Unit Testing</title>
	<atom:link href="http://joyofexcellence.com/blog/index.php/tag/unit-testing/feed/" rel="self" type="application/rss+xml" />
	<link>http://joyofexcellence.com/blog</link>
	<description>As a Software Development Director I still try to stay on top of Microsoft technologies by using some personal projects... And I follow some of my footsteps here.</description>
	<lastBuildDate>Thu, 02 Sep 2010 17:14:08 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Unit Testing a Very Simple ViewResult in MVC</title>
		<link>http://joyofexcellence.com/blog/index.php/2010/05/29/unit-testing-a-very-simple-viewresult-in-mvc/</link>
		<comments>http://joyofexcellence.com/blog/index.php/2010/05/29/unit-testing-a-very-simple-viewresult-in-mvc/#comments</comments>
		<pubDate>Sun, 30 May 2010 01:17:57 +0000</pubDate>
		<dc:creator>karlz</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Unit Testing]]></category>
		<category><![CDATA[VS 2010]]></category>

		<guid isPermaLink="false">http://joyofexcellence.com/blog/index.php/2010/05/29/unit-testing-a-very-simple-viewresult-in-mvc/</guid>
		<description><![CDATA[Technorati Tags: Unit Testing,MVC,VS 2010
I have a view that really only provides content, is there a quick way to test that it exists? What’s the Assert?
There’s really not much to unit test if you have a page that has only HTML in a MVC (Model-View-Controller) project. And to some extent, if you had a test [...]]]></description>
		<wfw:commentRss>http://joyofexcellence.com/blog/index.php/2010/05/29/unit-testing-a-very-simple-viewresult-in-mvc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unit Testing CodeSmith Insight</title>
		<link>http://joyofexcellence.com/blog/index.php/2010/05/29/unit-testing-codesmith-insight/</link>
		<comments>http://joyofexcellence.com/blog/index.php/2010/05/29/unit-testing-codesmith-insight/#comments</comments>
		<pubDate>Sat, 29 May 2010 22:37:12 +0000</pubDate>
		<dc:creator>karlz</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[CodeSmith]]></category>
		<category><![CDATA[Insight]]></category>
		<category><![CDATA[Moq]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://joyofexcellence.com/blog/index.php/2010/05/29/unit-testing-codesmith-insight/</guid>
		<description><![CDATA[Technorati Tags: Unit Testing,MVC,Moq,CodeSmith,Insight
As anyone that knows me knows, I use test driven development. So when I put together a Feedback page in my MVC (Model-View-Controller) site I started with my test. What should the test be?
Let’s start with the User Story : As a site user (anonymous or logged in) I want to submit [...]]]></description>
		<wfw:commentRss>http://joyofexcellence.com/blog/index.php/2010/05/29/unit-testing-codesmith-insight/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unit Test Authorize Attribute</title>
		<link>http://joyofexcellence.com/blog/index.php/2010/04/25/unit-test-authorize-attribute/</link>
		<comments>http://joyofexcellence.com/blog/index.php/2010/04/25/unit-test-authorize-attribute/#comments</comments>
		<pubDate>Sun, 25 Apr 2010 17:24:40 +0000</pubDate>
		<dc:creator>karlz</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Unit Testing]]></category>
		<category><![CDATA[VS 2010]]></category>

		<guid isPermaLink="false">http://joyofexcellence.com/blog/index.php/2010/04/25/unit-test-authorize-attribute/</guid>
		<description><![CDATA[Technorati Tags: Unit Testing,ASP.NET,MVC,VS 2010
Story: I want to write a unit test to ensure that the Authorize attribute is applied to a controller ActionResult or ViewResult so that security is tested.
Here is the test:


Unit Test


[TestMethod]
public void PreviousSiteUserConversion_Authorization_Attributes_Have_Been_Applied()
{
    // Arrange
    MethodInfo varietalMethod = typeof(AdminController).GetMethod(&#34;PreviousSiteUserConversion&#34;, new Type[] { });
&#160;
    // Act
    var attributes = varietalMethod.GetCustomAttributes(typeof(AuthorizeAttribute), true);
&#160;
    // Assert
    Assert.IsNotNull(attributes);
    Assert.AreEqual(1, attributes.Length);
    var authAttribute = (AuthorizeAttribute)attributes[0];
    string[] [...]]]></description>
		<wfw:commentRss>http://joyofexcellence.com/blog/index.php/2010/04/25/unit-test-authorize-attribute/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>MVC &#8211; The Start</title>
		<link>http://joyofexcellence.com/blog/index.php/2010/03/03/mvc-the-start/</link>
		<comments>http://joyofexcellence.com/blog/index.php/2010/03/03/mvc-the-start/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 19:03:15 +0000</pubDate>
		<dc:creator>karlz</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Code Analysis]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://joyofexcellence.com/blog/index.php/2010/03/03/mvc-the-start/</guid>
		<description><![CDATA[Technorati Tags: ASP.NET,MVC,Code Analysis,Unit Testing
This shows my initial setup of an MVC 2 RC 2 application. Using Visual Studio 2010 RC I selected File –&#62; New –&#62; Project… then under Visual C#, Web, I selected the ASP.NET MVC 2 Web Application.
 
Then when I click OK I get the following dialog. Since I’m a very [...]]]></description>
		<wfw:commentRss>http://joyofexcellence.com/blog/index.php/2010/03/03/mvc-the-start/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing HtmlHelper in MVC 2 RC 2</title>
		<link>http://joyofexcellence.com/blog/index.php/2010/02/27/testing-htmlhelper-in-mvc-2-rc-2/</link>
		<comments>http://joyofexcellence.com/blog/index.php/2010/02/27/testing-htmlhelper-in-mvc-2-rc-2/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 18:37:27 +0000</pubDate>
		<dc:creator>karlz</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[Moq]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[TDD]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://joyofexcellence.com/blog/index.php/2010/02/27/testing-htmlhelper-in-mvc-2-rc-2/</guid>
		<description><![CDATA[Technorati Tags: MVC,TDD,Mock,Moq
I strive to use TDD (Test Driven Development) so not having unit tests drives me crazy. I was so pleased to run across this post http://ox.no/posts/mocking-htmlhelper-in-aspnet-mvc-rc1-using-moq making it easy for me to unit test the Html Helper.
But then I downloaded the MVC 2 RC 2 and all my unit tests for HtmlHelper broke! [...]]]></description>
		<wfw:commentRss>http://joyofexcellence.com/blog/index.php/2010/02/27/testing-htmlhelper-in-mvc-2-rc-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Saturday Night Wrestling with MVC</title>
		<link>http://joyofexcellence.com/blog/index.php/2009/06/27/saturday-night-wrestling-with-mvc/</link>
		<comments>http://joyofexcellence.com/blog/index.php/2009/06/27/saturday-night-wrestling-with-mvc/#comments</comments>
		<pubDate>Sun, 28 Jun 2009 01:16:06 +0000</pubDate>
		<dc:creator>karlz</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[EF]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Unit Testing]]></category>
		<category><![CDATA[VS 2010]]></category>

		<guid isPermaLink="false">http://joyofexcellence.com/blog/index.php/2009/06/27/saturday-night-wrestling-with-mvc/</guid>
		<description><![CDATA[Ok&#8230; It wasn&#8217;t really that bad, but it did take some effort. Here was my objective: Now that MVC (ASP.NET Model-View-Controller) 1.1 has been released (not sure how I missed that) to work with Visual Studio 2010 and .NET 4.0 migrate my evolving website to use the .NET 4.0 beta.

I was able to get it [...]]]></description>
		<wfw:commentRss>http://joyofexcellence.com/blog/index.php/2009/06/27/saturday-night-wrestling-with-mvc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Review of Pro ASP.NET MVC Framework</title>
		<link>http://joyofexcellence.com/blog/index.php/2009/06/07/review-of-pro-aspnet-mvc-framework/</link>
		<comments>http://joyofexcellence.com/blog/index.php/2009/06/07/review-of-pro-aspnet-mvc-framework/#comments</comments>
		<pubDate>Sun, 07 Jun 2009 19:24:22 +0000</pubDate>
		<dc:creator>karlz</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[ASP.NET]]></category>
		<category><![CDATA[EF]]></category>
		<category><![CDATA[MVC]]></category>
		<category><![CDATA[Unit Testing]]></category>

		<guid isPermaLink="false">http://joyofexcellence.com/blog/index.php/2009/06/07/review-of-pro-aspnet-mvc-framework/</guid>
		<description><![CDATA[A Review of Pro ASP.NET MVC Framework by Steven Sanderson, ISBN 10:  1-4302-1007-9

Update

I started taking notes as I went along, but I&#8217;ve not stopped. I really recommend taking this book and working through the exercises. I&#8217;m confident you&#8217;ll be a better developer even if you&#8217;re are not particularly interested in MVC. (Of course, if [...]]]></description>
		<wfw:commentRss>http://joyofexcellence.com/blog/index.php/2009/06/07/review-of-pro-aspnet-mvc-framework/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
