public void CommandWithRequiredParam_ArgumentNotProvided_ExceptionThrown() { const int argument1 = 0; CommandWithRequiredParam command = new CommandWithRequiredParam(); string expected = "command --param1 " + argument1.ToString(); SyntaxBuilder target = new SyntaxBuilder(command); string actual = target.ToString(); Assert.AreEqual(expected, actual); }
public void CommandWithRequiredParam_ArgumentProvided_BuildsCorrectly() { const int argument1 = 0; CommandWithRequiredParam command = new CommandWithRequiredParam { Parameter1 = argument1, }; string expected = "command --param1 " + argument1.ToString(); SyntaxBuilder target = new SyntaxBuilder(command); string actual = target.ToString(); Assert.AreEqual(expected, actual); }