Hi All, Recently on the NUnit list someone emailed in trying to figure out how to test "private void" methods. Turns out they were wanting to test an event...
... Great post! If you're going to add a configuration item to influence which IFontDialog that the FontDialogFactory will create, why not just put the class...
Hi Cory, Nice post and a nice blog. I added it to my Bloglines list :). ... This whole factory and configuration thing looks a bit too much to me. I usually do...
... Cory ... my initial feedback is that on my laptop, running Maxthon/IE, the code font is pink on white, and very tiny. I'll try to read through and offer...
... Looks nice ... it felt a little less test-driven than I was comfortable with, but I don't see a way around that. In the FontFactory, I might have had the...
... I just posted an entry on my blog about this, describing what I would do differently: http://www.livejournal.com/users/anthony_w/8000.html The key...
... Hi Anthony, Two points about your approach. I notice your form.menuItem15_Click(null, null); is still private on your MyForm class. And you should be able...
... Absolutely. I left the implementation of MockFontSelector as an exercise for the reader, since it's not really relevant to the idea. If you generally use a...
hi anthony, ... just to play devil's advocate here: - it now looks like all of the functionality has been extracted to the SelectFontUsingFontDialog class. so...
... Hi Anthony, Thanks for the feedback. Extracting out the presentation and business logic is almost always going to create better testable solutions. So I ...
... Well, there was a specific reason I chose that way. Currently we're dealing with a big legacy C# Winform app. It acheived "customization" through a giant...
... Hi Owen, ... The original design had two aspects to test --- did the menu click ask the user for a new font, and did the font get changed to the new one....
On 07/11/05, Anthony Williams <anthony_w.geo@...> wrote: Hi Anthony, ... If I may be so bold, I think yourself and Cory have missed a trick. I might be...
... Looks nice ... I'd be better able to grok, with my limited time and capacity, if all the code, including whatever _Get is and the dynamic mock stuff, were...
... So, you're not using an interface, but rather a class with virtual methods, and you've extracted a second method from the first, so you can verify the ...
... agreed. ... what would this look like in code? how would you ensure that the modal dialog thread is properly in sync with the test thread? just curious...
Owen Rogers
exortech@...
Nov 8, 2005 4:20 pm
861
hi tim, ... what would the tests look like for your collaborator? are FontDialogue and FontDialog the same class? how would we mock out methods on FontDialog...
Owen Rogers
exortech@...
Nov 8, 2005 4:26 pm
862
... After playing around with Ruby a bit, I kinda got into the whole 'less complicated' code mindset. So my previous thought excursion into DI/IOC was way...
... I'm currently writing one up. Hopefully I'll be able to post it tonight. I've stumbled across a really interesting mocking pattern whilst doing it. Cheers,...
I've just uploaded an article and some source code to the TFUI files area: http://groups.yahoo.com/group/TestFirstUserInterfaces/files/ The article is entitled...
... Check out the article I just posted. It demonstrates how using the new mock I posted to the NMock list enabled 100% test coverage in that particular case....
... Nope. Miniature manifesto. ... Test not structure but behavior. For internal code, don't test little support things like [] and {}. Test 'if', or...
... Windows Forms might hit that limit quite early ;-) A ruthlessly effective way to test layout for HTML is to generate pure XHTML. Then capture it, and query...
... It just hit me that we have a method in one of the classes of the legacy .NET app I'm working on that captures the entire layout of the controls on the...
... Of course! ;) I'm thinking of it more as some sort of an intermediary to a testing tool. It's a little foggy right now, I'll play with it and see what...