Permalink
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (28 sloc) 816 Bytes
using System;
using Humanizer;
using NUnit.Framework;
using TestStack.BDDfy;
namespace TestStack.Seleno.Tests.Specify
{
[TestFixture]
internal abstract class Specification : ISpecification
{
[Test]
public virtual void Run()
{
string title = BuildTitle();
this.BDDfy(title);
}
protected virtual string BuildTitle()
{
return Title ?? GetType().Name.Humanize(LetterCasing.Title);
}
// BDDfy methods
public virtual void EstablishContext() { }
public virtual void Setup() { }
public virtual void TearDown() { }
public virtual Type Story { get { return GetType(); } }
public virtual string Title { get; set; }
public string Category { get; set; }
}
}