Geeks With Blogs
Chris Canal A Scottish .NET Developer tdd
ASP.NET MVC ActionResult Helper
Recently I’ve been working a lot with the new ASP.NET MVC framework, with Preview 1 (bleh) and the interim drop, Pre-Preview 3? The ActionResult is a fantastic addition, making the framework far easier to test. However, I noticed I was basically doing the same thing for each test: [Test] public void TestSomething() { var actionResult = controllerUT.Something() as RenderViewResult; If ( actionResult == null ) Assert.Fail(“ActionResult was null.”); Assert.That(actionResult.Vi... Is.EqualTo(“ViewName”)); ......

Posted On Thursday, May 15, 2008 6:59 PM

Test First? Or is that new legacy code you just checked in?
Quote: ...legacy code is simply code without tests. - Working Effectivly with Legacy Code - Micheal Feathers I was discussing testing with a friend the other day, mainly Test Driven Development and we got onto the topic of new code without tests and retrofitting them. The first thing that popped into my head was the above quote and the following: Quote: Code without tests us bad code. It doesn't matter how well written it is; it doesn't matter how pretty or object-oriented or well-encapsulated it ......

Posted On Friday, May 9, 2008 3:33 PM

Handy HttpPostedFile & HttpFileCollection abstractions
I've just upgraded to the latest version interim drop of the MVC framework and MVC Contrib (which I can't seem to build from source using NAnt...). Everything appeared to be ok, except for one thing: a controller action that uploads a file was now throwing an error: cannot convert from 'System.Web.HttpPostedFileB... to 'System.Web.HttpPostedFile' After a few seconds of confusion I quicky dawned on me that this might be a very good thing. A quick look at the System.Web.Abstractions confirmed my throughts, ......

Posted On Wednesday, April 23, 2008 8:18 PM

WANTED: Glasgow based Trainee .NET Developer
Strictly no agencies. I mean it! If I get a single call or email I will NOT be polite. My employer is looking to hire a trainee .NET developer. No real previous .NET experience is required, but you must have a passion for development and the latest technology. You'll get the opportunity to learn and work with many practices and tools that fall under the ALT.NET banner: Agile Practices Test Driven Development Domain Driven Development Continuous Integration NHibernate Castle Binsor BOO Rhino .NET ......

Posted On Friday, April 18, 2008 11:51 AM

Resistance to TDD
I've been developing with Test Driven Development for awhile now (more in the form of Behavioural Driven Development) both in and outside of work. I've recently started a new job where TDD isn't used and I've been showing the other developers how I use it. If you have ever read a TDD book, you'll know every argument against TDD they have given to me: Adds too much time Not beneficial for the client Makes things complicated It's to be used by people, not machines Bad experience Adds too much time ......

Posted On Thursday, March 27, 2008 11:21 AM

Copyright © Chris Canal | Powered by: GeeksWithBlogs.net