File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,7 @@ public class SharedFxTests
1515 {
1616 private readonly string _expectedTfm ;
1717 private readonly string _expectedRid ;
18+ private readonly string _expectedVersionFileName ;
1819 private readonly string _sharedFxRoot ;
1920 private readonly ITestOutputHelper _output ;
2021
@@ -26,6 +27,7 @@ public SharedFxTests(ITestOutputHelper output)
2627 _sharedFxRoot = string . IsNullOrEmpty ( Environment . GetEnvironmentVariable ( "ASPNET_RUNTIME_PATH" ) )
2728 ? Path . Combine ( TestData . GetTestDataValue ( "SharedFrameworkLayoutRoot" ) , "shared" , TestData . GetTestDataValue ( "RuntimePackageVersion" ) )
2829 : Environment . GetEnvironmentVariable ( "ASPNET_RUNTIME_PATH" ) ;
30+ _expectedVersionFileName = string . IsNullOrEmpty ( Environment . GetEnvironmentVariable ( "ASPNET_RUNTIME_PATH" ) ) ? ".version" : "Microsoft.AspNetCore.App.versions.txt" ;
2931 }
3032
3133 [ Fact ]
@@ -133,7 +135,7 @@ public void ItContainsValidDepsJson()
133135 [ Fact ]
134136 public void ItContainsVersionFile ( )
135137 {
136- var versionFile = Path . Combine ( _sharedFxRoot , ".version" ) ;
138+ var versionFile = Path . Combine ( _sharedFxRoot , _expectedVersionFileName ) ;
137139 AssertEx . FileExists ( versionFile ) ;
138140 var lines = File . ReadAllLines ( versionFile ) ;
139141 Assert . Equal ( 2 , lines . Length ) ;
You can’t perform that action at this time.
0 commit comments