public void TrimCommentsTest()
{
var args = new object[] {
new string[] { "a", "a" },
new string[] { "a b c #d", "a b c " },
new string[] { "-string abcdef ghijklmno pqrstuvwxyz #-double 3.14159265359 -int 8", "-string abcdef ghijklmno pqrstuvwxyz " },
new string[] { "a b c \"#d\" e", "a b c \"#d\" e" },
new string[] { " -jobName Test01 #use \"Test01\" as a Job Name", " -jobName Test01 " },
new string[] { " -outputFolder C:\\sandbox\\ACS\\ #save the data to a directory", " -outputFolder C:\\sandbox\\ACS\\ " },
};
foreach (string[] pair in args)
{
string testOutput = Utilities.TrimComments(pair[0], '#');
Assert.AreEqual(pair[1], testOutput, "Expected output failed for TrimComments!");
}
}