CSharpFeeds - All your C# feeds in one place.

Sponsors

Feed: Develop With Passion®

Site: http://blog.developwithpassion.com/ Link: http://feeds.feedburner.com/JPBoodhoo

Tuesday, July 28, 2009

Closing an anonymous method to a known delegate type

by JPSB via Develop With Passion® on 7/28/2009 9:00:00 PM

If you are using extension methods as a way to achieve more language oriented programming, there are lots of times you will want to be able to run extension methods against an anonymous method, but you will first have to close it to a well known delegate type before it is allowed. Here is a useful method if you want the starting point to be an anonymous method created on the fly:     publicclassCreateDelegate     {        publi ...

[ read more ]

Tuesday, March 03, 2009

Triggering events on UI components (WinForms)

by JPSB via Develop With Passion® on 3/3/2009 10:37:00 PM

I am currently working on a large winforms application (most likely the last winforms app before I make the transition to WPF). I am writing the application in a top down fashion, which means I drive out the tests for the presenters, and then move down through the corresponding layers to get a good vertical slice of functionality. When it comes to the development of the user interface I am using a command based UI to allow me to easily drive the testing of the screens easily from a unit t ...

[ read more ]

Wednesday, February 04, 2009

Slight addition to jpboodhoo.bdd

by JPSB via Develop With Passion® on 2/4/2009 11:00:00 PM

If you recall from the last post on this topic one of the ways you can record an observation is by simply doing this:             [Observation]             public void should_dispose_the_appropriate_items()             {                 connection.wa ...

[ read more ]

Tuesday, January 27, 2009

Test examples with MBUnit and jpboodhoo.bdd

by JPSB via Develop With Passion® on 1/27/2009 1:08:00 PM

The other day I placed a library up on assembla that I use as a place to store my current set of conventions on writing unit tests. My current flavour of testing focuses on the use of BDD to emphasize context and behaviour of a particular SUT (System under test) that I am exercising. This post is not about detailing my current thinking on BDD, more to demonstrate some ways that you can use the very small framework in conjunction with MBUnit to remove a lot of cruft ...

[ read more ]

Tuesday, December 23, 2008

Interesting Collaboration Tool To Check Out

by JPSB via Develop With Passion® on 12/23/2008 10:42:00 PM

My good friend Scott just pointed me in the direction of a really great (and very affordable) collaboration tool with excellent Skype support. Check it out at:   https://www.yugma.com/   Develop With Passion!! ...

[ read more ]

Monday, December 22, 2008

How I’m Currently Writing My BDD Style Tests – Part 2

by JPSB via Develop With Passion® on 12/22/2008 9:29:00 PM

We left off in part 1 with an example of a test written using my current style and I finished off outlining the skeleton for one of the base classes that shields the actual Concern classes from a lot of noisy test related nomenclature. In this post I am going to break down the responsibilities of the “an_observations_basic_set_of_behaviours” class. For a quick reminder, here is the skeleton outline of the class:         [Observations] ...

[ read more ]

Tuesday, November 25, 2008

Slightly Different Way To Write Unit Tests

by JPSB via Develop With Passion® on 11/25/2008 2:15:00 PM

I was in the middle of the last Nothin But .Net class (more on that in a later post) and I started playing around with a slightly different way to write unit tests (inspired by the look of MSpec). It was cool to build it/demo it/ and use it in front of the class. Here is some sample code written using the new style: [Concern( typeof (ShoppingCart))] public ...

[ read more ]

Wednesday, October 29, 2008

BDD Extension Methods

by JPSB via Develop With Passion® on 10/29/2008 11:00:00 PM

In response to a comment from the  last post, here is the interface of the BDDExtensions that were driven out from the last NBDN course: public static class BDDExtensions { public static void ...

[ read more ]

Subscribe

New Feed

Product Spotlight

Recently Updated Sources

Legal Note

The content of the postings is owned by the respective author. CSharpFeeds is not responsible for the contents of the postings. This site is automatically generated and cannot be reviewed for abusive content. If you find abusive content on CSharpFeeds, please contact us. Designated trademarks and brands are the property of their respective owners. All rights reserved.

Advertise with us