Skip to content

Instantly share code, notes, and snippets.

@jdomzhang
Created November 25, 2010 08:23
Show Gist options
  • Save jdomzhang/715076 to your computer and use it in GitHub Desktop.
Save jdomzhang/715076 to your computer and use it in GitHub Desktop.
@one
Feature: SpecFlow Group
In order to reply specflow group
As a group member
I want to answer the discussion
Scenario: Answer discussion
Then I can anwer discussion
Feature: SpecFlow Group 2
In order to reply specflow group 2
As a group member
I want to answer the discussion
Scenario: Answer discussion 2
Then I can anwer discussion 2
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using TechTalk.SpecFlow;
namespace SpecFlowThinking
{
[Binding]
public class StepDefinitions
{
[BeforeFeature("one")]
public static void TestSetup()
{
Console.WriteLine(">>>>feature 1 begin.");
}
[Then(@"I can anwer discussion")]
public void ThenICanAnwerDiscussion()
{
Console.WriteLine(">>>>feature 1 executed.");
}
[Then(@"I can anwer discussion 2")]
public void ThenICanAnwerDiscussion2()
{
Console.WriteLine(">>>>feature 2 executed.");
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment