forked from xerxesb/SpecFlow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
full step autocomplete, first version
- Loading branch information
1 parent
7ec4373
commit 95034c9
Showing
31 changed files
with
1,086 additions
and
229 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Text.RegularExpressions; | ||
using TechTalk.SpecFlow.Parser.Gherkin; | ||
|
||
namespace TechTalk.SpecFlow.Vs2010Integration.Bindings | ||
{ | ||
public enum BindingType | ||
{ | ||
Given = ScenarioBlock.Given, | ||
When = ScenarioBlock.When, | ||
Then = ScenarioBlock.Then | ||
} | ||
|
||
public interface IBindingType | ||
{ | ||
string Name { get; } | ||
string FullName { get; } | ||
} | ||
|
||
public interface IBindingParameter | ||
{ | ||
IBindingType Type { get; } | ||
string ParameterName { get; } | ||
} | ||
|
||
public interface IBindingMethod | ||
{ | ||
IBindingType Type { get; } | ||
IEnumerable<IBindingParameter> Parameters { get; } | ||
string ShortDisplayText { get; } | ||
} | ||
|
||
public class StepBinding | ||
{ | ||
public IBindingMethod Method { get; private set; } | ||
public BindingType BindingType { get; private set; } | ||
public Regex Regex { get; private set; } | ||
|
||
public BindingScope BindingScope { get; private set; } | ||
public bool IsScoped { get { return BindingScope != null; } } | ||
|
||
public StepBinding(IBindingMethod method, BindingType bindingType, Regex regex, BindingScope bindingScope) | ||
{ | ||
Method = method; | ||
BindingType = bindingType; | ||
Regex = regex; | ||
BindingScope = bindingScope; | ||
} | ||
} | ||
|
||
public class BindingScope | ||
{ | ||
public string Tag { get; private set; } | ||
public string FeatureTitle { get; private set; } | ||
public string ScenarioTitle { get; private set; } | ||
|
||
public BindingScope(string tag, string featureTitle, string scenarioTitle) | ||
{ | ||
Tag = tag; | ||
FeatureTitle = featureTitle; | ||
ScenarioTitle = scenarioTitle; | ||
} | ||
} | ||
|
||
|
||
} |
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
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
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
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
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
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
Oops, something went wrong.