-
Recent Posts
Recent Comments
- Mark Webb on Git For Windows Developers – Git Series – Part 1
- Cherif on Git For Windows Developers – Git Series – Part 1
- Jason Meridth on Git For Windows Developers – Git Series – Part 1
- sb22 on Git For Windows Developers – Git Series – Part 1
- Jason Meridth on A very good introduction to TDD, NHibernate, DDD, NUnit
Archives
- June 2011
- September 2010
- May 2010
- April 2010
- March 2010
- February 2010
- January 2010
- October 2009
- September 2009
- July 2009
- June 2009
- May 2009
- April 2009
- March 2009
- February 2009
- January 2009
- December 2008
- November 2008
- October 2008
- September 2008
- August 2008
- July 2008
- June 2008
- April 2008
- March 2008
- February 2008
- January 2008
- December 2007
- November 2007
- October 2007
- September 2007
- August 2007
- July 2007
- June 2007
- May 2007
- April 2007
- March 2007
- February 2007
- January 2007
- December 2006
Categories
- .NET
- Agile
- agile project management
- altnetconf
- apache
- apple
- ASP.NET
- ASP.NET MVC
- Automated Build
- Ayende
- bash
- blogging
- Blogs
- Books
- C#
- castle
- charity
- community
- Community Server
- continous integration
- Continuous Integration
- CruiseControl.NET
- Design Patterns
- DotNetNuke
- Events
- firefox
- friends
- funny
- gems
- git
- gitosis
- gitweb
- Good Finds
- Google Reader
- Hardware
- hosting issues
- howto
- htpasswd
- hudson
- Instant Messaging
- integrityapp
- JetBrains
- Kernel
- keyboard shortcuts
- Linux
- LosTechies
- members
- microsoft
- migrations
- Misc
- Mocking
- monorail
- movies
- MSBuild
- msdn
- MVC
- NAnt
- nginx
- NHibernate
- oauth
- Open Source
- Pair Programming
- Personal
- pragprog
- presentation
- principles
- Programming
- python
- rails
- rake
- ReSharper
- rspec
- ruby
- san antonio
- Scrum
- selenium
- selenium remote control
- shoulda
- slicehost
- SOLID
- ssh
- Stand-Up
- Subversion
- TDD
- TeamCity
- test::unit
- testing
- textmate
- Tools
- Ubuntu
- Uncategorized
- Virtual Machine
- Visual Studio
- vmware
- windows
- Windsor
- xkcd
- XP
Meta
Category Archives: TDD
Getting value out of your unit tests
Unit tests, with TDD in particular, are the most efficient way I’ve found in creating behavior for my application. For lasting value, beyond just the safety net of “if I change something, will something break”, requires extra discipline, and a … Continue reading
Do not test private methods
You should only be testing public methods. Private methods are an implementation detail of the object and are subject to heavy change, etc. Any class, including test fixtures, that care about private methods on another object exhibit the “Inappropriate intimacy” … Continue reading
Also posted in altnetconf
1 Comment
BDD and Parameterized testing
Although I really like Astels style BDD still use a lot of parameterized testing and though I should give you an example why, using XUnit.net. Lets say we’re testing simple SPECIFICATION style rules, in BDD we might write: [Concerning(typeof(ValidEmailRule<TestEntity>))]public class When_using_rule_on_a_null_string : … Continue reading
Also posted in Books, principles
Comments Off
Where TDD fails for me
TDD is by far the sharpest tool in my belt. The simplicity of client-driven design combined with the safety net of unit tests allow me to build software at a remarkable constant pace. At the edges of most of the … Continue reading
Comments Off
Lazy Loaded Interceptors
Patterns of Enterprise Application Architecture defines Lazy Load as: An object that doesn’t contain all of the data you need but knows how to get it. A while back I was trying to figure out how to lazy load … Continue reading
Also posted in Programming
Comments Off
Mocking Queryables
Recently, we’ve been mocking out IQueryable’s as return values, which had led to setups that look like the following… programs.setup_result_for(x => x.All()).Return(new List<IProgram> {active_program,inactive_program}.AsQueryable()); I just switched over to the following syntax… by creating an extension method. programs.setup_result_for(x => x.All()).will_return(active_program,inactive_program); … Continue reading
Also posted in Programming
Comments Off
BDD – Files/Folders/Namespaces (BDD)
Files/FoldersOne thing that can be troublesome when moving to a BDD style approach is how to organize your files and folders, so far I’ve tried two approaches: One class in each file – So if you have When_associating_an_order_with_a_customer and When_associating_an_order_with_a_preferred_customer then … Continue reading
Also posted in Programming
Comments Off
Acceptable test failures
As Derick Bailey pointed out in my last post, one of the annoyances with ReSharper is the NotImplementedException it puts in when you generate a method. Going from the TDD side, this is exactly what we don’t want when we’re … Continue reading
Comments Off
Three simple Rhino Mocks rules
In previous versions of Rhino Mocks, the Record/Replay model was the only way to create and verify mocks. You would have an area that set up expectations in a record mode, then the replay mode would verify your expectations. What … Continue reading
Comments Off
A TDD investment addendum
I completely left out one very important tip in my top 10 tips to get a return on your TDD investment: Take advantage of pair-programming. Pair programming is a great teaching device, as it lets two people go back and … Continue reading
Comments Off
