@@ -124,8 +124,14 @@ await TestUtility.WalkJsonAsync(target.Root, (file, json, toCheck) =>
124
124
[ InlineData ( @"file:///c:/configPath/sleet.json" , @"" , @"c:\configPath\" ) ]
125
125
[ InlineData ( @"file:///c:/configPath/sleet.json" , @"singleSubFolder" , @"c:\configPath\singleSubFolder\" ) ]
126
126
[ InlineData ( @"file:///c:/configPath/sleet.json" , @"nestedSubFolder\a" , @"c:\configPath\nestedSubFolder\a\" ) ]
127
+ [ InlineData ( @"sleet.json" , @"" , @"{workingDir}\" ) ]
128
+ [ InlineData ( @"sleet.json" , @".\" , @"{workingDir}\" ) ]
129
+ [ InlineData ( @"sleet.json" , @"singleSubFolder" , @"{workingDir}\singleSubFolder\" ) ]
130
+ [ InlineData ( @"sleet.json" , @"nestedSubFolder\a" , @"{workingDir}\nestedSubFolder\a\" ) ]
127
131
public void Feed_LocalTypeSupportsRelativePath ( string configPath , string outputPath , string expected )
128
132
{
133
+ var expectedFull = expected . Replace ( "{workingDir}" , Directory . GetCurrentDirectory ( ) ) ;
134
+
129
135
using ( var cache = new LocalCache ( ) )
130
136
{
131
137
var baseUri = UriUtility . CreateUri ( "https://localhost:8080/testFeed/" ) ;
@@ -136,7 +142,7 @@ public void Feed_LocalTypeSupportsRelativePath(string configPath, string outputP
136
142
var fileSystem = FileSystemFactory . CreateFileSystem ( settings , cache , "local" ) as PhysicalFileSystem ;
137
143
138
144
Assert . NotNull ( fileSystem ) ;
139
- Assert . Equal ( expected , fileSystem . LocalRoot ) ;
145
+ Assert . Equal ( expectedFull , fileSystem . LocalRoot ) ;
140
146
}
141
147
}
142
148
0 commit comments