Tag Archives: .NET

WebSocket Webinar Demo Code

Thanks to those who attended today’s webinar. The demo code is located here until it (and the recording) get uploaded to the DM website later this week. Feel free to email with questions!

Why won’t my iterator throw?

I ran into a spot of confusion last night doing some TDD on a method that returns an IEnumerable<T>. I was using multiple yield return statements in it which made the method an iterator and not just a normal method. Even though I know how iterators work, I don’t use them enough to remember their [...]

New BehaveN Release

This is a minor, bug fix release. You can see the changes here. I’ve also updated the wiki with some more documentation.

BehaveN

I’ve been using a Cucumber-inspired BDD framework for .NET called BehaveN at work for the past year. Today, I just released the next major version. There’s a little documentation on the wiki, including a tutorial, but there’s a lot left that I haven’t documented yet. I’ll be getting more and more documentation up as time [...]

AutoRunner Downloads

I took some time tonight to throw together a build script for producing proper releases of AutoRunner. If you don’t feel like compiling it yourself, you can get a pre-compiled version here. I used ILMerge to merge the Growl for Windows assemblies into the executable so it’s basically a single file now. By the way, [...]

AutoRunner

I recently came across this awesome code kata performance by Corey Haines here. Besides enjoying and learning from his actual performance, I was really impressed by his use of a Ruby tool called autotest. (I’m not sure, but it looks like it has become autospec.) Not being a Ruby developer, I wanted the same thing [...]

SharpTestsEx

I’ve been using Fabio Maulo‘s NUnitEx project to get fluent assertions on a personal project recently and have been loving it. He then went and moved on to a new project called SharpTestsEx, which he intended to be framework-agnostic, but currently only worked with MSTest which prevented me from being able to use it (since [...]

Nesting NHibernate Mapping Files

The problem: Hiding Your hbm.xml files in Visual Studio (or not) The solution: How to nest NHibernate mapping files in Visual Studio projects I’m doing this in Visual Studio 2008. I don’t know if this is a “bug” or not, but it sure is annoying. The fix Timo posted does work, but it requires editing [...]

TestDriven.NET Keyboard Shortcuts

I’m so sick of Ctrl+Tab’ing back to my test file, finding the test I want to run, right-clicking it with the mouse, and selecting Run Test(s) or Test With. How come nobody told me that TestDriven.NET came with keyboard shortcuts? They have to be manually mapped, but once I did that, I’ve found them indispensible. [...]

Splitting CamelCase With Regular Expressions

On my new project, I needed to split a method name up into its constituent parts. For Ruby programmers, this is easy: just split on underscores. For us .NET programmers, we need something a little fancier since we like to SquashOurMethodNamesTogetherLikeThis. Here’s a little regular expression that can do exactly that: (?<!^)(?=[A-Z]) That basically says [...]