Geeks With Blogs


Geekus Con Livus Malcolm Anderson's home for Geeks With Lives July 2006 Entries
A tool for capturing testing objects
I posted my code for a serialize and I just thought up an idea for making it really useful. I'm retroactively trying to add some unit tests to some legacy code. I've got a working version of the code, and I'm thinking that I need to add a method or two to my serialization tool. First thing, is I need a way to put a bunch of save hooks in and then have it trigger for all my objects that I care about catching their state. I'm thinking a static boolean that can be set on with a test for a field being ......

Posted On Monday, July 24, 2006 12:34 PM

My Session was small, but it rocked
Friday night, my presentation congealed into garbage. This was not a good thing. I had to skip Jeff Levinson's “Test Driven Development with Team System” in order to work on my presentation. I was competing with “Poker Bots for Fun and Profit”, with Jeff Berkowitz, Stuart Celariar's “Understanding Subversion“, Rory's “An introduction to WCF for the complete beginner“and 4 others. There was a part of me that was hoping that no one would show up, because ......

Posted On Monday, July 24, 2006 5:49 AM

Object serialization in VS 2003
I don't know about you, but I have an attention span that is about 20 minutes long. If I can get your sample working, doing something (anything) in the first 20 minutes, I may be playing with it when the sun comes up. You just have to capture my attention QUICKLY. In that light, I wanted to post a utility that I wrote to make unit testing mo-bedda (read : easier) This consists of the class, and the unit tests to exercise the class. If all goes correctly, you should be able to copy these into new ......

Posted On Thursday, July 20, 2006 12:35 PM

I need input on Unit Testing Architecture
How do you set up your classes, and your file structures? Below is a 1 sheet “handout“ that I'm preparing for my talk on Saturday. It's really more of a handful of thoughts about how I want to do things rather than a suggestion. Tools and methods I want all my classes to have. Given Class Foo (and instatiation of myFoo) myFoo.SaveSelfToDisk(“... myFoo.LoadSelfFromDisk(R... Foo newFoo = myFoo.Clone() Bool areEquals = (myFoo.IsEqualTo(newFoo) ......

Posted On Wednesday, July 19, 2006 5:47 AM

Portland Oregon Code Camp Needs You
Do you live with in 200 miles of Portland Oregon? Do you have a subject related to programming that you are passionate about? Are you a geek with a hidden desire to demonstrate to the world that you know what you are talking about? Are you available to be in Vancouver Washington this Saturday and / or Sunday? If you or someone you know fit's the above description, we need you NOW. Run, don't walk over to the Portland Code Camp site and sign up to give that presentation you've always wanted to give. ......

Posted On Tuesday, July 18, 2006 10:21 AM

Unit Testing a Private Method
So on a lark, I threw my hat into the ring for Portland Code Camp 2.0, I didn't expect to get accepted, there were already a few sessions on unit testing and nunit but I figured, what the heck, let's gear it for beginners, and do it in VB.Net. Now I'm in the process of getting ready and I figured I should blog about things and or techniques as they came up. For my first trick, testing a private method. First rule of thumb: Don't do this. No really, Don't. You are locking the internals of your code ......

Posted On Thursday, July 13, 2006 7:48 AM

Copyright © Malcolm Anderson | Powered by: