Exemplo n.º 1
0
        public void AddAddsArgumentWithPrefix()
        {
            var args = new SecureArguments("initial");

            args.Add("value1", "p=");
            var expected = "initial p=value1";
            var actual   = args.ToString();

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 2
0
        public void AddAddsArgumentWithPrefixAndDoubleQuotes()
        {
            var args = new SecureArguments("initial");

            args.Add("value1", "p=", true);
            var expected = "initial p=\"value1\"";
            var actual   = args.ToString();

            Assert.AreEqual(expected, actual);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Initialises the process.
        /// </summary>
        /// <returns>
        /// The information for the process.
        /// </returns>
        private ProcessInfo InitialiseProcess()
        {
            var args = new SecureArguments();

            args.Add(this.ProjectFile);
            return(new ProcessInfo(
                       this.Executable ?? DefaultExecutable,
                       args,
                       Environment.CurrentDirectory));
        }