Skip to content

Instantly share code, notes, and snippets.

View gbHeadspring's full-sized avatar

Glenn Burnside gbHeadspring

View GitHub Profile
@gbHeadspring
gbHeadspring / NUnitLifeCycle.cs
Created September 7, 2011 15:39
Demonstrates the lifecycle of NUnit test method execution
using System;
using NUnit.Framework;
namespace NUnitLifecycle
{
[TestFixture]
public class TestClass : IDisposable
{
public TestClass()
{
using System;
using NUnit.Framework;
namespace NUnitLifecycle
{
public abstract class TestBase : IDisposable
{
protected TestBase()
{
Console.WriteLine("Base Constructor");
@gbHeadspring
gbHeadspring / SetUpFixtureDatabaseExampleOutput.txt
Created October 25, 2011 16:22
Sample code for demonstrating the use of NUnit SetUpFixture classes
Dropping Database.
Rebuild Database with latest Schema.
Load basic test environment data.
Loading basic account data.
Opening outer Transaction scope
Executing test 1.
Executing test 2.
Roll back transaction scope.