We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 186a505 commit 7a710faCopy full SHA for 7a710fa
OasysGH/Helpers/RhinoResolver.cs
@@ -6,7 +6,7 @@
6
7
public class RhinoResolver {
8
private const string Coredllpath = "CoreDllPath";
9
- private static string rhinoSystemDirectory;
+ private static string rhinoSystemDirectory = string.Empty;
10
const string RhinoKey = "SOFTWARE\\McNeel\\Rhinoceros";
11
12
public static string RhinoSystemDirectory {
OasysGHTests/Helpers/ResolverTest.cs
@@ -11,6 +11,7 @@ namespace OasysGHTests.Helpers {
public class ResolverTest {
[Fact]
13
public void ShouldReturnAValidPath() {
14
+ RhinoResolver.RhinoMajorVersion = -1;
15
string directory = RhinoResolver.FindRhinoSystemDirectory();
16
Assert.True(File.Exists(directory));
17
}
0 commit comments