RSS Log in
 
Quick instructions on making R#, StyleCop and MSpec play nicely together. [More]

Invariably as a project and its associated test suite gets larger, (some) Developers will start marking unit tests with the ‘Ignore’ attribute in the hope to get back to it later on. More often than not, it never happens and things can quickly get out of hand with dozens of tests no longer running. ... [More]

To prevent the Unit Test Runner in R# from re-building projects every time you run a test or a set of tests, simply click on the Build Settings button in the Unit Test Sessions window and select Never Build.  

A LINQPad style Dump() method for Ruby

Published 10/27/2011 by pascal
Tags: ,
As I go through my learning in Ruby I find myself constantly writing puts, p and print to output some result in the console window. However I found this distracting when reading the code as it is the first thing on the line and not what I really want to focus on. What I need is something similar to ... [More]

So Visual Studio 2010 has this cool new feature called Reference Highlighting. If you don’t know anything about it yet, go and read the excellent Visual Studio Tips & Tricks blog to find out how to use it. What Zain Nabousi’s post doesn’t say however is that you can also custom... [More]

Relative Paths in T4 Templates

Published 3/31/2010 by pascal
In my previous post, I showed how you could use a T4 template within Visual Studio to generate a C# ImageLibrary class based on a WPF file called ImageResources.xaml. If you want to do something similar but the resource file is not in the same folder as the template, you should refer to it using its... [More]

Adding an image in WPF is very straight forward. All you need to do is declare an Image element in XAML and specify the path of the image in the Source attribute: <Image Source="about.png" /> But rather than deploying all your image files with your application, you might want to embed them in ... [More]

A couple of weeks ago, I started getting a VerificationException on a newly created unit test project which had already a bunch of tests in it. The full message was: method [TEST_METHOD_NAME] threw exception. System.Security.VerificationException: Operation could destabilize the runtime. For the s... [More]

Today my colleague Rob pointed out to me that enabling Code Analysis (aka FxCop) on our solution was slowing down the build time on his machine to a rather unacceptable level. After some very unscientific perf testing, watch in hand, we saw the build time increase by more than 20 seconds with code a... [More]

With January almost over, my new project at work is now well under way. The application that I’m working on is essentially a WPF smart client that will be built on top of Composite WPF (aka PRISM) and follow the well-established Model View ViewModel (MVVM) pattern. As it has been almost a year... [More]

© Copyright 2012 TheBooleanFrog Powered by: BlogEngine.NET|Credits|Subscribe via RSS

Follow

twitter linkedin linkedin rss

TheBooleanFrog

Programming sticky notes and other distractions...