<?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/"
	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>Vadim's Weblog &#187; TypeMock</title>
	<atom:link href="http://vkreynin.wordpress.com/category/typemock/feed/" rel="self" type="application/rss+xml" />
	<link>http://vkreynin.wordpress.com</link>
	<description>Never stop learning.</description>
	<lastBuildDate>Wed, 26 Aug 2009 11:54:05 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='vkreynin.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/1173064e3df3d2dd6e336993810ee5b5?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Vadim's Weblog &#187; TypeMock</title>
		<link>http://vkreynin.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://vkreynin.wordpress.com/osd.xml" title="Vadim&#8217;s Weblog" />
		<item>
		<title>TypeMock too powerful to use</title>
		<link>http://vkreynin.wordpress.com/2007/04/10/typemock-too-powerful-to-use/</link>
		<comments>http://vkreynin.wordpress.com/2007/04/10/typemock-too-powerful-to-use/#comments</comments>
		<pubDate>Wed, 11 Apr 2007 02:21:00 +0000</pubDate>
		<dc:creator>Vadim</dc:creator>
				<category><![CDATA[Rhino.Mocks]]></category>
		<category><![CDATA[TypeMock]]></category>

		<guid isPermaLink="false">http://vkreynin.wordpress.com/2007/04/10/typemock-too-powerful-to-use/</guid>
		<description><![CDATA[In my early stages of following TDD light I was looking for a mock object framework.  I tried Rhino.Mocks and found it hard to use.  Then I tried TypeMock and falled in love with the product.  It allows mocking almost anything.  With TypeMock I only failed to mock SqlDataReader because it [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=14&subd=vkreynin&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>In my early stages of following TDD light I was looking for a mock object framework.  I tried <a href="http://www.ayende.com/projects/rhino-mocks.aspx">Rhino.Mocks</a> and found it hard to use.  Then I tried <a href="http://www.typemock.com/">TypeMock</a> and falled in love with the product.  It allows mocking almost anything.  With TypeMock I only failed to mock SqlDataReader because it doesn’t have a public constructor.</p>
<p>It was then.  Today I believe that TypeMock is bad for the same reason I loved it before.  It’s too powerful.  It doesn’t force you to write a testable code.</p>
<p>The reason I found <a href="http://www.ayende.com/projects/rhino-mocks.aspx">Rhino.Mocks</a> hard to use is because I haven&#8217;t learn yet about <a href="http://www.martinfowler.com/articles/injection.html">Inversion of Control Containers and the Dependency Injection pattern</a>.  Today I write my own mock objects without using any framework.  However, if you want to use a Mock Framework, I strongly recommend <a href="http://www.ayende.com/projects/rhino-mocks.aspx">Rhino.Mocks</a>.</p>
<p>If you&#8217;re not familiar with this pattern I recommend to read <a href="http://codebetter.com/blogs/jeffrey.palermo/default.aspx">Jeremy Palermo&#8217;s</a> article <a href="http://codebetter.com/blogs/jeffrey.palermo/archive/2005/11/01/134095.aspx">Simple dependency injection to get you started with unit testing</a>.</p>
<img alt="" border="0" src="http://feeds.wordpress.com/1.0/categories/vkreynin.wordpress.com/14/" /> <img alt="" border="0" src="http://feeds.wordpress.com/1.0/tags/vkreynin.wordpress.com/14/" /> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/vkreynin.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/vkreynin.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/vkreynin.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/vkreynin.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/vkreynin.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/vkreynin.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/vkreynin.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/vkreynin.wordpress.com/14/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/vkreynin.wordpress.com/14/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/vkreynin.wordpress.com/14/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=vkreynin.wordpress.com&blog=1150196&post=14&subd=vkreynin&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://vkreynin.wordpress.com/2007/04/10/typemock-too-powerful-to-use/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/0bdbc8162336851af022196f897d6200?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">vkreynin</media:title>
		</media:content>
	</item>
	</channel>
</rss>