1. Set a break point in a unit test 2. Open NUnit 3. In Visual Studio, go the tools Menu and choose Attach to Process (or Ctrl-Alt-P) 4. Choose nunit out of the list 5. Run tests. Make sure you run the test where your breakpoint is if you don’t run all tests.
Archives for November, 2008
Javascript Scoping
If you understand what’s going on when this runs, then you understand javascript scoping. var x = 5; alert(x); function foo(){alert(x);var x = 10;alert(x);} foo(); alert(x);
Parenthesis Syntax
I’m going to a talk on F# tonight in the Cleveland area. It’s not something I’ll likely get to use in my job, but it’s interesting, and I like to check out different languages. I’ve played around with the language and it seems to have some promise. I like some of the newer functional languages [...]
Thinking About Steve Yegge’s Hiring Post
http://steve-yegge.blogspot.com/2008/06/done-and-gets-things-smart.html I’m a big fan of Steve Yegge and his blog. I was recently rereading some of his posts and the above one had a lot of new meaning for me. At my job, I had recently been involved several interviews of technical candidates, as well as working with a new hire that I didn’t [...]
JScript.Net and C# Interaction
// lib.cs: using System; namespace Library { public class TestLib { public static void speak(){ Console.WriteLine(“Hello From CSharp Dll”); } } } // hello.js import System; import Library; var a = {name:’JScript Object in Exe’}; a.foo = function (){ Console.WriteLine(‘Hello From ‘ + this.name); }; a.foo(); TestLib.speak(); Compiling: 1. [...]
Linq to SQL
Background: Linq to Sql is a lightweight data access protocol for the .Net framework. It supports filtering and other lambda features in code, allowing the programmer to treat their data source as if it were a collection of objects that support flexible features. In this way, it can be thought of as an ORM mapper, [...]
Election Post
I didn’t plan on writing anything about the election. I’m certainly not going to tell people how to vote. Most of the people who read this are either friends, or people I know through work. Work and politics don’t mix well. All that being said, I can’t resist making a suggestion for tomorrow. Please vote [...]
