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.
Posts tagged .Net
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. [...]
Write and Validate XML with a DTD in Memory in .Net
This is the sample of piecing together a lto of different posts, so I thought I’d put a sample on the web… I’m putting it in VB.Net (because I was writing in it due to project requirements Imports System.Xml Imports System.Xml.Schema Imports System.Text Imports System.IO Public Class MyXMLTool Private sb As New StringBuilder(“”) Private [...]
