<?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/"
		>
<channel>
	<title>Comments on: Leveraging expression trees to unit test ViewModel classes</title>
	<atom:link href="http://www.japf.fr/2010/03/leveraging-expression-trees-to-unit-test-viewmodel-classes/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.japf.fr/2010/03/leveraging-expression-trees-to-unit-test-viewmodel-classes/</link>
	<description>Jeremy Alles Presentation Foundation: WPF, Silverlight, Windows Phone 7, Windows 8</description>
	<lastBuildDate>Fri, 13 Jan 2012 15:59:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.japf.fr/2010/03/leveraging-expression-trees-to-unit-test-viewmodel-classes/comment-page-1/#comment-1363</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Thu, 01 Apr 2010 06:29:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=483#comment-1363</guid>
		<description>Thanks Fred to the feedback. Code simple is now fixed !</description>
		<content:encoded><![CDATA[<p>Thanks Fred to the feedback. Code simple is now fixed !</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: The Morning Brew - Chris Alcock &#187; The Morning Brew #566</title>
		<link>http://www.japf.fr/2010/03/leveraging-expression-trees-to-unit-test-viewmodel-classes/comment-page-1/#comment-1301</link>
		<dc:creator>The Morning Brew - Chris Alcock &#187; The Morning Brew #566</dc:creator>
		<pubDate>Wed, 24 Mar 2010 07:52:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=483#comment-1301</guid>
		<description>[...] Leveraging expression trees to unit test ViewModel classes - Jeremy Alles looks at how you can use Expression Trees to shorten the code required to test view model properties, working from the verbose manual method, to his expression tree method. Full source is provided. [...]</description>
		<content:encoded><![CDATA[<p>[...] Leveraging expression trees to unit test ViewModel classes &#8211; Jeremy Alles looks at how you can use Expression Trees to shorten the code required to test view model properties, working from the verbose manual method, to his expression tree method. Full source is provided. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fred POINDRON</title>
		<link>http://www.japf.fr/2010/03/leveraging-expression-trees-to-unit-test-viewmodel-classes/comment-page-1/#comment-1294</link>
		<dc:creator>Fred POINDRON</dc:creator>
		<pubDate>Tue, 23 Mar 2010 17:13:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=483#comment-1294</guid>
		<description>Very cool Jérémy !
For sure, I&#039;ll try this code in my next test project.
I think there&#039;s a small error in your third source code sample:

 vm.PropertyChanged += (s, e) =&gt; propertyChanged = e.PropertyName ==  &quot;newName&quot;

must be changed to

vm.PropertyChanged += (s, e) =&gt; propertyChanged = e.PropertyName ==  &quot;Name&quot;;

Good work !

Fred</description>
		<content:encoded><![CDATA[<p>Very cool Jérémy !<br />
For sure, I&#8217;ll try this code in my next test project.<br />
I think there&#8217;s a small error in your third source code sample:</p>
<p> vm.PropertyChanged += (s, e) =&gt; propertyChanged = e.PropertyName ==  &#8220;newName&#8221;</p>
<p>must be changed to</p>
<p>vm.PropertyChanged += (s, e) =&gt; propertyChanged = e.PropertyName ==  &#8220;Name&#8221;;</p>
<p>Good work !</p>
<p>Fred</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jeremy</title>
		<link>http://www.japf.fr/2010/03/leveraging-expression-trees-to-unit-test-viewmodel-classes/comment-page-1/#comment-1292</link>
		<dc:creator>Jeremy</dc:creator>
		<pubDate>Tue, 23 Mar 2010 15:39:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=483#comment-1292</guid>
		<description>Thank you for the feedback Thomas :-)

Yes I could have done an extension method. Is it possible to do that on an interface (INotifyPropertyChanged) and not on a type ?</description>
		<content:encoded><![CDATA[<p>Thank you for the feedback Thomas <img src='http://www.japf.fr/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Yes I could have done an extension method. Is it possible to do that on an interface (INotifyPropertyChanged) and not on a type ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Thomas Levesque</title>
		<link>http://www.japf.fr/2010/03/leveraging-expression-trees-to-unit-test-viewmodel-classes/comment-page-1/#comment-1291</link>
		<dc:creator>Thomas Levesque</dc:creator>
		<pubDate>Tue, 23 Mar 2010 15:27:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.japf.fr/?p=483#comment-1291</guid>
		<description>Cool stuff, thanks !

Just an idea : for more convenience, why not declare the TestHelper.TestProperty method as an extension method ? This would make the unit test code even simpler :

    vm.TestProperty(v =&gt; v.IsSelected);</description>
		<content:encoded><![CDATA[<p>Cool stuff, thanks !</p>
<p>Just an idea : for more convenience, why not declare the TestHelper.TestProperty method as an extension method ? This would make the unit test code even simpler :</p>
<p>    vm.TestProperty(v =&gt; v.IsSelected);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

