File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
tests/HttpClientInterception.Tests/Bundles Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -11,24 +11,24 @@ namespace JustEat.HttpClientInterception.Bundles;
1111
1212public static class BundleExtensionsTests
1313{
14- public static IEnumerable < object [ ] > BundleFiles
14+ public static TheoryData < string > BundleFiles ( )
1515 {
16- get
17- {
18- var bundles = Directory . GetFiles ( "Bundles" , "*.json" ) ;
16+ var bundles = Directory . GetFiles ( "Bundles" , "*.json" ) ;
17+ var filePaths = new TheoryData < string > ( ) ;
1918
20- foreach ( string path in bundles )
19+ foreach ( string path in bundles )
20+ {
21+ if ( path . Contains ( "invalid-" , StringComparison . OrdinalIgnoreCase ) ||
22+ path . Contains ( "no" , StringComparison . OrdinalIgnoreCase ) ||
23+ path . Contains ( "null-" , StringComparison . OrdinalIgnoreCase ) )
2124 {
22- if ( path . Contains ( "invalid-" , StringComparison . OrdinalIgnoreCase ) ||
23- path . Contains ( "no" , StringComparison . OrdinalIgnoreCase ) ||
24- path . Contains ( "null-" , StringComparison . OrdinalIgnoreCase ) )
25- {
26- continue ;
27- }
28-
29- yield return new object [ ] { path } ;
25+ continue ;
3026 }
27+
28+ filePaths . Add ( path ) ;
3129 }
30+
31+ return filePaths ;
3232 }
3333
3434 [ Fact ]
You can’t perform that action at this time.
0 commit comments