File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
main/java/se/capeit/dev/xunittestrunner
test/java/se/capeit/dev/xunittestrunner Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ public static RunnerVersion getRunner(String version) {
36
36
public String getRunnerPath (String runtime , String platform ) {
37
37
StringBuilder sb = new StringBuilder ();
38
38
sb .append ("xunit.console" );
39
- if (runtime .equals (Runtime .dotNET40 ))
39
+ if (runtime .equals (Runtime .dotNET40 ) || runtime . equals ( "" ) )
40
40
sb .append (".clr4" );
41
41
if (platform .equals (Platforms .x86 ))
42
42
sb .append (".x86" );
Original file line number Diff line number Diff line change @@ -17,4 +17,10 @@ public void testCorrectRunnerPath() {
17
17
Assert .assertEquals ("xunit.console.x86.exe" , runner .getRunnerPath (Runtime .dotNET35 , Platforms .x86 ));
18
18
Assert .assertEquals ("xunit.console.exe" , runner .getRunnerPath (Runtime .dotNET35 , Platforms .MSIL ));
19
19
}
20
+
21
+ @ Test
22
+ public void testCorrectFallbackFor192 () {
23
+ RunnerVersion runner = Runners .getRunner ("1.9.2" );
24
+ Assert .assertEquals ("xunit.console.clr4.exe" , runner .getRunnerPath ("" , "" ));
25
+ }
20
26
}
You can’t perform that action at this time.
0 commit comments