Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
        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);
        }