示例#1
0
 public void ValidServiceCmd()
 {
     Assert.AreEqual("C:\\Program Files\\Storj\\Storage Node\\\\",
                     CustomActionRunner.ExtractInstallDir("\"C:\\Program Files\\Storj\\Storage Node\\storagenode.exe\" run  --config-dir \"C:\\Program Files\\Storj\\Storage Node\\\\\""));
 }
示例#2
0
 public void EmptyServiceCmd()
 {
     Assert.IsNull(CustomActionRunner.ExtractInstallDir(""));
 }
示例#3
0
 public void MissingConfigDirFlag()
 {
     Assert.IsNull(CustomActionRunner.ExtractInstallDir("\"C:\\Program Files\\Storj\\Storage Node\\storagenode.exe\" run"));
 }
示例#4
0
 public void NullServiceCmd()
 {
     Assert.IsNull(CustomActionRunner.ExtractInstallDir(null));
 }