Пример #1
0
        public void MbUnitRunner()
        {
            Using("MbUnit");
            FeatureRunner.Given_the_Feature_is(
                @"
Feature: Feature
Scenario: Scenario
");
            FeatureRunner.The_Runner_should_be(
                @"
using MbUnit.Framework;
namespace Features
{
[TestFixture]
public partial class Feature
{
[Test]
public void Scenario()
{
}
}
}
");
        }
Пример #2
0
        public void GenerateRunnerClass()
        {
            FeatureRunner.Given_the_Feature_is(
                @"
Feature: Feature Name
");
            FeatureRunner.The_Runner_should_be(
                @"
using Microsoft.VisualStudio.TestTools.UnitTesting;
namespace Features
{
[TestClass]
public partial class FeatureName
{
}
}
");
        }
Пример #3
0
 public void EmptyFeature()
 {
     Given_the_Feature_is_Empty();
     FeatureRunner.The_Runner_should_be("Feature file is Empty");
 }