-
Notifications
You must be signed in to change notification settings - Fork 339
Open
Labels
Description
[TestMethod]
public void TestCommandLineSplitter()
{
VerifyCommandLineSplitter("", []);
VerifyCommandLineSplitter("/testadapterpath:\"c:\\Path\"", [@"/testadapterpath:c:\Path"]);
VerifyCommandLineSplitter("/testadapterpath:\"c:\\Path\" /logger:\"trx\"", [@"/testadapterpath:c:\Path", "/logger:trx"]);
VerifyCommandLineSplitter("/testadapterpath:\"c:\\Path\" /logger:\"trx\" /diag:\"log.txt\"", [@"/testadapterpath:c:\Path", "/logger:trx", "/diag:log.txt"]);
// New test case that fails!
VerifyCommandLineSplitter("/Tests:\"Test(\\\"iCT 256\\\")\"", ["/Tests:\"Test(\\\"iCT 256\\\")\""]);
}
last touched in #1196 8 years ago when fixing some mysterious other edge cases.
Only affects answer files. Where it fails to interpret \" as the end of the quoted string (it always considers " as isQuoted != isQuoted, and so if any space follows the space will jump out of the inner loop acting as end of token.
Used by TIA and test retry in AzureDevOps.