Unit Testing
Okay, i’m going to start to implement Unit Testing into my code for my current project.
And while I was looking around for some extra information on unit testing in regards to a database driven app (well, most ASP.NET apps are database driven these days) and found something I think may come in handy, so going to just paste the link here for reading later…
Simplified Database Unit testing using Enterprise Services – http://weblogs.asp.net/rosherove/articles/dbunittesting.aspx (By Roy Osherove).
Thus far, just reading some articles on unit testing, and have already completed the sample that came with NUnit.
I’ve allocated myself from now until the end of next week to write up the Unit Tests, and nothing but unit tests.
Was actually speaking with Chris Garty on Tuesday after the MDNUG meeting about starting to use NUnit for my current project. And from that I got the idea that it will probably be a lot easier to just add tests for the new things which I create, rather than going back and doing all the tests now. I’ve decided, ok, if i’m going to do this, I might as well do 2 things at once for a week, and that is, learn more about unit testing, and apply them where possible in the current project. Then try to add more as I add new features and so on…
I suppose, as with all things in life, the first time you try something it gets a bit of getting used to, but the more you do something, the easier it gets…