Created
November 25, 2010 08:23
-
-
Save jdomzhang/715076 to your computer and use it in GitHub Desktop.
For Replying SpecFlow Google Group Discussion, http://groups.google.com/group/specflow/browse_thread/thread/81eccf7757a3a9bb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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