diff --git a/src/6.0/My.Test.Library.N.Unit.Tests/Features/RequestValidator.feature b/src/6.0/My.Test.Library.N.Unit.Tests/Features/RequestValidator.feature index e472f02..71160c1 100644 --- a/src/6.0/My.Test.Library.N.Unit.Tests/Features/RequestValidator.feature +++ b/src/6.0/My.Test.Library.N.Unit.Tests/Features/RequestValidator.feature @@ -22,7 +22,7 @@ You can find some additional SpecFlow markdown documentation [here](https://docs Scenario: Various request scenarios Given a request has been created - And the first name is set to with not being used + And the first name is set to with neither nor being used And the last name is set to And the tickets requested are set to When the validation request is made @@ -30,15 +30,15 @@ You can find some additional SpecFlow markdown documentation [here](https://docs And there should be no error message Examples: - | first_name | last_name | number_of_tickets | unused_variable | - | John | Smith | 10 | 12 | - | Paul | Jones | 15 | 13 | - | Mary | Sue | 1 | 14 | - | Alex | McCain | 1 | 15 | - | Mary | Jones | 100 | 43 | - | The | Emperor | 1 | 42 | - | Cole | Stevens | 42 | 41 | - | Jack | Smith | 5 | 40 | + | first_name | last_name | number_of_tickets | unused_variable_1 | unused_variable_2 | + | John | Smith | 10 | 12 | 1 | + | Paul | Jones | 15 | 13 | 1 | + | Mary | Sue | 1 | 14 | 1 | + | Alex | McCain | 1 | 15 | 1 | + | Mary | Jones | 100 | 43 | 1 | + | The | Emperor | 1 | 42 | 1 | + | Cole | Stevens | 42 | 41 | 1 | + | Jack | Smith | 5 | 40 | 1 | @tickets Scenario: An inconclusive test diff --git a/src/6.0/My.Test.Library.N.Unit.Tests/Features/RequestValidator.feature.cs b/src/6.0/My.Test.Library.N.Unit.Tests/Features/RequestValidator.feature.cs index ec88855..f796111 100644 --- a/src/6.0/My.Test.Library.N.Unit.Tests/Features/RequestValidator.feature.cs +++ b/src/6.0/My.Test.Library.N.Unit.Tests/Features/RequestValidator.feature.cs @@ -176,22 +176,23 @@ public virtual void InvalidTicketsRequested() [NUnit.Framework.TestAttribute()] [NUnit.Framework.DescriptionAttribute("Various request scenarios")] - [NUnit.Framework.TestCaseAttribute("John", "Smith", "10", "12", null)] - [NUnit.Framework.TestCaseAttribute("Paul", "Jones", "15", "13", null)] - [NUnit.Framework.TestCaseAttribute("Mary", "Sue", "1", "14", null)] - [NUnit.Framework.TestCaseAttribute("Alex", "McCain", "1", "15", null)] - [NUnit.Framework.TestCaseAttribute("Mary", "Jones", "100", "43", null)] - [NUnit.Framework.TestCaseAttribute("The", "Emperor", "1", "42", null)] - [NUnit.Framework.TestCaseAttribute("Cole", "Stevens", "42", "41", null)] - [NUnit.Framework.TestCaseAttribute("Jack", "Smith", "5", "40", null)] - public virtual void VariousRequestScenarios(string first_Name, string last_Name, string number_Of_Tickets, string unused_Variable, string[] exampleTags) + [NUnit.Framework.TestCaseAttribute("John", "Smith", "10", "12", "1", null)] + [NUnit.Framework.TestCaseAttribute("Paul", "Jones", "15", "13", "1", null)] + [NUnit.Framework.TestCaseAttribute("Mary", "Sue", "1", "14", "1", null)] + [NUnit.Framework.TestCaseAttribute("Alex", "McCain", "1", "15", "1", null)] + [NUnit.Framework.TestCaseAttribute("Mary", "Jones", "100", "43", "1", null)] + [NUnit.Framework.TestCaseAttribute("The", "Emperor", "1", "42", "1", null)] + [NUnit.Framework.TestCaseAttribute("Cole", "Stevens", "42", "41", "1", null)] + [NUnit.Framework.TestCaseAttribute("Jack", "Smith", "5", "40", "1", null)] + public virtual void VariousRequestScenarios(string first_Name, string last_Name, string number_Of_Tickets, string unused_Variable_1, string unused_Variable_2, string[] exampleTags) { string[] tagsOfScenario = exampleTags; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); argumentsOfScenario.Add("first_name", first_Name); argumentsOfScenario.Add("last_name", last_Name); argumentsOfScenario.Add("number_of_tickets", number_Of_Tickets); - argumentsOfScenario.Add("unused_variable", unused_Variable); + argumentsOfScenario.Add("unused_variable_1", unused_Variable_1); + argumentsOfScenario.Add("unused_variable_2", unused_Variable_2); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Various request scenarios", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 23 this.ScenarioInitialize(scenarioInfo); @@ -217,7 +218,7 @@ public virtual void VariousRequestScenarios(string first_Name, string last_Name, testRunner.Given("a request has been created", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 25 - testRunner.And(string.Format("the first name is set to {0} with {1} not being used", first_Name, unused_Variable), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And(string.Format("the first name is set to {0} with neither {1} nor {2} being used", first_Name, unused_Variable_1, unused_Variable_2), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 26 testRunner.And(string.Format("the last name is set to {0}", last_Name), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); diff --git a/src/6.0/My.Test.Library.N.Unit.Tests/Steps/RequestValidatorSteps.cs b/src/6.0/My.Test.Library.N.Unit.Tests/Steps/RequestValidatorSteps.cs index 0433fa3..b76e2bb 100644 --- a/src/6.0/My.Test.Library.N.Unit.Tests/Steps/RequestValidatorSteps.cs +++ b/src/6.0/My.Test.Library.N.Unit.Tests/Steps/RequestValidatorSteps.cs @@ -100,8 +100,8 @@ public void ThenThereShouldBeNoErrorMessage() .Null(_response.Message); } - [Given(@"the first name is set to (.*) with (.*) not being used")] - public void GivenTheFirstNameIsSetTo(string value, string unused) => _request.FirstName = value; + [Given(@"the first name is set to (.*) with neither (.*) nor (.*) being used")] + public void GivenTheFirstNameIsSetTo(string value, string unused_1, string unused_2) => _request.FirstName = value; [Given(@"the last name is set to (.*)")] public void GivenTheLastNameIsSetTo(string value) diff --git a/src/6.0/My.Test.Library.X.Unit.Tests/Features/RequestValidator.feature b/src/6.0/My.Test.Library.X.Unit.Tests/Features/RequestValidator.feature index e472f02..71160c1 100644 --- a/src/6.0/My.Test.Library.X.Unit.Tests/Features/RequestValidator.feature +++ b/src/6.0/My.Test.Library.X.Unit.Tests/Features/RequestValidator.feature @@ -22,7 +22,7 @@ You can find some additional SpecFlow markdown documentation [here](https://docs Scenario: Various request scenarios Given a request has been created - And the first name is set to with not being used + And the first name is set to with neither nor being used And the last name is set to And the tickets requested are set to When the validation request is made @@ -30,15 +30,15 @@ You can find some additional SpecFlow markdown documentation [here](https://docs And there should be no error message Examples: - | first_name | last_name | number_of_tickets | unused_variable | - | John | Smith | 10 | 12 | - | Paul | Jones | 15 | 13 | - | Mary | Sue | 1 | 14 | - | Alex | McCain | 1 | 15 | - | Mary | Jones | 100 | 43 | - | The | Emperor | 1 | 42 | - | Cole | Stevens | 42 | 41 | - | Jack | Smith | 5 | 40 | + | first_name | last_name | number_of_tickets | unused_variable_1 | unused_variable_2 | + | John | Smith | 10 | 12 | 1 | + | Paul | Jones | 15 | 13 | 1 | + | Mary | Sue | 1 | 14 | 1 | + | Alex | McCain | 1 | 15 | 1 | + | Mary | Jones | 100 | 43 | 1 | + | The | Emperor | 1 | 42 | 1 | + | Cole | Stevens | 42 | 41 | 1 | + | Jack | Smith | 5 | 40 | 1 | @tickets Scenario: An inconclusive test diff --git a/src/6.0/My.Test.Library.X.Unit.Tests/Features/RequestValidator.feature.cs b/src/6.0/My.Test.Library.X.Unit.Tests/Features/RequestValidator.feature.cs index be92017..0d3387a 100644 --- a/src/6.0/My.Test.Library.X.Unit.Tests/Features/RequestValidator.feature.cs +++ b/src/6.0/My.Test.Library.X.Unit.Tests/Features/RequestValidator.feature.cs @@ -186,22 +186,23 @@ public virtual void InvalidTicketsRequested() [Xunit.SkippableTheoryAttribute(DisplayName="Various request scenarios")] [Xunit.TraitAttribute("FeatureTitle", "RequestValidator")] [Xunit.TraitAttribute("Description", "Various request scenarios")] - [Xunit.InlineDataAttribute("John", "Smith", "10", "12", new string[0])] - [Xunit.InlineDataAttribute("Paul", "Jones", "15", "13", new string[0])] - [Xunit.InlineDataAttribute("Mary", "Sue", "1", "14", new string[0])] - [Xunit.InlineDataAttribute("Alex", "McCain", "1", "15", new string[0])] - [Xunit.InlineDataAttribute("Mary", "Jones", "100", "43", new string[0])] - [Xunit.InlineDataAttribute("The", "Emperor", "1", "42", new string[0])] - [Xunit.InlineDataAttribute("Cole", "Stevens", "42", "41", new string[0])] - [Xunit.InlineDataAttribute("Jack", "Smith", "5", "40", new string[0])] - public virtual void VariousRequestScenarios(string first_Name, string last_Name, string number_Of_Tickets, string unused_Variable, string[] exampleTags) + [Xunit.InlineDataAttribute("John", "Smith", "10", "12", "1", new string[0])] + [Xunit.InlineDataAttribute("Paul", "Jones", "15", "13", "1", new string[0])] + [Xunit.InlineDataAttribute("Mary", "Sue", "1", "14", "1", new string[0])] + [Xunit.InlineDataAttribute("Alex", "McCain", "1", "15", "1", new string[0])] + [Xunit.InlineDataAttribute("Mary", "Jones", "100", "43", "1", new string[0])] + [Xunit.InlineDataAttribute("The", "Emperor", "1", "42", "1", new string[0])] + [Xunit.InlineDataAttribute("Cole", "Stevens", "42", "41", "1", new string[0])] + [Xunit.InlineDataAttribute("Jack", "Smith", "5", "40", "1", new string[0])] + public virtual void VariousRequestScenarios(string first_Name, string last_Name, string number_Of_Tickets, string unused_Variable_1, string unused_Variable_2, string[] exampleTags) { string[] tagsOfScenario = exampleTags; System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); argumentsOfScenario.Add("first_name", first_Name); argumentsOfScenario.Add("last_name", last_Name); argumentsOfScenario.Add("number_of_tickets", number_Of_Tickets); - argumentsOfScenario.Add("unused_variable", unused_Variable); + argumentsOfScenario.Add("unused_variable_1", unused_Variable_1); + argumentsOfScenario.Add("unused_variable_2", unused_Variable_2); TechTalk.SpecFlow.ScenarioInfo scenarioInfo = new TechTalk.SpecFlow.ScenarioInfo("Various request scenarios", null, tagsOfScenario, argumentsOfScenario, this._featureTags); #line 23 this.ScenarioInitialize(scenarioInfo); @@ -227,7 +228,7 @@ public virtual void VariousRequestScenarios(string first_Name, string last_Name, testRunner.Given("a request has been created", ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "Given "); #line hidden #line 25 - testRunner.And(string.Format("the first name is set to {0} with {1} not being used", first_Name, unused_Variable), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); + testRunner.And(string.Format("the first name is set to {0} with neither {1} nor {2} being used", first_Name, unused_Variable_1, unused_Variable_2), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); #line hidden #line 26 testRunner.And(string.Format("the last name is set to {0}", last_Name), ((string)(null)), ((TechTalk.SpecFlow.Table)(null)), "And "); diff --git a/src/6.0/My.Test.Library.X.Unit.Tests/Steps/RequestValidatorSteps.cs b/src/6.0/My.Test.Library.X.Unit.Tests/Steps/RequestValidatorSteps.cs index b9bd7d6..26421cd 100644 --- a/src/6.0/My.Test.Library.X.Unit.Tests/Steps/RequestValidatorSteps.cs +++ b/src/6.0/My.Test.Library.X.Unit.Tests/Steps/RequestValidatorSteps.cs @@ -100,8 +100,8 @@ public void ThenThereShouldBeNoErrorMessage() .Null(_response.Message); } - [Given(@"the first name is set to (.*) with (.*) not being used")] - public void GivenTheFirstNameIsSetTo(string value, string unused) => _request.FirstName = value; + [Given(@"the first name is set to (.*) with neither (.*) nor (.*) being used")] + public void GivenTheFirstNameIsSetTo(string value, string unused_1, string unused_2) => _request.FirstName = value; [Given(@"the last name is set to (.*)")] public void GivenTheLastNameIsSetTo(string value)