File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11using System ;
22using System . Text . RegularExpressions ;
33using ApprovalTests ;
4- using TestStack . BDDfy . Configuration ;
54using TestStack . BDDfy . Reporters ;
65using TestStack . BDDfy . Tests . Reporters . Html ;
76
@@ -11,10 +10,6 @@ class ReportApprover
1110 {
1211 public static void Approve ( Func < FileReportModel > model , IReportBuilder reportBuilder )
1312 {
14- // somehow the scenario id keeps increasing on TC
15- // resetting here explicitly
16- Configurator . IdGenerator . Reset ( ) ;
17-
1813 // setting the culture to make sure the date is formatted the same on all machines
1914 using ( new TemporaryCulture ( "en-GB" ) )
2015 {
Original file line number Diff line number Diff line change 1+ using NUnit . Framework ;
2+ using TestStack . BDDfy . Configuration ;
3+
4+ namespace TestStack . BDDfy . Tests
5+ {
6+ [ SetUpFixture ]
7+ public class Setup
8+ {
9+ [ SetUp ]
10+ public void RunBeforeAnyTests ( )
11+ {
12+ // somehow the scenario id keeps increasing on TC
13+ // resetting here explicitly
14+ Configurator . IdGenerator . Reset ( ) ;
15+ }
16+ }
17+ }
Original file line number Diff line number Diff line change 126126 <Compile Include =" Scanner\WhenCombinationOfExecutableAttributeAndMethodNamingConventionIsUsed.cs" />
127127 <Compile Include =" Scanner\WhenStepsAreDefinedInABaseClass.cs" />
128128 <Compile Include =" Scanner\WhenStepsReturnTheirText.cs" />
129+ <Compile Include =" Setup.cs" />
129130 <Compile Include =" Stories\CanUseACustomStoryAttribute.cs" />
130131 <Compile Include =" Stories\WhenStoryAttibuteMissesDuplicateTextsInProperties.cs" />
131132 <Compile Include =" Stories\WhenStoryAttibuteMissesSoThatTextInSoThatProperty.cs" />
You can’t perform that action at this time.
0 commit comments