diff --git a/.github/workflows/analyse.yml b/.github/workflows/analyse.yml index 30c0d2d..bd6f680 100644 --- a/.github/workflows/analyse.yml +++ b/.github/workflows/analyse.yml @@ -1,63 +1,27 @@ -name: SonarCloud +name: Analyse on: push: - branches: - - main + branches: [ "main" ] pull_request: types: [opened, synchronize, reopened] + jobs: build: - name: Build and analyze - runs-on: windows-latest + name: Build + runs-on: ubuntu-latest steps: - - name: Set up JDK 17 - uses: actions/setup-java@v3 - with: - java-version: 17 - distribution: 'zulu' # Alternative distribution options are available. - - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 9.0.x + dotnet-version: 10.0.x - uses: actions/checkout@v3 - with: - fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - - - name: Cache SonarCloud packages - uses: actions/cache@v3 - with: - path: ~\sonar\cache - key: ${{ runner.os }}-sonar - restore-keys: ${{ runner.os }}-sonar - - - name: Cache SonarCloud scanner - id: cache-sonar-scanner - uses: actions/cache@v3 - with: - path: .\.sonar\scanner - key: ${{ runner.os }}-sonar-scanner - restore-keys: ${{ runner.os }}-sonar-scanner - - - name: Install SonarCloud scanner - if: steps.cache-sonar-scanner.outputs.cache-hit != 'true' - shell: powershell - run: | - New-Item -Path .\.sonar\scanner -ItemType Directory - dotnet tool update dotnet-sonarscanner --tool-path .\.sonar\scanner - - name: Install dotnet coverage - shell: powershell - run: dotnet tool install dotnet-coverage --global + - name: Restore dependencies + run: dotnet restore + + - name: Build + run: dotnet build --no-restore - - name: Build and analyze - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any - SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} - shell: powershell - run: | - .\.sonar\scanner\dotnet-sonarscanner begin /k:"Top2000app_features" /o:"top2000app" /d:sonar.token="${{ secrets.SONAR_TOKEN }}" /d:sonar.host.url="https://sonarcloud.io" /d:sonar.cs.vscoveragexml.reportsPaths=coverage.xml - dotnet build - dotnet-coverage collect "dotnet test" -f xml -o "coverage.xml" - .\.sonar\scanner\dotnet-sonarscanner end /d:sonar.token="${{ secrets.SONAR_TOKEN }}" + - name: Test + run: dotnet test --no-build --verbosity normal diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 2ccc116..3df84fb 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -21,7 +21,7 @@ jobs: - name: Setup .NET uses: actions/setup-dotnet@v4 with: - dotnet-version: 9.0.x + dotnet-version: 10.0.x - name: Restore dependencies run: dotnet restore diff --git a/src/SQLite/Top2000.Features.SQLite/Top2000.Features.SQLite.csproj b/src/SQLite/Top2000.Features.SQLite/Top2000.Features.SQLite.csproj index de095db..8dda47f 100644 --- a/src/SQLite/Top2000.Features.SQLite/Top2000.Features.SQLite.csproj +++ b/src/SQLite/Top2000.Features.SQLite/Top2000.Features.SQLite.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable @@ -10,8 +10,8 @@ RickNeeftDevelopment.Top2000App.Features.SQLite Top 2000 Features package using the SQLite database Copyright (c) Rick Neeft Development 2024 - https://github.com/Top2000app/data - 2.1.0 + https://github.com/Top2000app/features + 2.2.0 Rick Neeft Top2000App nugeticon.png @@ -27,8 +27,8 @@ - - + + diff --git a/src/Top2000.Features/Top2000.Features.csproj b/src/Top2000.Features/Top2000.Features.csproj index fef9373..f5dac94 100644 --- a/src/Top2000.Features/Top2000.Features.csproj +++ b/src/Top2000.Features/Top2000.Features.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable @@ -12,7 +12,7 @@ Top 2000 Features package containing the contracts for feature implementations Copyright (c) Rick Neeft Development 2024 https://github.com/Top2000app/data - 1.1.0 + 1.2.0 Rick Neeft Top2000App nugeticon.png diff --git a/tests/SQLite/Top2000.Features.SQLite.Unittests/AllEditions/EditionComparerTests.cs b/tests/SQLite/Top2000.Features.SQLite.Unittests/AllEditions/EditionComparerTests.cs index 914768e..8182a4a 100644 --- a/tests/SQLite/Top2000.Features.SQLite.Unittests/AllEditions/EditionComparerTests.cs +++ b/tests/SQLite/Top2000.Features.SQLite.Unittests/AllEditions/EditionComparerTests.cs @@ -1,4 +1,4 @@ -using Top2000.Features.AllEditions; +using Top2000.Features.AllEditions; using Top2000.Features.SQLite.AllEditions; namespace Top2000.Features.SQLite.Unittests.AllEditions; @@ -19,7 +19,7 @@ public void Editions_with_same_year_compare_as_zero() var edition1 = new Edition { Year = 2018 }; var edition2 = new Edition { Year = 2018 }; - sut.Compare(edition1, edition2).Should().Be(0); + sut.Compare(edition1, edition2).ShouldBe(0); } [TestMethod] @@ -28,7 +28,7 @@ public void Edition_with_higher_year_compare_as_minus_zero() var edition1 = new Edition { Year = 2018 }; var edition2 = new Edition { Year = 2019 }; - sut.Compare(edition1, edition2).Should().Be(1); + sut.Compare(edition1, edition2).ShouldBe(1); } [TestMethod] @@ -37,6 +37,6 @@ public void Edition_with_lower_year_compare_as_plus_zero() var edition1 = new Edition { Year = 2001 }; var edition2 = new Edition { Year = 2000 }; - sut.Compare(edition1, edition2).Should().Be(-1); + sut.Compare(edition1, edition2).ShouldBe(-1); } } diff --git a/tests/SQLite/Top2000.Features.SQLite.Unittests/AllListingsOfEdition/TrackListingComparerTests.cs b/tests/SQLite/Top2000.Features.SQLite.Unittests/AllListingsOfEdition/TrackListingComparerTests.cs index 11a51a0..f713251 100644 --- a/tests/SQLite/Top2000.Features.SQLite.Unittests/AllListingsOfEdition/TrackListingComparerTests.cs +++ b/tests/SQLite/Top2000.Features.SQLite.Unittests/AllListingsOfEdition/TrackListingComparerTests.cs @@ -19,7 +19,7 @@ public void TrackListingAreEqualWhenPositionIsTheSame() var track1 = new TrackListing { Position = 1 }; var track2 = new TrackListing { Position = 1 }; - sut.Equals(track1, track2).Should().BeTrue(); + sut.Equals(track1, track2).ShouldBeTrue(); } [TestMethod] @@ -27,6 +27,6 @@ public void HashCodeOfTrackListingEqualsPositionHashCode() { var track = new TrackListing { Position = 1392 }; - sut.GetHashCode(track).Should().Be(track.Position.GetHashCode()); + sut.GetHashCode(track).ShouldBe(track.Position.GetHashCode()); } } diff --git a/tests/SQLite/Top2000.Features.SQLite.Unittests/Top2000.Features.SQLite.Unittests.csproj b/tests/SQLite/Top2000.Features.SQLite.Unittests/Top2000.Features.SQLite.Unittests.csproj index fa4de21..d107ea5 100644 --- a/tests/SQLite/Top2000.Features.SQLite.Unittests/Top2000.Features.SQLite.Unittests.csproj +++ b/tests/SQLite/Top2000.Features.SQLite.Unittests/Top2000.Features.SQLite.Unittests.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable enable @@ -10,15 +10,15 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + - - + + diff --git a/tests/SQLite/Top2000.Features.SQLite.Unittests/TrackInformation/ListingInformationDescendingComparerTests.cs b/tests/SQLite/Top2000.Features.SQLite.Unittests/TrackInformation/ListingInformationDescendingComparerTests.cs index 82f8a45..b514056 100644 --- a/tests/SQLite/Top2000.Features.SQLite.Unittests/TrackInformation/ListingInformationDescendingComparerTests.cs +++ b/tests/SQLite/Top2000.Features.SQLite.Unittests/TrackInformation/ListingInformationDescendingComparerTests.cs @@ -14,7 +14,7 @@ public void Listings_with_same_edition_compare_as_zero() var sut = new ListingInformationDescendingComparer(); - sut.Compare(listing1, listing2).Should().Be(0); + sut.Compare(listing1, listing2).ShouldBe(0); } [TestMethod] @@ -25,7 +25,7 @@ public void Listings_with_higher_edition_compare_as_minus_zero() var sut = new ListingInformationDescendingComparer(); - sut.Compare(listing1, listing2).Should().Be(1); + sut.Compare(listing1, listing2).ShouldBe(1); } [TestMethod] @@ -36,6 +36,6 @@ public void Edition_with_lower_year_compare_as_plus_zero() var sut = new ListingInformationDescendingComparer(); - sut.Compare(listing1, listing2).Should().Be(-1); + sut.Compare(listing1, listing2).ShouldBe(-1); } } diff --git a/tests/SQLite/Top2000.Features.SQLite.Unittests/TrackInformation/ListingStatusStrategyTests.cs b/tests/SQLite/Top2000.Features.SQLite.Unittests/TrackInformation/ListingStatusStrategyTests.cs index 65eca0a..32bc5cb 100644 --- a/tests/SQLite/Top2000.Features.SQLite.Unittests/TrackInformation/ListingStatusStrategyTests.cs +++ b/tests/SQLite/Top2000.Features.SQLite.Unittests/TrackInformation/ListingStatusStrategyTests.cs @@ -18,7 +18,7 @@ public void Status_is_NotAvailable_when_the_track_is_not_recorded() { var listing = new ListingInformation { Edition = 2000 }; - sut.Determine(listing).Should().Be(ListingStatus.NotAvailable); + sut.Determine(listing).ShouldBe(ListingStatus.NotAvailable); } [TestMethod] @@ -26,7 +26,7 @@ public void Status_is_NotListed_when_track_has_recorded_but_position_is_null() { var listing = new ListingInformation { Edition = 2002 }; - sut.Determine(listing).Should().Be(ListingStatus.NotListed); + sut.Determine(listing).ShouldBe(ListingStatus.NotListed); } [TestMethod] @@ -34,7 +34,7 @@ public void Status_is_New_when_track_has_position_is_filled_and_not_been_set() { var listing = new ListingInformation { Edition = 2002, Position = 12 }; - sut.Determine(listing).Should().Be(ListingStatus.New); + sut.Determine(listing).ShouldBe(ListingStatus.New); } [TestMethod] @@ -52,7 +52,7 @@ public void Status_is_Back_when_previous_status_is_NotListed_and_new_has_been_se var listing = new ListingInformation { Edition = 2004, Position = 12 }; - sut.Determine(listing).Should().Be(ListingStatus.Back); + sut.Determine(listing).ShouldBe(ListingStatus.Back); } [TestMethod] @@ -68,7 +68,7 @@ public void Status_is_Unchanged_when_offset_0() .ForEach(x => sut.Determine(x)); var current = new ListingInformation { Edition = 2003, Position = 2, Offset = 0 }; - sut.Determine(current).Should().Be(ListingStatus.Unchanged); + sut.Determine(current).ShouldBe(ListingStatus.Unchanged); } [TestMethod] @@ -84,7 +84,7 @@ public void Status_is_Increased_when_offset_negative() .ForEach(x => sut.Determine(x)); var current = new ListingInformation { Edition = 2003, Position = 1, Offset = -1 }; - sut.Determine(current).Should().Be(ListingStatus.Increased); + sut.Determine(current).ShouldBe(ListingStatus.Increased); } [TestMethod] @@ -100,6 +100,6 @@ public void Status_is_Decreased_when_offset_positive() .ForEach(x => sut.Determine(x)); var current = new ListingInformation { Edition = 2003, Position = 3, Offset = 1 }; - sut.Determine(current).Should().Be(ListingStatus.Decreased); + sut.Determine(current).ShouldBe(ListingStatus.Decreased); } } diff --git a/tests/SQLite/Top2000.Features.SQLite.Unittests/TrackInformation/TrackDetailsTests.cs b/tests/SQLite/Top2000.Features.SQLite.Unittests/TrackInformation/TrackDetailsTests.cs index d594724..6a2f543 100644 --- a/tests/SQLite/Top2000.Features.SQLite.Unittests/TrackInformation/TrackDetailsTests.cs +++ b/tests/SQLite/Top2000.Features.SQLite.Unittests/TrackInformation/TrackDetailsTests.cs @@ -49,37 +49,37 @@ public TrackDetailsTests() [TestMethod] public void First_represents_the_first_time_the_track_was_listed() { - sut.First.Should().Be(listing2000); + sut.First.ShouldBe(listing2000); } [TestMethod] public void Highest_represents_the_first_highest_listing() { - sut.Highest.Should().Be(listing2001); + sut.Highest.ShouldBe(listing2001); } [TestMethod] public void Lowest_represents_the_latested_lowest_listing() { - sut.Lowest.Should().Be(listing2003); + sut.Lowest.ShouldBe(listing2003); } [TestMethod] public void Latest_represents_the_latest_listing() { - sut.Latest.Should().Be(listing2004); + sut.Latest.ShouldBe(listing2004); } [TestMethod] public void Appearences_shows_the_counts_of_listings() { - sut.Appearances.Should().Be(5); + sut.Appearances.ShouldBe(5); } [TestMethod] public void AppearancesPossible_shows_the_count_of_listings_possible_since_the_recorded_date() { - sut.AppearancesPossible.Should().Be(6); + sut.AppearancesPossible.ShouldBe(6); } } } diff --git a/tests/SQLite/Top2000.Features.SQLite.Unittests/Usings.cs b/tests/SQLite/Top2000.Features.SQLite.Unittests/Usings.cs index 932d9ae..c6df402 100644 --- a/tests/SQLite/Top2000.Features.SQLite.Unittests/Usings.cs +++ b/tests/SQLite/Top2000.Features.SQLite.Unittests/Usings.cs @@ -1 +1,3 @@ -global using FluentAssertions; +global using Shouldly; + +[assembly: Parallelize] \ No newline at end of file diff --git a/tests/Top2000.Features.Specs/Bindings/AllEditionsSteps.cs b/tests/Top2000.Features.Specs/Bindings/AllEditionsSteps.cs index 6216caa..b4a4a71 100644 --- a/tests/Top2000.Features.Specs/Bindings/AllEditionsSteps.cs +++ b/tests/Top2000.Features.Specs/Bindings/AllEditionsSteps.cs @@ -35,7 +35,7 @@ public void ThenASortedSetIsReturnedStartedWithTheHighestYear() foreach (var edition in editions) { - edition.Year.Should().BeLessOrEqualTo(firstEdition.Year); + edition.Year.Should().BeLessThanOrEqualTo(firstEdition.Year); } } @@ -59,8 +59,8 @@ public void ThenTheStart_AndEndDateTimeIsInLocalTime() } } - [Then(@"the UTC Statdate is as follow:")] - public void ThenTheUTCStatdateIsAsFollow(Table table) + [Then(@"the UTC Start date is as follow:")] + public void Then_TheUTCStartDateIsAsFollow(Table table) { var items = table.CreateSet(); diff --git a/tests/Top2000.Features.Specs/Features/AllEditions.feature b/tests/Top2000.Features.Specs/Features/AllEditions.feature index ac5e86d..37cdefa 100644 --- a/tests/Top2000.Features.Specs/Features/AllEditions.feature +++ b/tests/Top2000.Features.Specs/Features/AllEditions.feature @@ -18,8 +18,8 @@ Then the Start- and EndDateTime is in local time Scenario: The first editions started at the start of boxing day (CET) Given All data scripts When the feature is executed -Then the UTC Statdate is as follow: -| Year | UTC Startdate | +Then the UTC Start date is as follow: +| Year | UTC Start date | | 1999 | 1999-12-25T23:00:00 | | 2001 | 2001-12-25T23:00:00 | | 2002 | 2002-12-25T23:00:00 | @@ -33,8 +33,8 @@ Then the UTC Statdate is as follow: Scenario: As from 2009 the Top2000 starts at first christmas day at noon (CET) Given All data scripts When the feature is executed -Then the UTC Statdate is as follow: -| Year | UTC Startdate | +Then the UTC Start date is as follow: +| Year | UTC Start date | | 2009 | 2009-12-25T11:00:00 | | 2010 | 2010-12-25T11:00:00 | | 2011 | 2011-12-25T11:00:00 | @@ -45,8 +45,8 @@ Then the UTC Statdate is as follow: Scenario: As from 2015 the Top2000 starts three hours earlier Given All data scripts When the feature is executed -Then the UTC Statdate is as follow: -| Year | UTC Startdate | +Then the UTC Start date is as follow: +| Year | UTC Start date | | 2015 | 2015-12-25T08:00:00 | | 2016 | 2016-12-25T08:00:00 | | 2017 | 2017-12-25T08:00:00 | @@ -55,15 +55,15 @@ Then the UTC Statdate is as follow: Scenario: In 2019 the Top2000 start at 08:00 Given All data scripts When the feature is executed -Then the UTC Statdate is as follow: -| Year | UTC Startdate | +Then the UTC Start date is as follow: +| Year | UTC Start date | | 2019 | 2019-12-25T07:00:00 | Scenario: As from 2020 the Top2000 starts at the start of boxing day (CET) Given All data scripts When the feature is executed -Then the UTC Statdate is as follow: -| Year | UTC Startdate | +Then the UTC Start date is as follow: +| Year | UTC Start date | | 2020 | 2020-12-24T23:00:00 | | 2021 | 2021-12-24T23:00:00 | | 2022 | 2022-12-24T23:00:00 | @@ -72,6 +72,6 @@ Then the UTC Statdate is as follow: Scenario: The List of 2023 started earlier than usual because it was the 25 edition Given All data scripts When the feature is executed -Then the UTC Statdate is as follow: -| Year | UTC Startdate | +Then the UTC Start date is as follow: +| Year | UTC Start date | | 2023 | 2023-12-11T09:00:00 | \ No newline at end of file diff --git a/tests/Top2000.Features.Specs/Features/AllEditions.feature.cs b/tests/Top2000.Features.Specs/Features/AllEditions.feature.cs index b54e8da..28a3b3f 100644 --- a/tests/Top2000.Features.Specs/Features/AllEditions.feature.cs +++ b/tests/Top2000.Features.Specs/Features/AllEditions.feature.cs @@ -1,8 +1,8 @@ // ------------------------------------------------------------------------------ // -// This code was generated by Reqnroll (https://www.reqnroll.net/). -// Reqnroll Version:2.0.0.0 -// Reqnroll Generator Version:2.0.0.0 +// This code was generated by Reqnroll (https://reqnroll.net/). +// Reqnroll Version:3.0.0.0 +// Reqnroll Generator Version:3.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -10,16 +10,14 @@ // ------------------------------------------------------------------------------ #region Designer generated code #pragma warning disable +using Reqnroll; namespace Top2000.Features.Specs.Features { - using Reqnroll; - using System; - using System.Linq; - [System.CodeDom.Compiler.GeneratedCodeAttribute("Reqnroll", "2.0.0.0")] - [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Reqnroll", "3.0.0.0")] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()] public partial class AllEditionsFeature { @@ -29,7 +27,7 @@ public partial class AllEditionsFeature private static string[] featureTags = ((string[])(null)); - private static global::Reqnroll.FeatureInfo featureInfo = new global::Reqnroll.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Features", "All Editions", null, global::Reqnroll.ProgrammingLanguage.CSharp, featureTags); + private static global::Reqnroll.FeatureInfo featureInfo = new global::Reqnroll.FeatureInfo(new global::System.Globalization.CultureInfo("en-US"), "Features", "All Editions", null, global::Reqnroll.ProgrammingLanguage.CSharp, featureTags, InitializeCucumberMessages()); #line 1 "AllEditions.feature" #line hidden @@ -46,68 +44,99 @@ public virtual Microsoft.VisualStudio.TestTools.UnitTesting.TestContext TestCont } } - [Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute()] - public static async System.Threading.Tasks.Task FeatureSetupAsync(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext) + [global::Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute()] + public static async global::System.Threading.Tasks.Task FeatureSetupAsync(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext) { } - [Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute(Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupBehavior.EndOfClass)] - public static async System.Threading.Tasks.Task FeatureTearDownAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute()] + public static async global::System.Threading.Tasks.Task FeatureTearDownAsync() { + await global::Reqnroll.TestRunnerManager.ReleaseFeatureAsync(featureInfo); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestInitializeAttribute()] - public async System.Threading.Tasks.Task TestInitializeAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestInitializeAttribute()] + public async global::System.Threading.Tasks.Task TestInitializeAsync() { testRunner = global::Reqnroll.TestRunnerManager.GetTestRunnerForAssembly(featureHint: featureInfo); - if (((testRunner.FeatureContext != null) - && (testRunner.FeatureContext.FeatureInfo.Equals(featureInfo) == false))) + try { - await testRunner.OnFeatureEndAsync(); + if (((testRunner.FeatureContext != null) + && (testRunner.FeatureContext.FeatureInfo.Equals(featureInfo) == false))) + { + await testRunner.OnFeatureEndAsync(); + } } - if ((testRunner.FeatureContext == null)) + finally { - await testRunner.OnFeatureStartAsync(featureInfo); + if (((testRunner.FeatureContext != null) + && testRunner.FeatureContext.BeforeFeatureHookFailed)) + { + throw new global::Reqnroll.ReqnrollException("Scenario skipped because of previous before feature hook error"); + } + if ((testRunner.FeatureContext == null)) + { + await testRunner.OnFeatureStartAsync(featureInfo); + } } } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute()] - public async System.Threading.Tasks.Task TestTearDownAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute()] + public async global::System.Threading.Tasks.Task TestTearDownAsync() { - await testRunner.OnScenarioEndAsync(); - global::Reqnroll.TestRunnerManager.ReleaseTestRunner(testRunner); + if ((testRunner == null)) + { + return; + } + try + { + await testRunner.OnScenarioEndAsync(); + } + finally + { + global::Reqnroll.TestRunnerManager.ReleaseTestRunner(testRunner); + testRunner = null; + } } - public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo) + public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, global::Reqnroll.RuleInfo ruleInfo) { - testRunner.OnScenarioInitialize(scenarioInfo); + testRunner.OnScenarioInitialize(scenarioInfo, ruleInfo); testRunner.ScenarioContext.ScenarioContainer.RegisterInstanceAs(_testContext); } - public async System.Threading.Tasks.Task ScenarioStartAsync() + public async global::System.Threading.Tasks.Task ScenarioStartAsync() { await testRunner.OnScenarioStartAsync(); } - public async System.Threading.Tasks.Task ScenarioCleanupAsync() + public async global::System.Threading.Tasks.Task ScenarioCleanupAsync() { await testRunner.CollectScenarioErrorsAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("The first edition of the Top2000 was in 1999")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] - public async System.Threading.Tasks.Task TheFirstEditionOfTheTop2000WasIn1999() + private static global::Reqnroll.Formatters.RuntimeSupport.FeatureLevelCucumberMessages InitializeCucumberMessages() + { + return new global::Reqnroll.Formatters.RuntimeSupport.FeatureLevelCucumberMessages("Features/AllEditions.feature.ndjson", 11); + } + + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="The first edition of the Top2000 was in 1999")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("The first edition of the Top2000 was in 1999")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] + public async global::System.Threading.Tasks.Task TheFirstEditionOfTheTop2000WasIn1999() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("The first edition of the Top2000 was in 1999", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "0"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("The first edition of the Top2000 was in 1999", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 3 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -125,20 +154,23 @@ public async System.Threading.Tasks.Task TheFirstEditionOfTheTop2000WasIn1999() await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Every edition is returned starting with the highest year")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] - public async System.Threading.Tasks.Task EveryEditionIsReturnedStartingWithTheHighestYear() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Every edition is returned starting with the highest year")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Every edition is returned starting with the highest year")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] + public async global::System.Threading.Tasks.Task EveryEditionIsReturnedStartingWithTheHighestYear() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Every edition is returned starting with the highest year", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "1"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Every edition is returned starting with the highest year", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 8 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -156,20 +188,23 @@ public async System.Threading.Tasks.Task EveryEditionIsReturnedStartingWithTheHi await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("An Edition contains the datetime in local time")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] - public async System.Threading.Tasks.Task AnEditionContainsTheDatetimeInLocalTime() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="An Edition contains the datetime in local time")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("An Edition contains the datetime in local time")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] + public async global::System.Threading.Tasks.Task AnEditionContainsTheDatetimeInLocalTime() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("An Edition contains the datetime in local time", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "2"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("An Edition contains the datetime in local time", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 13 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -187,20 +222,23 @@ public async System.Threading.Tasks.Task AnEditionContainsTheDatetimeInLocalTime await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("The first editions started at the start of boxing day (CET)")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] - public async System.Threading.Tasks.Task TheFirstEditionsStartedAtTheStartOfBoxingDayCET() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="The first editions started at the start of boxing day (CET)")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("The first editions started at the start of boxing day (CET)")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] + public async global::System.Threading.Tasks.Task TheFirstEditionsStartedAtTheStartOfBoxingDayCET() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("The first editions started at the start of boxing day (CET)", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "3"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("The first editions started at the start of boxing day (CET)", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 18 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -213,7 +251,7 @@ public async System.Threading.Tasks.Task TheFirstEditionsStartedAtTheStartOfBoxi #line hidden global::Reqnroll.Table table1 = new global::Reqnroll.Table(new string[] { "Year", - "UTC Startdate"}); + "UTC Start date"}); table1.AddRow(new string[] { "1999", "1999-12-25T23:00:00"}); @@ -242,26 +280,29 @@ public async System.Threading.Tasks.Task TheFirstEditionsStartedAtTheStartOfBoxi "2008", "2008-12-25T23:00:00"}); #line 21 -await testRunner.ThenAsync("the UTC Statdate is as follow:", ((string)(null)), table1, "Then "); +await testRunner.ThenAsync("the UTC Start date is as follow:", ((string)(null)), table1, "Then "); #line hidden } await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("As from 2009 the Top2000 starts at first christmas day at noon (CET)")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] - public async System.Threading.Tasks.Task AsFrom2009TheTop2000StartsAtFirstChristmasDayAtNoonCET() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="As from 2009 the Top2000 starts at first christmas day at noon (CET)")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("As from 2009 the Top2000 starts at first christmas day at noon (CET)")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] + public async global::System.Threading.Tasks.Task AsFrom2009TheTop2000StartsAtFirstChristmasDayAtNoonCET() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("As from 2009 the Top2000 starts at first christmas day at noon (CET)", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "4"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("As from 2009 the Top2000 starts at first christmas day at noon (CET)", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 33 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -274,7 +315,7 @@ public async System.Threading.Tasks.Task AsFrom2009TheTop2000StartsAtFirstChrist #line hidden global::Reqnroll.Table table2 = new global::Reqnroll.Table(new string[] { "Year", - "UTC Startdate"}); + "UTC Start date"}); table2.AddRow(new string[] { "2009", "2009-12-25T11:00:00"}); @@ -294,26 +335,29 @@ public async System.Threading.Tasks.Task AsFrom2009TheTop2000StartsAtFirstChrist "2014", "2014-12-25T11:00:00"}); #line 36 -await testRunner.ThenAsync("the UTC Statdate is as follow:", ((string)(null)), table2, "Then "); +await testRunner.ThenAsync("the UTC Start date is as follow:", ((string)(null)), table2, "Then "); #line hidden } await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("As from 2015 the Top2000 starts three hours earlier")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] - public async System.Threading.Tasks.Task AsFrom2015TheTop2000StartsThreeHoursEarlier() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="As from 2015 the Top2000 starts three hours earlier")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("As from 2015 the Top2000 starts three hours earlier")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] + public async global::System.Threading.Tasks.Task AsFrom2015TheTop2000StartsThreeHoursEarlier() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("As from 2015 the Top2000 starts three hours earlier", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "5"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("As from 2015 the Top2000 starts three hours earlier", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 45 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -326,7 +370,7 @@ public async System.Threading.Tasks.Task AsFrom2015TheTop2000StartsThreeHoursEar #line hidden global::Reqnroll.Table table3 = new global::Reqnroll.Table(new string[] { "Year", - "UTC Startdate"}); + "UTC Start date"}); table3.AddRow(new string[] { "2015", "2015-12-25T08:00:00"}); @@ -340,26 +384,29 @@ public async System.Threading.Tasks.Task AsFrom2015TheTop2000StartsThreeHoursEar "2018", "2018-12-25T08:00:00"}); #line 48 -await testRunner.ThenAsync("the UTC Statdate is as follow:", ((string)(null)), table3, "Then "); +await testRunner.ThenAsync("the UTC Start date is as follow:", ((string)(null)), table3, "Then "); #line hidden } await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("In 2019 the Top2000 start at 08:00")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] - public async System.Threading.Tasks.Task In2019TheTop2000StartAt0800() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="In 2019 the Top2000 start at 08:00")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("In 2019 the Top2000 start at 08:00")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] + public async global::System.Threading.Tasks.Task In2019TheTop2000StartAt0800() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("In 2019 the Top2000 start at 08:00", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "6"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("In 2019 the Top2000 start at 08:00", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 55 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -372,31 +419,34 @@ public async System.Threading.Tasks.Task In2019TheTop2000StartAt0800() #line hidden global::Reqnroll.Table table4 = new global::Reqnroll.Table(new string[] { "Year", - "UTC Startdate"}); + "UTC Start date"}); table4.AddRow(new string[] { "2019", "2019-12-25T07:00:00"}); #line 58 -await testRunner.ThenAsync("the UTC Statdate is as follow:", ((string)(null)), table4, "Then "); +await testRunner.ThenAsync("the UTC Start date is as follow:", ((string)(null)), table4, "Then "); #line hidden } await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("As from 2020 the Top2000 starts at the start of boxing day (CET)")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] - public async System.Threading.Tasks.Task AsFrom2020TheTop2000StartsAtTheStartOfBoxingDayCET() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="As from 2020 the Top2000 starts at the start of boxing day (CET)")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("As from 2020 the Top2000 starts at the start of boxing day (CET)")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] + public async global::System.Threading.Tasks.Task AsFrom2020TheTop2000StartsAtTheStartOfBoxingDayCET() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("As from 2020 the Top2000 starts at the start of boxing day (CET)", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "7"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("As from 2020 the Top2000 starts at the start of boxing day (CET)", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 62 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -409,7 +459,7 @@ public async System.Threading.Tasks.Task AsFrom2020TheTop2000StartsAtTheStartOfB #line hidden global::Reqnroll.Table table5 = new global::Reqnroll.Table(new string[] { "Year", - "UTC Startdate"}); + "UTC Start date"}); table5.AddRow(new string[] { "2020", "2020-12-24T23:00:00"}); @@ -423,26 +473,29 @@ public async System.Threading.Tasks.Task AsFrom2020TheTop2000StartsAtTheStartOfB "2024", "2024-12-24T23:00:00"}); #line 65 -await testRunner.ThenAsync("the UTC Statdate is as follow:", ((string)(null)), table5, "Then "); +await testRunner.ThenAsync("the UTC Start date is as follow:", ((string)(null)), table5, "Then "); #line hidden } await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("The List of 2023 started earlier than usual because it was the 25 edition")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] - public async System.Threading.Tasks.Task TheListOf2023StartedEarlierThanUsualBecauseItWasThe25Edition() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="The List of 2023 started earlier than usual because it was the 25 edition")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("The List of 2023 started earlier than usual because it was the 25 edition")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "All Editions")] + public async global::System.Threading.Tasks.Task TheListOf2023StartedEarlierThanUsualBecauseItWasThe25Edition() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("The List of 2023 started earlier than usual because it was the 25 edition", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "8"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("The List of 2023 started earlier than usual because it was the 25 edition", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 72 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -455,12 +508,12 @@ public async System.Threading.Tasks.Task TheListOf2023StartedEarlierThanUsualBec #line hidden global::Reqnroll.Table table6 = new global::Reqnroll.Table(new string[] { "Year", - "UTC Startdate"}); + "UTC Start date"}); table6.AddRow(new string[] { "2023", "2023-12-11T09:00:00"}); #line 75 -await testRunner.ThenAsync("the UTC Statdate is as follow:", ((string)(null)), table6, "Then "); +await testRunner.ThenAsync("the UTC Start date is as follow:", ((string)(null)), table6, "Then "); #line hidden } await this.ScenarioCleanupAsync(); diff --git a/tests/Top2000.Features.Specs/Features/AllListingsOfEdition.feature.cs b/tests/Top2000.Features.Specs/Features/AllListingsOfEdition.feature.cs index 5976e06..5a4d849 100644 --- a/tests/Top2000.Features.Specs/Features/AllListingsOfEdition.feature.cs +++ b/tests/Top2000.Features.Specs/Features/AllListingsOfEdition.feature.cs @@ -1,8 +1,8 @@ // ------------------------------------------------------------------------------ // -// This code was generated by Reqnroll (https://www.reqnroll.net/). -// Reqnroll Version:2.0.0.0 -// Reqnroll Generator Version:2.0.0.0 +// This code was generated by Reqnroll (https://reqnroll.net/). +// Reqnroll Version:3.0.0.0 +// Reqnroll Generator Version:3.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -10,16 +10,14 @@ // ------------------------------------------------------------------------------ #region Designer generated code #pragma warning disable +using Reqnroll; namespace Top2000.Features.Specs.Features { - using Reqnroll; - using System; - using System.Linq; - [System.CodeDom.Compiler.GeneratedCodeAttribute("Reqnroll", "2.0.0.0")] - [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Reqnroll", "3.0.0.0")] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()] public partial class AllListingsOfEditionFeature { @@ -29,7 +27,7 @@ public partial class AllListingsOfEditionFeature private static string[] featureTags = ((string[])(null)); - private static global::Reqnroll.FeatureInfo featureInfo = new global::Reqnroll.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Features", "AllListingsOfEdition", null, global::Reqnroll.ProgrammingLanguage.CSharp, featureTags); + private static global::Reqnroll.FeatureInfo featureInfo = new global::Reqnroll.FeatureInfo(new global::System.Globalization.CultureInfo("en-US"), "Features", "AllListingsOfEdition", null, global::Reqnroll.ProgrammingLanguage.CSharp, featureTags, InitializeCucumberMessages()); #line 1 "AllListingsOfEdition.feature" #line hidden @@ -46,69 +44,100 @@ public virtual Microsoft.VisualStudio.TestTools.UnitTesting.TestContext TestCont } } - [Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute()] - public static async System.Threading.Tasks.Task FeatureSetupAsync(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext) + [global::Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute()] + public static async global::System.Threading.Tasks.Task FeatureSetupAsync(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext) { } - [Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute(Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupBehavior.EndOfClass)] - public static async System.Threading.Tasks.Task FeatureTearDownAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute()] + public static async global::System.Threading.Tasks.Task FeatureTearDownAsync() { + await global::Reqnroll.TestRunnerManager.ReleaseFeatureAsync(featureInfo); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestInitializeAttribute()] - public async System.Threading.Tasks.Task TestInitializeAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestInitializeAttribute()] + public async global::System.Threading.Tasks.Task TestInitializeAsync() { testRunner = global::Reqnroll.TestRunnerManager.GetTestRunnerForAssembly(featureHint: featureInfo); - if (((testRunner.FeatureContext != null) - && (testRunner.FeatureContext.FeatureInfo.Equals(featureInfo) == false))) + try { - await testRunner.OnFeatureEndAsync(); + if (((testRunner.FeatureContext != null) + && (testRunner.FeatureContext.FeatureInfo.Equals(featureInfo) == false))) + { + await testRunner.OnFeatureEndAsync(); + } } - if ((testRunner.FeatureContext == null)) + finally { - await testRunner.OnFeatureStartAsync(featureInfo); + if (((testRunner.FeatureContext != null) + && testRunner.FeatureContext.BeforeFeatureHookFailed)) + { + throw new global::Reqnroll.ReqnrollException("Scenario skipped because of previous before feature hook error"); + } + if ((testRunner.FeatureContext == null)) + { + await testRunner.OnFeatureStartAsync(featureInfo); + } } } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute()] - public async System.Threading.Tasks.Task TestTearDownAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute()] + public async global::System.Threading.Tasks.Task TestTearDownAsync() { - await testRunner.OnScenarioEndAsync(); - global::Reqnroll.TestRunnerManager.ReleaseTestRunner(testRunner); + if ((testRunner == null)) + { + return; + } + try + { + await testRunner.OnScenarioEndAsync(); + } + finally + { + global::Reqnroll.TestRunnerManager.ReleaseTestRunner(testRunner); + testRunner = null; + } } - public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo) + public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, global::Reqnroll.RuleInfo ruleInfo) { - testRunner.OnScenarioInitialize(scenarioInfo); + testRunner.OnScenarioInitialize(scenarioInfo, ruleInfo); testRunner.ScenarioContext.ScenarioContainer.RegisterInstanceAs(_testContext); } - public async System.Threading.Tasks.Task ScenarioStartAsync() + public async global::System.Threading.Tasks.Task ScenarioStartAsync() { await testRunner.OnScenarioStartAsync(); } - public async System.Threading.Tasks.Task ScenarioCleanupAsync() + public async global::System.Threading.Tasks.Task ScenarioCleanupAsync() { await testRunner.CollectScenarioErrorsAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("In 1998 the Top2000 did not exist")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "AllListingsOfEdition")] - public async System.Threading.Tasks.Task In1998TheTop2000DidNotExist() + private static global::Reqnroll.Formatters.RuntimeSupport.FeatureLevelCucumberMessages InitializeCucumberMessages() + { + return new global::Reqnroll.Formatters.RuntimeSupport.FeatureLevelCucumberMessages("Features/AllListingsOfEdition.feature.ndjson", 4); + } + + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="In 1998 the Top2000 did not exist")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("In 1998 the Top2000 did not exist")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "AllListingsOfEdition")] + public async global::System.Threading.Tasks.Task In1998TheTop2000DidNotExist() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("In 1998 the Top2000 did not exist", ("Background: the system won\'t throw an exception when the year since found. \nIt is" + - " the responsibilty of the caller to make sure the year exist. "), tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "0"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("In 1998 the Top2000 did not exist", "Background: the system won\'t throw an exception when the year since found. \nIt is" + + " the responsibilty of the caller to make sure the year exist. ", tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 3 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -126,20 +155,23 @@ public async System.Threading.Tasks.Task In1998TheTop2000DidNotExist() await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("In 2023 the Top2000 has 2500 tracks")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "AllListingsOfEdition")] - public async System.Threading.Tasks.Task In2023TheTop2000Has2500Tracks() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="In 2023 the Top2000 has 2500 tracks")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("In 2023 the Top2000 has 2500 tracks")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "AllListingsOfEdition")] + public async global::System.Threading.Tasks.Task In2023TheTop2000Has2500Tracks() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("In 2023 the Top2000 has 2500 tracks", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "1"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("In 2023 the Top2000 has 2500 tracks", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 10 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { diff --git a/tests/Top2000.Features.Specs/Features/ClientDatabase.feature.cs b/tests/Top2000.Features.Specs/Features/ClientDatabase.feature.cs index e4aa8e9..9f3c200 100644 --- a/tests/Top2000.Features.Specs/Features/ClientDatabase.feature.cs +++ b/tests/Top2000.Features.Specs/Features/ClientDatabase.feature.cs @@ -1,8 +1,8 @@ // ------------------------------------------------------------------------------ // -// This code was generated by Reqnroll (https://www.reqnroll.net/). -// Reqnroll Version:2.0.0.0 -// Reqnroll Generator Version:2.0.0.0 +// This code was generated by Reqnroll (https://reqnroll.net/). +// Reqnroll Version:3.0.0.0 +// Reqnroll Generator Version:3.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -10,16 +10,14 @@ // ------------------------------------------------------------------------------ #region Designer generated code #pragma warning disable +using Reqnroll; namespace Top2000.Features.Specs.Features { - using Reqnroll; - using System; - using System.Linq; - [System.CodeDom.Compiler.GeneratedCodeAttribute("Reqnroll", "2.0.0.0")] - [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Reqnroll", "3.0.0.0")] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()] public partial class ClientDatabaseFeature { @@ -29,7 +27,7 @@ public partial class ClientDatabaseFeature private static string[] featureTags = ((string[])(null)); - private static global::Reqnroll.FeatureInfo featureInfo = new global::Reqnroll.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Features", "Client database", null, global::Reqnroll.ProgrammingLanguage.CSharp, featureTags); + private static global::Reqnroll.FeatureInfo featureInfo = new global::Reqnroll.FeatureInfo(new global::System.Globalization.CultureInfo("en-US"), "Features", "Client database", null, global::Reqnroll.ProgrammingLanguage.CSharp, featureTags, InitializeCucumberMessages()); #line 1 "ClientDatabase.feature" #line hidden @@ -46,74 +44,105 @@ public virtual Microsoft.VisualStudio.TestTools.UnitTesting.TestContext TestCont } } - [Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute()] - public static async System.Threading.Tasks.Task FeatureSetupAsync(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext) + [global::Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute()] + public static async global::System.Threading.Tasks.Task FeatureSetupAsync(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext) { } - [Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute(Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupBehavior.EndOfClass)] - public static async System.Threading.Tasks.Task FeatureTearDownAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute()] + public static async global::System.Threading.Tasks.Task FeatureTearDownAsync() { + await global::Reqnroll.TestRunnerManager.ReleaseFeatureAsync(featureInfo); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestInitializeAttribute()] - public async System.Threading.Tasks.Task TestInitializeAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestInitializeAttribute()] + public async global::System.Threading.Tasks.Task TestInitializeAsync() { testRunner = global::Reqnroll.TestRunnerManager.GetTestRunnerForAssembly(featureHint: featureInfo); - if (((testRunner.FeatureContext != null) - && (testRunner.FeatureContext.FeatureInfo.Equals(featureInfo) == false))) + try { - await testRunner.OnFeatureEndAsync(); + if (((testRunner.FeatureContext != null) + && (testRunner.FeatureContext.FeatureInfo.Equals(featureInfo) == false))) + { + await testRunner.OnFeatureEndAsync(); + } } - if ((testRunner.FeatureContext == null)) + finally { - await testRunner.OnFeatureStartAsync(featureInfo); + if (((testRunner.FeatureContext != null) + && testRunner.FeatureContext.BeforeFeatureHookFailed)) + { + throw new global::Reqnroll.ReqnrollException("Scenario skipped because of previous before feature hook error"); + } + if ((testRunner.FeatureContext == null)) + { + await testRunner.OnFeatureStartAsync(featureInfo); + } } } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute()] - public async System.Threading.Tasks.Task TestTearDownAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute()] + public async global::System.Threading.Tasks.Task TestTearDownAsync() { - await testRunner.OnScenarioEndAsync(); - global::Reqnroll.TestRunnerManager.ReleaseTestRunner(testRunner); + if ((testRunner == null)) + { + return; + } + try + { + await testRunner.OnScenarioEndAsync(); + } + finally + { + global::Reqnroll.TestRunnerManager.ReleaseTestRunner(testRunner); + testRunner = null; + } } - public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo) + public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, global::Reqnroll.RuleInfo ruleInfo) { - testRunner.OnScenarioInitialize(scenarioInfo); + testRunner.OnScenarioInitialize(scenarioInfo, ruleInfo); testRunner.ScenarioContext.ScenarioContainer.RegisterInstanceAs(_testContext); } - public async System.Threading.Tasks.Task ScenarioStartAsync() + public async global::System.Threading.Tasks.Task ScenarioStartAsync() { await testRunner.OnScenarioStartAsync(); } - public async System.Threading.Tasks.Task ScenarioCleanupAsync() + public async global::System.Threading.Tasks.Task ScenarioCleanupAsync() { await testRunner.CollectScenarioErrorsAsync(); } - public virtual async System.Threading.Tasks.Task FeatureBackgroundAsync() + public virtual async global::System.Threading.Tasks.Task FeatureBackgroundAsync() { #line 3 #line hidden } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Application is installed with a fresh client database")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Client database")] - public async System.Threading.Tasks.Task ApplicationIsInstalledWithAFreshClientDatabase() + private static global::Reqnroll.Formatters.RuntimeSupport.FeatureLevelCucumberMessages InitializeCucumberMessages() + { + return new global::Reqnroll.Formatters.RuntimeSupport.FeatureLevelCucumberMessages("Features/ClientDatabase.feature.ndjson", 6); + } + + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Application is installed with a fresh client database")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Application is installed with a fresh client database")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Client database")] + public async global::System.Threading.Tasks.Task ApplicationIsInstalledWithAFreshClientDatabase() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Application is installed with a fresh client database", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "0"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Application is installed with a fresh client database", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 14 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -134,20 +163,23 @@ public async System.Threading.Tasks.Task ApplicationIsInstalledWithAFreshClientD await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Client database is updated upon startup when new scripts are shipped")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Client database")] - public async System.Threading.Tasks.Task ClientDatabaseIsUpdatedUponStartupWhenNewScriptsAreShipped() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Client database is updated upon startup when new scripts are shipped")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Client database is updated upon startup when new scripts are shipped")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Client database")] + public async global::System.Threading.Tasks.Task ClientDatabaseIsUpdatedUponStartupWhenNewScriptsAreShipped() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Client database is updated upon startup when new scripts are shipped", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "1"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Client database is updated upon startup when new scripts are shipped", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 19 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -168,22 +200,26 @@ public async System.Threading.Tasks.Task ClientDatabaseIsUpdatedUponStartupWhenN await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute(("Client database is updated upon startup when new scripts are shipped on the Top20" + - "00 website."))] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Client database")] - public async System.Threading.Tasks.Task ClientDatabaseIsUpdatedUponStartupWhenNewScriptsAreShippedOnTheTop2000Website_() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Client database is updated upon startup when new scripts are shipped on the Top20" + + "00 website.")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Client database is updated upon startup when new scripts are shipped on the Top20" + + "00 website.")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Client database")] + public async global::System.Threading.Tasks.Task ClientDatabaseIsUpdatedUponStartupWhenNewScriptsAreShippedOnTheTop2000Website_() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo(("Client database is updated upon startup when new scripts are shipped on the Top20" + - "00 website."), null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "2"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Client database is updated upon startup when new scripts are shipped on the Top20" + + "00 website.", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 24 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -207,22 +243,26 @@ public async System.Threading.Tasks.Task ClientDatabaseIsUpdatedUponStartupWhenN await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute(("Client database is updated when new scripts are shipped in the assembly and the T" + - "op2000 website."))] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Client database")] - public async System.Threading.Tasks.Task ClientDatabaseIsUpdatedWhenNewScriptsAreShippedInTheAssemblyAndTheTop2000Website_() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Client database is updated when new scripts are shipped in the assembly and the T" + + "op2000 website.")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Client database is updated when new scripts are shipped in the assembly and the T" + + "op2000 website.")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Client database")] + public async global::System.Threading.Tasks.Task ClientDatabaseIsUpdatedWhenNewScriptsAreShippedInTheAssemblyAndTheTop2000Website_() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo(("Client database is updated when new scripts are shipped in the assembly and the T" + - "op2000 website."), null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "3"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Client database is updated when new scripts are shipped in the assembly and the T" + + "op2000 website.", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 30 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { diff --git a/tests/Top2000.Features.Specs/Features/Search.feature.cs b/tests/Top2000.Features.Specs/Features/Search.feature.cs index 1576098..fdfea65 100644 --- a/tests/Top2000.Features.Specs/Features/Search.feature.cs +++ b/tests/Top2000.Features.Specs/Features/Search.feature.cs @@ -1,8 +1,8 @@ // ------------------------------------------------------------------------------ // -// This code was generated by Reqnroll (https://www.reqnroll.net/). -// Reqnroll Version:2.0.0.0 -// Reqnroll Generator Version:2.0.0.0 +// This code was generated by Reqnroll (https://reqnroll.net/). +// Reqnroll Version:3.0.0.0 +// Reqnroll Generator Version:3.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -10,16 +10,14 @@ // ------------------------------------------------------------------------------ #region Designer generated code #pragma warning disable +using Reqnroll; namespace Top2000.Features.Specs.Features { - using Reqnroll; - using System; - using System.Linq; - [System.CodeDom.Compiler.GeneratedCodeAttribute("Reqnroll", "2.0.0.0")] - [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Reqnroll", "3.0.0.0")] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()] public partial class SearchFeature { @@ -29,7 +27,7 @@ public partial class SearchFeature private static string[] featureTags = ((string[])(null)); - private static global::Reqnroll.FeatureInfo featureInfo = new global::Reqnroll.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Features", "Search", null, global::Reqnroll.ProgrammingLanguage.CSharp, featureTags); + private static global::Reqnroll.FeatureInfo featureInfo = new global::Reqnroll.FeatureInfo(new global::System.Globalization.CultureInfo("en-US"), "Features", "Search", null, global::Reqnroll.ProgrammingLanguage.CSharp, featureTags, InitializeCucumberMessages()); #line 1 "Search.feature" #line hidden @@ -46,68 +44,99 @@ public virtual Microsoft.VisualStudio.TestTools.UnitTesting.TestContext TestCont } } - [Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute()] - public static async System.Threading.Tasks.Task FeatureSetupAsync(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext) + [global::Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute()] + public static async global::System.Threading.Tasks.Task FeatureSetupAsync(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext) { } - [Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute(Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupBehavior.EndOfClass)] - public static async System.Threading.Tasks.Task FeatureTearDownAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute()] + public static async global::System.Threading.Tasks.Task FeatureTearDownAsync() { + await global::Reqnroll.TestRunnerManager.ReleaseFeatureAsync(featureInfo); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestInitializeAttribute()] - public async System.Threading.Tasks.Task TestInitializeAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestInitializeAttribute()] + public async global::System.Threading.Tasks.Task TestInitializeAsync() { testRunner = global::Reqnroll.TestRunnerManager.GetTestRunnerForAssembly(featureHint: featureInfo); - if (((testRunner.FeatureContext != null) - && (testRunner.FeatureContext.FeatureInfo.Equals(featureInfo) == false))) + try { - await testRunner.OnFeatureEndAsync(); + if (((testRunner.FeatureContext != null) + && (testRunner.FeatureContext.FeatureInfo.Equals(featureInfo) == false))) + { + await testRunner.OnFeatureEndAsync(); + } } - if ((testRunner.FeatureContext == null)) + finally { - await testRunner.OnFeatureStartAsync(featureInfo); + if (((testRunner.FeatureContext != null) + && testRunner.FeatureContext.BeforeFeatureHookFailed)) + { + throw new global::Reqnroll.ReqnrollException("Scenario skipped because of previous before feature hook error"); + } + if ((testRunner.FeatureContext == null)) + { + await testRunner.OnFeatureStartAsync(featureInfo); + } } } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute()] - public async System.Threading.Tasks.Task TestTearDownAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute()] + public async global::System.Threading.Tasks.Task TestTearDownAsync() { - await testRunner.OnScenarioEndAsync(); - global::Reqnroll.TestRunnerManager.ReleaseTestRunner(testRunner); + if ((testRunner == null)) + { + return; + } + try + { + await testRunner.OnScenarioEndAsync(); + } + finally + { + global::Reqnroll.TestRunnerManager.ReleaseTestRunner(testRunner); + testRunner = null; + } } - public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo) + public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, global::Reqnroll.RuleInfo ruleInfo) { - testRunner.OnScenarioInitialize(scenarioInfo); + testRunner.OnScenarioInitialize(scenarioInfo, ruleInfo); testRunner.ScenarioContext.ScenarioContainer.RegisterInstanceAs(_testContext); } - public async System.Threading.Tasks.Task ScenarioStartAsync() + public async global::System.Threading.Tasks.Task ScenarioStartAsync() { await testRunner.OnScenarioStartAsync(); } - public async System.Threading.Tasks.Task ScenarioCleanupAsync() + public async global::System.Threading.Tasks.Task ScenarioCleanupAsync() { await testRunner.CollectScenarioErrorsAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Tracks can be searched by the counter part of a special character")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Search")] - public async System.Threading.Tasks.Task TracksCanBeSearchedByTheCounterPartOfASpecialCharacter() + private static global::Reqnroll.Formatters.RuntimeSupport.FeatureLevelCucumberMessages InitializeCucumberMessages() + { + return new global::Reqnroll.Formatters.RuntimeSupport.FeatureLevelCucumberMessages("Features/Search.feature.ndjson", 9); + } + + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Tracks can be searched by the counter part of a special character")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Tracks can be searched by the counter part of a special character")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Search")] + public async global::System.Threading.Tasks.Task TracksCanBeSearchedByTheCounterPartOfASpecialCharacter() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Tracks can be searched by the counter part of a special character", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "0"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Tracks can be searched by the counter part of a special character", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 3 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -151,20 +180,23 @@ public async System.Threading.Tasks.Task TracksCanBeSearchedByTheCounterPartOfAS await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Track can be searching by title")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Search")] - public async System.Threading.Tasks.Task TrackCanBeSearchingByTitle() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Track can be searching by title")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Track can be searching by title")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Search")] + public async global::System.Threading.Tasks.Task TrackCanBeSearchingByTitle() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Track can be searching by title", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "1"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Track can be searching by title", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 14 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -202,20 +234,23 @@ public async System.Threading.Tasks.Task TrackCanBeSearchingByTitle() await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Tracks can be searching by artist")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Search")] - public async System.Threading.Tasks.Task TracksCanBeSearchingByArtist() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Tracks can be searching by artist")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Tracks can be searching by artist")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Search")] + public async global::System.Threading.Tasks.Task TracksCanBeSearchingByArtist() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Tracks can be searching by artist", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "2"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Tracks can be searching by artist", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 23 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -243,20 +278,23 @@ public async System.Threading.Tasks.Task TracksCanBeSearchingByArtist() await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Track can be searched by their full RecordedYear")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Search")] - public async System.Threading.Tasks.Task TrackCanBeSearchedByTheirFullRecordedYear() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Track can be searched by their full RecordedYear")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Track can be searched by their full RecordedYear")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Search")] + public async global::System.Threading.Tasks.Task TrackCanBeSearchedByTheirFullRecordedYear() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Track can be searched by their full RecordedYear", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "3"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Track can be searched by their full RecordedYear", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 30 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -284,20 +322,23 @@ public async System.Threading.Tasks.Task TrackCanBeSearchedByTheirFullRecordedYe await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Searching track by their RecordedYear are only found by searching the full year")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Search")] - public async System.Threading.Tasks.Task SearchingTrackByTheirRecordedYearAreOnlyFoundBySearchingTheFullYear() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Searching track by their RecordedYear are only found by searching the full year")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Searching track by their RecordedYear are only found by searching the full year")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Search")] + public async global::System.Threading.Tasks.Task SearchingTrackByTheirRecordedYearAreOnlyFoundBySearchingTheFullYear() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Searching track by their RecordedYear are only found by searching the full year", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "4"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Searching track by their RecordedYear are only found by searching the full year", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 37 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -315,20 +356,23 @@ public async System.Threading.Tasks.Task SearchingTrackByTheirRecordedYearAreOnl await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Searching will have a result cap of 100")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Search")] - public async System.Threading.Tasks.Task SearchingWillHaveAResultCapOf100() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Searching will have a result cap of 100")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Searching will have a result cap of 100")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Search")] + public async global::System.Threading.Tasks.Task SearchingWillHaveAResultCapOf100() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Searching will have a result cap of 100", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "5"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Searching will have a result cap of 100", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 42 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -346,20 +390,23 @@ public async System.Threading.Tasks.Task SearchingWillHaveAResultCapOf100() await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("An empty search querty give zero results")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Search")] - public async System.Threading.Tasks.Task AnEmptySearchQuertyGiveZeroResults() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="An empty search querty give zero results")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("An empty search querty give zero results")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Search")] + public async global::System.Threading.Tasks.Task AnEmptySearchQuertyGiveZeroResults() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("An empty search querty give zero results", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "6"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("An empty search querty give zero results", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 47 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { diff --git a/tests/Top2000.Features.Specs/Features/Top2000Data.feature.cs b/tests/Top2000.Features.Specs/Features/Top2000Data.feature.cs index 457f9cd..1fb5ccd 100644 --- a/tests/Top2000.Features.Specs/Features/Top2000Data.feature.cs +++ b/tests/Top2000.Features.Specs/Features/Top2000Data.feature.cs @@ -1,8 +1,8 @@ // ------------------------------------------------------------------------------ // -// This code was generated by Reqnroll (https://www.reqnroll.net/). -// Reqnroll Version:2.0.0.0 -// Reqnroll Generator Version:2.0.0.0 +// This code was generated by Reqnroll (https://reqnroll.net/). +// Reqnroll Version:3.0.0.0 +// Reqnroll Generator Version:3.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -10,16 +10,14 @@ // ------------------------------------------------------------------------------ #region Designer generated code #pragma warning disable +using Reqnroll; namespace Top2000.Features.Specs.Features { - using Reqnroll; - using System; - using System.Linq; - [System.CodeDom.Compiler.GeneratedCodeAttribute("Reqnroll", "2.0.0.0")] - [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Reqnroll", "3.0.0.0")] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()] public partial class Top2000DataFeature { @@ -29,7 +27,7 @@ public partial class Top2000DataFeature private static string[] featureTags = ((string[])(null)); - private static global::Reqnroll.FeatureInfo featureInfo = new global::Reqnroll.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Features", "Top2000Data", null, global::Reqnroll.ProgrammingLanguage.CSharp, featureTags); + private static global::Reqnroll.FeatureInfo featureInfo = new global::Reqnroll.FeatureInfo(new global::System.Globalization.CultureInfo("en-US"), "Features", "Top2000Data", null, global::Reqnroll.ProgrammingLanguage.CSharp, featureTags, InitializeCucumberMessages()); #line 1 "Top2000Data.feature" #line hidden @@ -46,74 +44,105 @@ public virtual Microsoft.VisualStudio.TestTools.UnitTesting.TestContext TestCont } } - [Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute()] - public static async System.Threading.Tasks.Task FeatureSetupAsync(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext) + [global::Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute()] + public static async global::System.Threading.Tasks.Task FeatureSetupAsync(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext) { } - [Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute(Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupBehavior.EndOfClass)] - public static async System.Threading.Tasks.Task FeatureTearDownAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute()] + public static async global::System.Threading.Tasks.Task FeatureTearDownAsync() { + await global::Reqnroll.TestRunnerManager.ReleaseFeatureAsync(featureInfo); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestInitializeAttribute()] - public async System.Threading.Tasks.Task TestInitializeAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestInitializeAttribute()] + public async global::System.Threading.Tasks.Task TestInitializeAsync() { testRunner = global::Reqnroll.TestRunnerManager.GetTestRunnerForAssembly(featureHint: featureInfo); - if (((testRunner.FeatureContext != null) - && (testRunner.FeatureContext.FeatureInfo.Equals(featureInfo) == false))) + try { - await testRunner.OnFeatureEndAsync(); + if (((testRunner.FeatureContext != null) + && (testRunner.FeatureContext.FeatureInfo.Equals(featureInfo) == false))) + { + await testRunner.OnFeatureEndAsync(); + } } - if ((testRunner.FeatureContext == null)) + finally { - await testRunner.OnFeatureStartAsync(featureInfo); + if (((testRunner.FeatureContext != null) + && testRunner.FeatureContext.BeforeFeatureHookFailed)) + { + throw new global::Reqnroll.ReqnrollException("Scenario skipped because of previous before feature hook error"); + } + if ((testRunner.FeatureContext == null)) + { + await testRunner.OnFeatureStartAsync(featureInfo); + } } } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute()] - public async System.Threading.Tasks.Task TestTearDownAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute()] + public async global::System.Threading.Tasks.Task TestTearDownAsync() { - await testRunner.OnScenarioEndAsync(); - global::Reqnroll.TestRunnerManager.ReleaseTestRunner(testRunner); + if ((testRunner == null)) + { + return; + } + try + { + await testRunner.OnScenarioEndAsync(); + } + finally + { + global::Reqnroll.TestRunnerManager.ReleaseTestRunner(testRunner); + testRunner = null; + } } - public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo) + public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, global::Reqnroll.RuleInfo ruleInfo) { - testRunner.OnScenarioInitialize(scenarioInfo); + testRunner.OnScenarioInitialize(scenarioInfo, ruleInfo); testRunner.ScenarioContext.ScenarioContainer.RegisterInstanceAs(_testContext); } - public async System.Threading.Tasks.Task ScenarioStartAsync() + public async global::System.Threading.Tasks.Task ScenarioStartAsync() { await testRunner.OnScenarioStartAsync(); } - public async System.Threading.Tasks.Task ScenarioCleanupAsync() + public async global::System.Threading.Tasks.Task ScenarioCleanupAsync() { await testRunner.CollectScenarioErrorsAsync(); } - public virtual async System.Threading.Tasks.Task FeatureBackgroundAsync() + public virtual async global::System.Threading.Tasks.Task FeatureBackgroundAsync() { #line 3 #line hidden } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("All editions contains 2000 positions starting with 1 and ending with 2000")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Top2000Data")] - public async System.Threading.Tasks.Task AllEditionsContains2000PositionsStartingWith1AndEndingWith2000() + private static global::Reqnroll.Formatters.RuntimeSupport.FeatureLevelCucumberMessages InitializeCucumberMessages() + { + return new global::Reqnroll.Formatters.RuntimeSupport.FeatureLevelCucumberMessages("Features/Top2000Data.feature.ndjson", 6); + } + + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="All editions contains 2000 positions starting with 1 and ending with 2000")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("All editions contains 2000 positions starting with 1 and ending with 2000")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Top2000Data")] + public async global::System.Threading.Tasks.Task AllEditionsContains2000PositionsStartingWith1AndEndingWith2000() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("All editions contains 2000 positions starting with 1 and ending with 2000", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "0"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("All editions contains 2000 positions starting with 1 and ending with 2000", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 7 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -131,20 +160,23 @@ public async System.Threading.Tasks.Task AllEditionsContains2000PositionsStartin await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("The last edition can either have 10 or 2000 tracks")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Top2000Data")] - public async System.Threading.Tasks.Task TheLastEditionCanEitherHave10Or2000Tracks() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="The last edition can either have 10 or 2000 tracks")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("The last edition can either have 10 or 2000 tracks")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Top2000Data")] + public async global::System.Threading.Tasks.Task TheLastEditionCanEitherHave10Or2000Tracks() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("The last edition can either have 10 or 2000 tracks", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "1"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("The last edition can either have 10 or 2000 tracks", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 11 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -165,22 +197,26 @@ public async System.Threading.Tasks.Task TheLastEditionCanEitherHave10Or2000Trac await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute(("The playtime of each track is either the same to the last track or increment by o" + - "ne hour"))] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Top2000Data")] - public async System.Threading.Tasks.Task ThePlaytimeOfEachTrackIsEitherTheSameToTheLastTrackOrIncrementByOneHour() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="The playtime of each track is either the same to the last track or increment by o" + + "ne hour")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("The playtime of each track is either the same to the last track or increment by o" + + "ne hour")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Top2000Data")] + public async global::System.Threading.Tasks.Task ThePlaytimeOfEachTrackIsEitherTheSameToTheLastTrackOrIncrementByOneHour() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo(("The playtime of each track is either the same to the last track or increment by o" + - "ne hour"), null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "2"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("The playtime of each track is either the same to the last track or increment by o" + + "ne hour", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 16 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -192,27 +228,30 @@ public async System.Threading.Tasks.Task ThePlaytimeOfEachTrackIsEitherTheSameTo await testRunner.GivenAsync("the client database is created", ((string)(null)), ((global::Reqnroll.Table)(null)), "Given "); #line hidden #line 18 -await testRunner.ThenAsync(("for each track in the listing table the PlayDateAndTime is the same to the previo" + - "us track or has incremented by one hour"), ((string)(null)), ((global::Reqnroll.Table)(null)), "Then "); +await testRunner.ThenAsync("for each track in the listing table the PlayDateAndTime is the same to the previo" + + "us track or has incremented by one hour", ((string)(null)), ((global::Reqnroll.Table)(null)), "Then "); #line hidden } await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Edition 2023 has 2500 tracks")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Top2000Data")] - public async System.Threading.Tasks.Task Edition2023Has2500Tracks() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Edition 2023 has 2500 tracks")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Edition 2023 has 2500 tracks")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "Top2000Data")] + public async global::System.Threading.Tasks.Task Edition2023Has2500Tracks() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Edition 2023 has 2500 tracks", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "3"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Edition 2023 has 2500 tracks", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 20 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { diff --git a/tests/Top2000.Features.Specs/Features/TrackInformation.feature.cs b/tests/Top2000.Features.Specs/Features/TrackInformation.feature.cs index b4ead5e..524ef6f 100644 --- a/tests/Top2000.Features.Specs/Features/TrackInformation.feature.cs +++ b/tests/Top2000.Features.Specs/Features/TrackInformation.feature.cs @@ -1,8 +1,8 @@ // ------------------------------------------------------------------------------ // -// This code was generated by Reqnroll (https://www.reqnroll.net/). -// Reqnroll Version:2.0.0.0 -// Reqnroll Generator Version:2.0.0.0 +// This code was generated by Reqnroll (https://reqnroll.net/). +// Reqnroll Version:3.0.0.0 +// Reqnroll Generator Version:3.0.0.0 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -10,16 +10,14 @@ // ------------------------------------------------------------------------------ #region Designer generated code #pragma warning disable +using Reqnroll; namespace Top2000.Features.Specs.Features { - using Reqnroll; - using System; - using System.Linq; - [System.CodeDom.Compiler.GeneratedCodeAttribute("Reqnroll", "2.0.0.0")] - [System.Runtime.CompilerServices.CompilerGeneratedAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()] + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Reqnroll", "3.0.0.0")] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestClassAttribute()] public partial class TrackInformationFeature { @@ -29,7 +27,7 @@ public partial class TrackInformationFeature private static string[] featureTags = ((string[])(null)); - private static global::Reqnroll.FeatureInfo featureInfo = new global::Reqnroll.FeatureInfo(new System.Globalization.CultureInfo("en-US"), "Features", "TrackInformation", null, global::Reqnroll.ProgrammingLanguage.CSharp, featureTags); + private static global::Reqnroll.FeatureInfo featureInfo = new global::Reqnroll.FeatureInfo(new global::System.Globalization.CultureInfo("en-US"), "Features", "TrackInformation", null, global::Reqnroll.ProgrammingLanguage.CSharp, featureTags, InitializeCucumberMessages()); #line 1 "TrackInformation.feature" #line hidden @@ -46,74 +44,105 @@ public virtual Microsoft.VisualStudio.TestTools.UnitTesting.TestContext TestCont } } - [Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute()] - public static async System.Threading.Tasks.Task FeatureSetupAsync(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext) + [global::Microsoft.VisualStudio.TestTools.UnitTesting.ClassInitializeAttribute()] + public static async global::System.Threading.Tasks.Task FeatureSetupAsync(Microsoft.VisualStudio.TestTools.UnitTesting.TestContext testContext) { } - [Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute(Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupBehavior.EndOfClass)] - public static async System.Threading.Tasks.Task FeatureTearDownAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.ClassCleanupAttribute()] + public static async global::System.Threading.Tasks.Task FeatureTearDownAsync() { + await global::Reqnroll.TestRunnerManager.ReleaseFeatureAsync(featureInfo); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestInitializeAttribute()] - public async System.Threading.Tasks.Task TestInitializeAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestInitializeAttribute()] + public async global::System.Threading.Tasks.Task TestInitializeAsync() { testRunner = global::Reqnroll.TestRunnerManager.GetTestRunnerForAssembly(featureHint: featureInfo); - if (((testRunner.FeatureContext != null) - && (testRunner.FeatureContext.FeatureInfo.Equals(featureInfo) == false))) + try { - await testRunner.OnFeatureEndAsync(); + if (((testRunner.FeatureContext != null) + && (testRunner.FeatureContext.FeatureInfo.Equals(featureInfo) == false))) + { + await testRunner.OnFeatureEndAsync(); + } } - if ((testRunner.FeatureContext == null)) + finally { - await testRunner.OnFeatureStartAsync(featureInfo); + if (((testRunner.FeatureContext != null) + && testRunner.FeatureContext.BeforeFeatureHookFailed)) + { + throw new global::Reqnroll.ReqnrollException("Scenario skipped because of previous before feature hook error"); + } + if ((testRunner.FeatureContext == null)) + { + await testRunner.OnFeatureStartAsync(featureInfo); + } } } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute()] - public async System.Threading.Tasks.Task TestTearDownAsync() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestCleanupAttribute()] + public async global::System.Threading.Tasks.Task TestTearDownAsync() { - await testRunner.OnScenarioEndAsync(); - global::Reqnroll.TestRunnerManager.ReleaseTestRunner(testRunner); + if ((testRunner == null)) + { + return; + } + try + { + await testRunner.OnScenarioEndAsync(); + } + finally + { + global::Reqnroll.TestRunnerManager.ReleaseTestRunner(testRunner); + testRunner = null; + } } - public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo) + public void ScenarioInitialize(global::Reqnroll.ScenarioInfo scenarioInfo, global::Reqnroll.RuleInfo ruleInfo) { - testRunner.OnScenarioInitialize(scenarioInfo); + testRunner.OnScenarioInitialize(scenarioInfo, ruleInfo); testRunner.ScenarioContext.ScenarioContainer.RegisterInstanceAs(_testContext); } - public async System.Threading.Tasks.Task ScenarioStartAsync() + public async global::System.Threading.Tasks.Task ScenarioStartAsync() { await testRunner.OnScenarioStartAsync(); } - public async System.Threading.Tasks.Task ScenarioCleanupAsync() + public async global::System.Threading.Tasks.Task ScenarioCleanupAsync() { await testRunner.CollectScenarioErrorsAsync(); } - public virtual async System.Threading.Tasks.Task FeatureBackgroundAsync() + public virtual async global::System.Threading.Tasks.Task FeatureBackgroundAsync() { #line 3 #line hidden } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Track information contains the static data from a track")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] - public async System.Threading.Tasks.Task TrackInformationContainsTheStaticDataFromATrack() + private static global::Reqnroll.Formatters.RuntimeSupport.FeatureLevelCucumberMessages InitializeCucumberMessages() + { + return new global::Reqnroll.Formatters.RuntimeSupport.FeatureLevelCucumberMessages("Features/TrackInformation.feature.ndjson", 15); + } + + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Track information contains the static data from a track")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Track information contains the static data from a track")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] + public async global::System.Threading.Tasks.Task TrackInformationContainsTheStaticDataFromATrack() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Track information contains the static data from a track", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "0"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Track information contains the static data from a track", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 5 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -134,20 +163,23 @@ public async System.Threading.Tasks.Task TrackInformationContainsTheStaticDataFr await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Tracks that are recorded after the first edition are listed as Not available")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] - public async System.Threading.Tasks.Task TracksThatAreRecordedAfterTheFirstEditionAreListedAsNotAvailable() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Tracks that are recorded after the first edition are listed as Not available")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Tracks that are recorded after the first edition are listed as Not available")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] + public async global::System.Threading.Tasks.Task TracksThatAreRecordedAfterTheFirstEditionAreListedAsNotAvailable() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Tracks that are recorded after the first edition are listed as Not available", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "1"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Tracks that are recorded after the first edition are listed as Not available", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 10 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -181,20 +213,23 @@ public async System.Threading.Tasks.Task TracksThatAreRecordedAfterTheFirstEditi await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Track that were recorded but did not made it on the list are listed as NotListed")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] - public async System.Threading.Tasks.Task TrackThatWereRecordedButDidNotMadeItOnTheListAreListedAsNotListed() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Track that were recorded but did not made it on the list are listed as NotListed")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Track that were recorded but did not made it on the list are listed as NotListed")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] + public async global::System.Threading.Tasks.Task TrackThatWereRecordedButDidNotMadeItOnTheListAreListedAsNotListed() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Track that were recorded but did not made it on the list are listed as NotListed", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "2"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Track that were recorded but did not made it on the list are listed as NotListed", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 21 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -232,20 +267,23 @@ public async System.Threading.Tasks.Task TrackThatWereRecordedButDidNotMadeItOnT await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("The first time a track is listed the status of the listing is New")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] - public async System.Threading.Tasks.Task TheFirstTimeATrackIsListedTheStatusOfTheListingIsNew() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="The first time a track is listed the status of the listing is New")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("The first time a track is listed the status of the listing is New")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] + public async global::System.Threading.Tasks.Task TheFirstTimeATrackIsListedTheStatusOfTheListingIsNew() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("The first time a track is listed the status of the listing is New", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "3"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("The first time a track is listed the status of the listing is New", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 34 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -269,22 +307,26 @@ public async System.Threading.Tasks.Task TheFirstTimeATrackIsListedTheStatusOfTh await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute(("Tracks that are listed again but was not in the previous edition the status is li" + - "sted as Back"))] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] - public async System.Threading.Tasks.Task TracksThatAreListedAgainButWasNotInThePreviousEditionTheStatusIsListedAsBack() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Tracks that are listed again but was not in the previous edition the status is li" + + "sted as Back")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Tracks that are listed again but was not in the previous edition the status is li" + + "sted as Back")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] + public async global::System.Threading.Tasks.Task TracksThatAreListedAgainButWasNotInThePreviousEditionTheStatusIsListedAsBack() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo(("Tracks that are listed again but was not in the previous edition the status is li" + - "sted as Back"), null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "4"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Tracks that are listed again but was not in the previous edition the status is li" + + "sted as Back", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 40 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -308,22 +350,26 @@ public async System.Threading.Tasks.Task TracksThatAreListedAgainButWasNotInTheP await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute(("Tracks that are higher on the list than previous edition are listed are Increased" + - " and a offset is indicating the delta"))] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] - public async System.Threading.Tasks.Task TracksThatAreHigherOnTheListThanPreviousEditionAreListedAreIncreasedAndAOffsetIsIndicatingTheDelta() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Tracks that are higher on the list than previous edition are listed are Increased" + + " and a offset is indicating the delta")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Tracks that are higher on the list than previous edition are listed are Increased" + + " and a offset is indicating the delta")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] + public async global::System.Threading.Tasks.Task TracksThatAreHigherOnTheListThanPreviousEditionAreListedAreIncreasedAndAOffsetIsIndicatingTheDelta() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo(("Tracks that are higher on the list than previous edition are listed are Increased" + - " and a offset is indicating the delta"), null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "5"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Tracks that are higher on the list than previous edition are listed are Increased" + + " and a offset is indicating the delta", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 46 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -368,22 +414,26 @@ public async System.Threading.Tasks.Task TracksThatAreHigherOnTheListThanPreviou await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute(("Tracks that are lower on the list than previous edition are listed are Decreased " + - "and a offset is indicating the delta"))] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] - public async System.Threading.Tasks.Task TracksThatAreLowerOnTheListThanPreviousEditionAreListedAreDecreasedAndAOffsetIsIndicatingTheDelta() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Tracks that are lower on the list than previous edition are listed are Decreased " + + "and a offset is indicating the delta")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Tracks that are lower on the list than previous edition are listed are Decreased " + + "and a offset is indicating the delta")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] + public async global::System.Threading.Tasks.Task TracksThatAreLowerOnTheListThanPreviousEditionAreListedAreDecreasedAndAOffsetIsIndicatingTheDelta() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo(("Tracks that are lower on the list than previous edition are listed are Decreased " + - "and a offset is indicating the delta"), null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "6"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Tracks that are lower on the list than previous edition are listed are Decreased " + + "and a offset is indicating the delta", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 59 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -458,22 +508,26 @@ public async System.Threading.Tasks.Task TracksThatAreLowerOnTheListThanPrevious await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute(("Tracks that haven\'t change position since the previous edition are listed as Unch" + - "anged"))] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] - public async System.Threading.Tasks.Task TracksThatHaventChangePositionSinceThePreviousEditionAreListedAsUnchanged() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Tracks that haven\'t change position since the previous edition are listed as Unch" + + "anged")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Tracks that haven\'t change position since the previous edition are listed as Unch" + + "anged")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] + public async global::System.Threading.Tasks.Task TracksThatHaventChangePositionSinceThePreviousEditionAreListedAsUnchanged() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo(("Tracks that haven\'t change position since the previous edition are listed as Unch" + - "anged"), null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "7"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Tracks that haven\'t change position since the previous edition are listed as Unch" + + "anged", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 82 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -488,8 +542,8 @@ public async System.Threading.Tasks.Task TracksThatHaventChangePositionSinceTheP await testRunner.WhenAsync("the track information feature is executed for TrackId 2218", ((string)(null)), ((global::Reqnroll.Table)(null)), "When "); #line hidden #line 85 -await testRunner.ThenAsync(("the title is \"Nothing Else Matters\" from \'Metallica\' which is recorded in the yea" + - "r 1992"), ((string)(null)), ((global::Reqnroll.Table)(null)), "Then "); +await testRunner.ThenAsync("the title is \"Nothing Else Matters\" from \'Metallica\' which is recorded in the yea" + + "r 1992", ((string)(null)), ((global::Reqnroll.Table)(null)), "Then "); #line hidden global::Reqnroll.Table table16 = new global::Reqnroll.Table(new string[] { "Edition", @@ -507,22 +561,26 @@ await testRunner.ThenAsync(("the title is \"Nothing Else Matters\" from \'Metall await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute(("\'Since release\' is the statistic that shows how many times the tracks could have " + - "been listed"))] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] - public async System.Threading.Tasks.Task SinceReleaseIsTheStatisticThatShowsHowManyTimesTheTracksCouldHaveBeenListed() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="\'Since release\' is the statistic that shows how many times the tracks could have " + + "been listed")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("\'Since release\' is the statistic that shows how many times the tracks could have " + + "been listed")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] + public async global::System.Threading.Tasks.Task SinceReleaseIsTheStatisticThatShowsHowManyTimesTheTracksCouldHaveBeenListed() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo(("\'Since release\' is the statistic that shows how many times the tracks could have " + - "been listed"), null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "8"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("\'Since release\' is the statistic that shows how many times the tracks could have " + + "been listed", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 91 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -549,20 +607,23 @@ public async System.Threading.Tasks.Task SinceReleaseIsTheStatisticThatShowsHowM await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Record high shows the highest listing for the track")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] - public async System.Threading.Tasks.Task RecordHighShowsTheHighestListingForTheTrack() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Record high shows the highest listing for the track")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Record high shows the highest listing for the track")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] + public async global::System.Threading.Tasks.Task RecordHighShowsTheHighestListingForTheTrack() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Record high shows the highest listing for the track", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "9"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Record high shows the highest listing for the track", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 98 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -586,20 +647,23 @@ public async System.Threading.Tasks.Task RecordHighShowsTheHighestListingForTheT await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Record low shows the lowest listing for the track")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] - public async System.Threading.Tasks.Task RecordLowShowsTheLowestListingForTheTrack() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Record low shows the lowest listing for the track")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Record low shows the lowest listing for the track")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] + public async global::System.Threading.Tasks.Task RecordLowShowsTheLowestListingForTheTrack() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Record low shows the lowest listing for the track", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "10"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Record low shows the lowest listing for the track", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 104 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -623,20 +687,23 @@ public async System.Threading.Tasks.Task RecordLowShowsTheLowestListingForTheTra await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Last postion shows the position of latest edition where the track was listed")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] - public async System.Threading.Tasks.Task LastPostionShowsThePositionOfLatestEditionWhereTheTrackWasListed() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="Last postion shows the position of latest edition where the track was listed")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("Last postion shows the position of latest edition where the track was listed")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] + public async global::System.Threading.Tasks.Task LastPostionShowsThePositionOfLatestEditionWhereTheTrackWasListed() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Last postion shows the position of latest edition where the track was listed", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "11"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("Last postion shows the position of latest edition where the track was listed", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 110 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { @@ -660,20 +727,26 @@ public async System.Threading.Tasks.Task LastPostionShowsThePositionOfLatestEdit await this.ScenarioCleanupAsync(); } - [Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute()] - [Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("First position shows the position of the first edition where the track was listed")] - [Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] - public async System.Threading.Tasks.Task FirstPositionShowsThePositionOfTheFirstEditionWhereTheTrackWasListed() + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestMethodAttribute(DisplayName="First position shows the position of the first edition where the track was listed" + + "")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.DescriptionAttribute("First position shows the position of the first edition where the track was listed" + + "")] + [global::Microsoft.VisualStudio.TestTools.UnitTesting.TestPropertyAttribute("FeatureTitle", "TrackInformation")] + public async global::System.Threading.Tasks.Task FirstPositionShowsThePositionOfTheFirstEditionWhereTheTrackWasListed() { string[] tagsOfScenario = ((string[])(null)); - System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new System.Collections.Specialized.OrderedDictionary(); - global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("First position shows the position of the first edition where the track was listed", null, tagsOfScenario, argumentsOfScenario, featureTags); + global::System.Collections.Specialized.OrderedDictionary argumentsOfScenario = new global::System.Collections.Specialized.OrderedDictionary(); + string pickleIndex = "12"; + global::Reqnroll.ScenarioInfo scenarioInfo = new global::Reqnroll.ScenarioInfo("First position shows the position of the first edition where the track was listed" + + "", null, tagsOfScenario, argumentsOfScenario, featureTags, pickleIndex); + string[] tagsOfRule = ((string[])(null)); + global::Reqnroll.RuleInfo ruleInfo = null; #line 116 -this.ScenarioInitialize(scenarioInfo); +this.ScenarioInitialize(scenarioInfo, ruleInfo); #line hidden if ((global::Reqnroll.TagHelper.ContainsIgnoreTag(scenarioInfo.CombinedTags) || global::Reqnroll.TagHelper.ContainsIgnoreTag(featureTags))) { - testRunner.SkipScenario(); + await testRunner.SkipScenarioAsync(); } else { diff --git a/tests/Top2000.Features.Specs/Top2000.Features.Specs.csproj b/tests/Top2000.Features.Specs/Top2000.Features.Specs.csproj index f750d9f..2b4126d 100644 --- a/tests/Top2000.Features.Specs/Top2000.Features.Specs.csproj +++ b/tests/Top2000.Features.Specs/Top2000.Features.Specs.csproj @@ -1,7 +1,7 @@  - net9.0 + net10.0 enable disable @@ -19,16 +19,16 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - - - - - + + + + + + diff --git a/tests/Top2000.Features.Specs/Usings.cs b/tests/Top2000.Features.Specs/Usings.cs index 994ebc9..bf84f43 100644 --- a/tests/Top2000.Features.Specs/Usings.cs +++ b/tests/Top2000.Features.Specs/Usings.cs @@ -1,3 +1,5 @@ global using Reqnroll; global using FluentAssertions; -global using MediatR; \ No newline at end of file +global using MediatR; + +[assembly: DoNotParallelize] \ No newline at end of file diff --git a/tests/Top2000.Features.Tests/Top2000.Features.Tests.csproj b/tests/Top2000.Features.Tests/Top2000.Features.Tests.csproj index 79110e0..ec5eb60 100644 --- a/tests/Top2000.Features.Tests/Top2000.Features.Tests.csproj +++ b/tests/Top2000.Features.Tests/Top2000.Features.Tests.csproj @@ -1,7 +1,7 @@ - net9.0 + net10.0 enable enable @@ -10,15 +10,15 @@ - + all runtime; build; native; contentfiles; analyzers; buildtransitive - - + + - - + + diff --git a/tests/Top2000.Features.Tests/Usings.cs b/tests/Top2000.Features.Tests/Usings.cs index 932d9ae..d6460b1 100644 --- a/tests/Top2000.Features.Tests/Usings.cs +++ b/tests/Top2000.Features.Tests/Usings.cs @@ -1 +1,3 @@ global using FluentAssertions; + +[assembly: Parallelize] \ No newline at end of file