public void NewLinesAreReplacedWithEmptySpace()
 {
     var commandLineInstruction = new CommandLineInstructionTest();
       commandLineInstruction.FileName = "Foo";
       commandLineInstruction.Arguments = "first line" + Environment.NewLine + "second line" + Environment.NewLine + "third line";
       var processStartInfo = commandLineInstruction.CreateProcessStartInfo();
       Assert.That(processStartInfo, Is.Not.Null);
       Assert.That(processStartInfo.Arguments, Is.EqualTo("first line second line third line"));
 }
Esempio n. 2
0
        public void NewLinesAreReplacedWithEmptySpace()
        {
            var commandLineInstruction = new CommandLineInstructionTest();

            commandLineInstruction.FileName  = "Foo";
            commandLineInstruction.Arguments = "first line" + Environment.NewLine + "second line" + Environment.NewLine + "third line";
            var processStartInfo = commandLineInstruction.CreateProcessStartInfo();

            Assert.That(processStartInfo, Is.Not.Null);
            Assert.That(processStartInfo.Arguments, Is.EqualTo("first line second line third line"));
        }