public void DefaultRubyConsoleFileName() { Properties p = new Properties(); DerivedAddInOptions options = new DerivedAddInOptions(p); options.AddInPath = @"C:\Projects\SD\AddIns\Ruby"; string expectedFileName = Path.Combine(options.AddInPath, "ir.exe"); Assert.AreEqual(expectedFileName, options.RubyFileName); Assert.AreEqual("${addinpath:ICSharpCode.RubyBinding}", options.AddInPathRequested); }
public void SetRubyConsoleFileNameToEmptyString() { Properties p = new Properties(); DerivedAddInOptions options = new DerivedAddInOptions(p); options.AddInPath = @"C:\Projects\SD\AddIns\Ruby"; options.RubyFileName = String.Empty; string expectedFileName = Path.Combine(options.AddInPath, "ir.exe"); Assert.AreEqual(expectedFileName, options.RubyFileName); }
public void SetPythonConsoleFileNameToNull() { Properties p = new Properties(); DerivedAddInOptions options = new DerivedAddInOptions(p); options.AddInPath = @"C:\Projects\SD\AddIns\Python"; options.PythonFileName = null; string expectedFileName = Path.Combine(options.AddInPath, "ipy.exe"); Assert.AreEqual(expectedFileName, options.PythonFileName); }