Crabwise.CommandWrap.SyntaxBuilder.ToString C# (CSharp) Method

ToString() public method

Gets the complete syntax for the command.
The string returned by this method is equivalent to what would be entered in a command prompt.
public ToString ( ) : string
return string
        public override string ToString()
        {
            return (this.FileName + " " + this.Arguments).Trim();
        }

Usage Example

        public void CommandWithTwoParams_NoArgumentProvided_BuildsCorrectly()
        {
            CommandWithTwoParams command = new CommandWithTwoParams();

            string expected = "command";
            SyntaxBuilder target = new SyntaxBuilder(command);
            string actual = target.ToString();

            Assert.AreEqual(expected, actual);
        }
All Usage Examples Of Crabwise.CommandWrap.SyntaxBuilder::ToString