Skip to content

Commit 7a710fa

Browse files
committed
feat: force check of version
1 parent 186a505 commit 7a710fa

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

OasysGH/Helpers/RhinoResolver.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
public class RhinoResolver {
88
private const string Coredllpath = "CoreDllPath";
9-
private static string rhinoSystemDirectory;
9+
private static string rhinoSystemDirectory = string.Empty;
1010
const string RhinoKey = "SOFTWARE\\McNeel\\Rhinoceros";
1111

1212
public static string RhinoSystemDirectory {

OasysGHTests/Helpers/ResolverTest.cs

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ namespace OasysGHTests.Helpers {
1111
public class ResolverTest {
1212
[Fact]
1313
public void ShouldReturnAValidPath() {
14+
RhinoResolver.RhinoMajorVersion = -1;
1415
string directory = RhinoResolver.FindRhinoSystemDirectory();
1516
Assert.True(File.Exists(directory));
1617
}

0 commit comments

Comments
 (0)