-
Notifications
You must be signed in to change notification settings - Fork 750
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Went ahead and created the initial file templates for StepDefinition …
…and EventDefinition. Reinstalled add-in and both show up and work when adding a new file. Just need to finish adding the xml to pass the arguments into the attributes for Given, When, Then for the StepDefinition and the code comments for the methods in both templates.
- Loading branch information
Showing
6 changed files
with
201 additions
and
0 deletions.
There are no files selected for viewing
Binary file added
BIN
+9.9 KB
IdeIntegration/MonoDevelopIntegration/Gui/SpecFlowEventDefinitionIcon.ico
Binary file not shown.
Binary file added
BIN
+9.9 KB
IdeIntegration/MonoDevelopIntegration/Gui/SpecFlowStepDefinitionIcon.ico
Binary file not shown.
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
90 changes: 90 additions & 0 deletions
90
IdeIntegration/MonoDevelopIntegration/Templates/SpecFlowEventDefinition.xft.xml
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,90 @@ | ||
<?xml version="1.0"?> | ||
<Template originator="SineSignal, LLC" | ||
created="2010/05/31" | ||
lastModified="2010/05/31"> | ||
<!-- Template Header --> | ||
<TemplateConfiguration> | ||
<_Name>SpecFlow Event Definition</_Name> | ||
<Icon>res:SpecFlowEventDefinitionIcon.ico</Icon> | ||
<_Category>NUnit</_Category> | ||
<LanguageName>*</LanguageName> | ||
<_Description>Creates a SpecFlow Event Definition file.</_Description> | ||
</TemplateConfiguration> | ||
|
||
<!-- Template Content --> | ||
<TemplateFiles> | ||
<CodeDomFile> | ||
<CompileUnit> | ||
<Namespaces> | ||
<Namespace Name=""> | ||
<Imports> | ||
<NamespaceImport Namespace="System"/> | ||
<NamespaceImport Namespace="TechTalk.SpecFlow"/> | ||
</Imports> | ||
</Namespace> | ||
<Namespace Name="${Namespace}"> | ||
<Types> | ||
<TypeDeclaration Name="${Name}" IsClass="true"> | ||
<CustomAttributes> | ||
<AttributeDeclaration Name="Binding"/> | ||
</CustomAttributes> | ||
<Members> | ||
<MemberMethod Attributes="Public, Final" Name="BeforeStep" ReturnType="System.Void"> | ||
<CustomAttributes> | ||
<AttributeDeclaration Name="BeforeStep"/> | ||
</CustomAttributes> | ||
</MemberMethod> | ||
<MemberMethod Attributes="Public, Final" Name="AfterStep" ReturnType="System.Void"> | ||
<CustomAttributes> | ||
<AttributeDeclaration Name="AfterStep"/> | ||
</CustomAttributes> | ||
</MemberMethod> | ||
<MemberMethod Attributes="Public, Final" Name="BeforeScenarioBlock" ReturnType="System.Void"> | ||
<CustomAttributes> | ||
<AttributeDeclaration Name="BeforeScenarioBlock"/> | ||
</CustomAttributes> | ||
</MemberMethod> | ||
<MemberMethod Attributes="Public, Final" Name="AfterScenarioBlock" ReturnType="System.Void"> | ||
<CustomAttributes> | ||
<AttributeDeclaration Name="AfterScenarioBlock"/> | ||
</CustomAttributes> | ||
</MemberMethod> | ||
<MemberMethod Attributes="Public, Final" Name="BeforeScenario" ReturnType="System.Void"> | ||
<CustomAttributes> | ||
<AttributeDeclaration Name="BeforeScenario"/> | ||
</CustomAttributes> | ||
</MemberMethod> | ||
<MemberMethod Attributes="Public, Final" Name="AfterScenario" ReturnType="System.Void"> | ||
<CustomAttributes> | ||
<AttributeDeclaration Name="AfterScenario"/> | ||
</CustomAttributes> | ||
</MemberMethod> | ||
<MemberMethod Attributes="Public, Final" Name="BeforeFeature" ReturnType="System.Void"> | ||
<CustomAttributes> | ||
<AttributeDeclaration Name="BeforeFeature"/> | ||
</CustomAttributes> | ||
</MemberMethod> | ||
<MemberMethod Attributes="Public, Final" Name="AfterFeature" ReturnType="System.Void"> | ||
<CustomAttributes> | ||
<AttributeDeclaration Name="AfterFeature"/> | ||
</CustomAttributes> | ||
</MemberMethod> | ||
<MemberMethod Attributes="Public, Final" Name="BeforeTestRun" ReturnType="System.Void"> | ||
<CustomAttributes> | ||
<AttributeDeclaration Name="BeforeTestRun"/> | ||
</CustomAttributes> | ||
</MemberMethod> | ||
<MemberMethod Attributes="Public, Final" Name="AfterTestRun" ReturnType="System.Void"> | ||
<CustomAttributes> | ||
<AttributeDeclaration Name="AfterTestRun"/> | ||
</CustomAttributes> | ||
</MemberMethod> | ||
</Members> | ||
</TypeDeclaration> | ||
</Types> | ||
</Namespace> | ||
</Namespaces> | ||
</CompileUnit> | ||
</CodeDomFile> | ||
</TemplateFiles> | ||
</Template> |
97 changes: 97 additions & 0 deletions
97
IdeIntegration/MonoDevelopIntegration/Templates/SpecFlowStepDefinition.xft.xml
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,97 @@ | ||
<?xml version="1.0"?> | ||
<Template originator="SineSignal, LLC" | ||
created="2010/05/31" | ||
lastModified="2010/05/31"> | ||
<!-- Template Header --> | ||
<TemplateConfiguration> | ||
<_Name>SpecFlow Step Definition</_Name> | ||
<Icon>res:SpecFlowStepDefinitionIcon.ico</Icon> | ||
<_Category>NUnit</_Category> | ||
<LanguageName>*</LanguageName> | ||
<_Description>Creates a SpecFlow Step Definition file.</_Description> | ||
</TemplateConfiguration> | ||
|
||
<!-- Template Content --> | ||
<TemplateFiles> | ||
<CodeDomFile> | ||
<CompileUnit> | ||
<Namespaces> | ||
<Namespace Name=""> | ||
<Imports> | ||
<NamespaceImport Namespace="System"/> | ||
<NamespaceImport Namespace="TechTalk.SpecFlow"/> | ||
</Imports> | ||
</Namespace> | ||
<Namespace Name="${Namespace}"> | ||
<Types> | ||
<TypeDeclaration Name="${Name}" IsClass="true"> | ||
<CustomAttributes> | ||
<AttributeDeclaration Name="Binding"/> | ||
</CustomAttributes> | ||
<Members> | ||
<MemberMethod Attributes="Public, Final" Name="GivenIHaveEnteredSomethingIntoTheCalculator" ReturnType="System.Void"> | ||
<CustomAttributes> | ||
<AttributeDeclaration Name="Given"> | ||
</AttributeDeclaration> | ||
</CustomAttributes> | ||
<Parameters> | ||
<ParameterDeclarationExpression Type="System.Int32" Name="number"/> | ||
</Parameters> | ||
<Statements> | ||
<MethodInvokeExpression> | ||
<Method> | ||
<MethodReferenceExpression MethodName="Pending"> | ||
<TargetObject> | ||
<TypeReferenceExpression Type="ScenarioContext.Current"/> | ||
</TargetObject> | ||
</MethodReferenceExpression> | ||
</Method> | ||
</MethodInvokeExpression> | ||
</Statements> | ||
</MemberMethod> | ||
<MemberMethod Attributes="Public, Final" Name="WhenIPressAdd" ReturnType="System.Void"> | ||
<CustomAttributes> | ||
<AttributeDeclaration Name="When"> | ||
</AttributeDeclaration> | ||
</CustomAttributes> | ||
<Statements> | ||
<MethodInvokeExpression> | ||
<Method> | ||
<MethodReferenceExpression MethodName="Pending"> | ||
<TargetObject> | ||
<TypeReferenceExpression Type="ScenarioContext.Current"/> | ||
</TargetObject> | ||
</MethodReferenceExpression> | ||
</Method> | ||
</MethodInvokeExpression> | ||
</Statements> | ||
</MemberMethod> | ||
<MemberMethod Attributes="Public, Final" Name="ThenTheResultShouldBe" ReturnType="System.Void"> | ||
<CustomAttributes> | ||
<AttributeDeclaration Name="Then"> | ||
</AttributeDeclaration> | ||
</CustomAttributes> | ||
<Parameters> | ||
<ParameterDeclarationExpression Type="System.Int32" Name="result"/> | ||
</Parameters> | ||
<Statements> | ||
<MethodInvokeExpression> | ||
<Method> | ||
<MethodReferenceExpression MethodName="Pending"> | ||
<TargetObject> | ||
<TypeReferenceExpression Type="ScenarioContext.Current"/> | ||
</TargetObject> | ||
</MethodReferenceExpression> | ||
</Method> | ||
</MethodInvokeExpression> | ||
</Statements> | ||
</MemberMethod> | ||
</Members> | ||
</TypeDeclaration> | ||
</Types> | ||
</Namespace> | ||
</Namespaces> | ||
</CompileUnit> | ||
</CodeDomFile> | ||
</TemplateFiles> | ||
</Template> |