CommandLineTests.vb (722)
287Dim cmd = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/t:library", "/nowarn", "/warnaserror-", src})
290cmd = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/t:library", "/nowarn", "/warnaserror", src})
293cmd = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/t:library", "/nowarn", "/warnaserror+", src})
296cmd = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/t:library", "/warnaserror-", "/nowarn", src})
299cmd = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/t:library", "/warnaserror", "/nowarn", src})
302cmd = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/t:library", "/warnaserror+", "/nowarn", src})
335Dim vbc As New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/target:exe", "/rootnamespace:""test""", "/main:""test.Module1""", src})
361Dim compiler As New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/target:exe", "/main:""Module1""", file})
435Dim args = DefaultParse({"/rootnamespace:Test", "a.vb"}, _baseDirectory)
439args = DefaultParse({"/main:Test", "a.vb"}, _baseDirectory)
443args = DefaultParse({"/main:""Test""", "a.vb"}, _baseDirectory)
447args = DefaultParse({"/rootnamespace:""Test""", "a.vb"}, _baseDirectory)
451args = DefaultParse({"/rootnamespace:""test""", "/main:""test.Module1""", "a.vb"}, _baseDirectory)
457args = DefaultParse({"/rootnamespace:""решения""", "/main:""решения.Module1""", "a.vb"}, _baseDirectory)
475Dim cmd = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/t:library", "/nowarn:-1", src})
481cmd = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/t:library", "/nowarn:-12345678901234567890", src})
487cmd = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/t:library", "/nowarn:-1234567890123456789", src})
500Dim cmd = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/preferreduilang:en"})
515Dim cmd = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/t:library", src})
533Dim cmd = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo+", "/t:library", src})
551Dim cmd = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/t:library", "/preferreduilang:en", src})
592Dim cmd = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo-", "/preferreduilang:en", "/t:library", src})
759Dim cmd = New MockVisualBasicCompiler(rsp, _baseDirectory, {"b.vb"})
764Path.Combine(_baseDirectory, "a.vb"),
765Path.Combine(_baseDirectory, "b.vb")
781Dim cmd = New MockVisualBasicCompiler(rsp, _baseDirectory, {"b.vb"})
797Dim args = DefaultParse({"/imports: System ,System.Xml ,System.Linq", "a.vb"}, _baseDirectory)
801args = DefaultParse({"/impORt: System,,,,,", "/IMPORTs:,,,Microsoft.VisualBasic,,System.IO", "a.vb"}, _baseDirectory)
805args = DefaultParse({"/impORt: System, ,, ,,", "a.vb"}, _baseDirectory)
809args = DefaultParse({"/impORt:", "a.vb"}, _baseDirectory)
812args = DefaultParse({"/impORts:", "a.vb"}, _baseDirectory)
815args = DefaultParse({"/imports", "a.vb"}, _baseDirectory)
818args = DefaultParse({"/imports+", "a.vb"}, _baseDirectory)
826args = DefaultParse({}, _baseDirectory)
830args = DefaultParse({"/i"}, _baseDirectory)
835args = InteractiveParse({}, _baseDirectory)
839args = InteractiveParse({"a.vb"}, _baseDirectory)
843args = InteractiveParse({"/i", "a.vb"}, _baseDirectory)
847args = InteractiveParse({"/i+", "a.vb"}, _baseDirectory)
851args = InteractiveParse({"/i+ /i-", "a.vb"}, _baseDirectory)
856args = InteractiveParse({"/" + flag + ":arg"}, _baseDirectory)
865args = DefaultParse({}, _baseDirectory)
868args = DefaultParse({"/instrument", "a.vb"}, _baseDirectory)
872args = DefaultParse({"/instrument:""""", "a.vb"}, _baseDirectory)
876args = DefaultParse({"/instrument:", "a.vb"}, _baseDirectory)
880args = DefaultParse({"/instrument:", "Test.Flag.Name", "a.vb"}, _baseDirectory)
884args = DefaultParse({"/instrument:InvalidOption", "a.vb"}, _baseDirectory)
888args = DefaultParse({"/instrument:None", "a.vb"}, _baseDirectory)
892args = DefaultParse({"/instrument:""TestCoverage,InvalidOption""", "a.vb"}, _baseDirectory)
896args = DefaultParse({"/instrument:TestCoverage", "a.vb"}, _baseDirectory)
900args = DefaultParse({"/instrument:""TestCoverage""", "a.vb"}, _baseDirectory)
904args = DefaultParse({"/instrument:""TESTCOVERAGE""", "a.vb"}, _baseDirectory)
908args = DefaultParse({"/instrument:TestCoverage,TestCoverage", "a.vb"}, _baseDirectory)
912args = DefaultParse({"/instrument:TestCoverage", "/instrument:TestCoverage", "a.vb"}, _baseDirectory)
930Dim cmd = New MockVbi(rsp, _baseDirectory, {"b.vbx"})
949Dim parsedArgs = DefaultParse(args, _baseDirectory)
957parsedArgs = DefaultParse(args, _baseDirectory)
963parsedArgs = DefaultParse(args, _baseDirectory)
970parsedArgs = DefaultParse(args, _baseDirectory)
976parsedArgs = DefaultParse(args, _baseDirectory)
982parsedArgs = DefaultParse(args, _baseDirectory)
992Dim parsedArgs = DefaultParse({"/win32icon:" + tmpFileName}, _baseDirectory)
1121Dim parsedArgs = DefaultParse({"/win32resource", "a.vb"}, _baseDirectory)
1124parsedArgs = DefaultParse({"/win32resource+", "a.vb"}, _baseDirectory)
1127parsedArgs = DefaultParse({"/win32resource-", "a.vb"}, _baseDirectory)
1130parsedArgs = DefaultParse({"/win32icon", "a.vb"}, _baseDirectory)
1133parsedArgs = DefaultParse({"/win32icon+", "a.vb"}, _baseDirectory)
1136parsedArgs = DefaultParse({"/win32icon-", "a.vb"}, _baseDirectory)
1139parsedArgs = DefaultParse({"/win32manifest", "a.vb"}, _baseDirectory)
1142parsedArgs = DefaultParse({"/win32manifest+", "a.vb"}, _baseDirectory)
1145parsedArgs = DefaultParse({"/win32manifest-", "a.vb"}, _baseDirectory)
1151Dim parsedArgs = DefaultParse(args.Concat({"Test.vb"}), _baseDirectory)
1165desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", "\somepath\someFile.goo.bar", _baseDirectory, diags, embedded:=False)
1172desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", "\somepath\someFile.goo.bar,someName", _baseDirectory, diags, embedded:=False)
1179desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", "\somepath\someFile.goo.bar,someName,public", _baseDirectory, diags, embedded:=False)
1187desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", "\somepath\someFile.goo.bar,,private", _baseDirectory, diags, embedded:=False)
1195desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", "\somepath\someFile.goo.bar,,""private""", _baseDirectory, diags, embedded:=False)
1203desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", ",,\somepath\someFile.goo.bar,,private", _baseDirectory, diags, embedded:=False)
1211desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", ", ,\somepath\someFile.goo.bar,,private", _baseDirectory, diags, embedded:=False)
1217desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", "\somepath\someFile.goo.bar,,private", _baseDirectory, diags, embedded:=False)
1225desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", "\somepath\someFile.goo.bar,,private, ,", _baseDirectory, diags, embedded:=False)
1232desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", "\somepath\someFile.goo.bar,someName,publi", _baseDirectory, diags, embedded:=False)
1237desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", "D:rive\relative\path,someName,public", _baseDirectory, diags, embedded:=False)
1242desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", "inva\l*d?path,someName,public", _baseDirectory, diags, embedded:=False)
1247desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", Nothing, _baseDirectory, diags, embedded:=False)
1252desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", "", _baseDirectory, diags, embedded:=False)
1257desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", " ", _baseDirectory, diags, embedded:=False)
1262desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", " , ", _baseDirectory, diags, embedded:=False)
1267desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", "path, ", _baseDirectory, diags, embedded:=False)
1274desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", " ,name", _baseDirectory, diags, embedded:=False)
1279desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", " , , ", _baseDirectory, diags, embedded:=False)
1284desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", "path, , ", _baseDirectory, diags, embedded:=False)
1289desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", " ,name, ", _baseDirectory, diags, embedded:=False)
1294desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", " , ,private", _baseDirectory, diags, embedded:=False)
1299desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", "path,name,", _baseDirectory, diags, embedded:=False)
1306desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", "path,name,,", _baseDirectory, diags, embedded:=False)
1313desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", "path,name, ", _baseDirectory, diags, embedded:=False)
1318desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", "path, ,private", _baseDirectory, diags, embedded:=False)
1325desc = VisualBasicCommandLineParser.ParseResourceDescription("resource", " ,name,private", _baseDirectory, diags, embedded:=False)
1332desc = VisualBasicCommandLineParser.ParseResourceDescription("", String.Format("{0},e,private", longI), _baseDirectory, diags, embedded:=False)
1342parsedArgs = DefaultParse({"/resource:a", "a.vb"}, _baseDirectory)
1349parsedArgs = DefaultParse({"/res:b", "a.vb"}, _baseDirectory)
1356parsedArgs = DefaultParse({"/linkresource:c", "a.vb"}, _baseDirectory)
1363parsedArgs = DefaultParse({"/linkres:d", "a.vb"}, _baseDirectory)
1373Dim parsedArgs = DefaultParse({"/resource:", "a.vb"}, _baseDirectory)
1376parsedArgs = DefaultParse({"/resource: ", "a.vb"}, _baseDirectory)
1379parsedArgs = DefaultParse({"/resource", "a.vb"}, _baseDirectory)
1382parsedArgs = DefaultParse({"/RES+", "a.vb"}, _baseDirectory)
1385parsedArgs = DefaultParse({"/res-:", "a.vb"}, _baseDirectory)
1388parsedArgs = DefaultParse({"/linkresource:", "a.vb"}, _baseDirectory)
1391parsedArgs = DefaultParse({"/linkresource: ", "a.vb"}, _baseDirectory)
1394parsedArgs = DefaultParse({"/linkresource", "a.vb"}, _baseDirectory)
1397parsedArgs = DefaultParse({"/linkRES+", "a.vb"}, _baseDirectory)
1400parsedArgs = DefaultParse({"/linkres-:", "a.vb"}, _baseDirectory)
1406Dim parsedArgs = DefaultParse({"/win32manifest:blah", "/target:module", "a.cs"}, _baseDirectory)
1416Dim parsedArgs = InteractiveParse({"a + b"}, _baseDirectory)
1420parsedArgs = InteractiveParse({"a + b; c"}, _baseDirectory)
1424parsedArgs = InteractiveParse({"/help"}, _baseDirectory)
1428parsedArgs = InteractiveParse({"/version"}, _baseDirectory)
1432parsedArgs = InteractiveParse({"/version", "c"}, _baseDirectory)
1436parsedArgs = InteractiveParse({"/version:something"}, _baseDirectory)
1439parsedArgs = InteractiveParse({"/?"}, _baseDirectory)
1443parsedArgs = InteractiveParse({"@dd"}, _baseDirectory)
1447parsedArgs = InteractiveParse({"c /define:DEBUG"}, _baseDirectory)
1451parsedArgs = InteractiveParse({"\\"}, _baseDirectory)
1457parsedArgs = InteractiveParse({"""/r d.dll"""}, _baseDirectory)
1461parsedArgs = InteractiveParse({"/r: d.dll"}, _baseDirectory)
1469Dim parsedArgs = DefaultParse({"/langversion:9", "a.VB"}, _baseDirectory)
1473parsedArgs = DefaultParse({"/langVERSION:9.0", "a.vb"}, _baseDirectory)
1477parsedArgs = DefaultParse({"/langVERSION:10", "a.vb"}, _baseDirectory)
1481parsedArgs = DefaultParse({"/langVERSION:10.0", "a.vb"}, _baseDirectory)
1485parsedArgs = DefaultParse({"/langVERSION:11", "a.vb"}, _baseDirectory)
1489parsedArgs = DefaultParse({"/langVERSION:11.0", "a.vb"}, _baseDirectory)
1493parsedArgs = DefaultParse({"/langVERSION:12", "a.vb"}, _baseDirectory)
1497parsedArgs = DefaultParse({"/langVERSION:12.0", "a.vb"}, _baseDirectory)
1501parsedArgs = DefaultParse({"/langVERSION:14", "a.vb"}, _baseDirectory)
1505parsedArgs = DefaultParse({"/langVERSION:14.0", "a.vb"}, _baseDirectory)
1509parsedArgs = DefaultParse({"/langVERSION:15", "a.vb"}, _baseDirectory)
1513parsedArgs = DefaultParse({"/langVERSION:15.0", "a.vb"}, _baseDirectory)
1517parsedArgs = DefaultParse({"/langVERSION:15.3", "a.vb"}, _baseDirectory)
1521parsedArgs = DefaultParse({"/langVERSION:15.5", "a.vb"}, _baseDirectory)
1525parsedArgs = DefaultParse({"/langVERSION:16", "a.vb"}, _baseDirectory)
1529parsedArgs = DefaultParse({"/langVERSION:16.9", "a.vb"}, _baseDirectory)
1533parsedArgs = DefaultParse({"/langVERSION:17.13", "a.vb"}, _baseDirectory)
1540parsedArgs = DefaultParse({"/langVERSION:default", "a.vb"}, _baseDirectory)
1545parsedArgs = DefaultParse({"/langVERSION:latest", "a.vb"}, _baseDirectory)
1551parsedArgs = DefaultParse({"a.vb"}, _baseDirectory)
1556parsedArgs = DefaultParse({"/langVERSION:10", "/langVERSION:9.0", "a.vb"}, _baseDirectory)
1561parsedArgs = DefaultParse({"/langVERSION", "a.vb"}, _baseDirectory)
1565parsedArgs = DefaultParse({"/langVERSION+", "a.vb"}, _baseDirectory)
1569parsedArgs = DefaultParse({"/langVERSION:", "a.vb"}, _baseDirectory)
1573parsedArgs = DefaultParse({"/langVERSION:8", "a.vb"}, _baseDirectory)
1577parsedArgs = DefaultParse({"/langVERSION:" & (LanguageVersion.VisualBasic12 + 1), "a.vb"}, _baseDirectory)
1584Dim parsedArgs = DefaultParse({"/delaysign", "a.cs"}, _baseDirectory)
1589parsedArgs = DefaultParse({"/delaysign+", "a.cs"}, _baseDirectory)
1594parsedArgs = DefaultParse({"/DELAYsign-", "a.cs"}, _baseDirectory)
1599parsedArgs = DefaultParse({"/delaysign:-", "a.cs"}, _baseDirectory)
1602parsedArgs = InteractiveParse({"/d:a=1"}, _baseDirectory) ' test default value
1610Dim parsedArgs = DefaultParse({"/verbose", "a.vb"}, _baseDirectory)
1614parsedArgs = DefaultParse({"/verbose+", "a.vb"}, _baseDirectory)
1618parsedArgs = DefaultParse({"/verbose-", "a.vb"}, _baseDirectory)
1622parsedArgs = DefaultParse({"/VERBOSE:-", "a.vb"}, _baseDirectory)
1625parsedArgs = DefaultParse({"/verbose-:", "a.vb"}, _baseDirectory)
1628parsedArgs = DefaultParse({"/verbose+:", "a.vb"}, _baseDirectory)
1631parsedArgs = DefaultParse({"/verbOSE:", "a.vb"}, _baseDirectory)
1634parsedArgs = InteractiveParse({"/d:a=1"}, _baseDirectory) ' test default value
1638parsedArgs = DefaultParse({"/quiet", "/verbose", "a.vb"}, _baseDirectory)
1642parsedArgs = DefaultParse({"/quiet", "/verbose-", "a.vb"}, _baseDirectory)
1650Dim parsedArgs = DefaultParse({"/quiet", "a.vb"}, _baseDirectory)
1654parsedArgs = DefaultParse({"/quiet+", "a.vb"}, _baseDirectory)
1658parsedArgs = DefaultParse({"/quiet-", "a.vb"}, _baseDirectory)
1662parsedArgs = DefaultParse({"/QUIET:-", "a.vb"}, _baseDirectory)
1665parsedArgs = DefaultParse({"/quiet-:", "a.vb"}, _baseDirectory)
1668parsedArgs = DefaultParse({"/quiet+:", "a.vb"}, _baseDirectory)
1671parsedArgs = DefaultParse({"/quiET:", "a.vb"}, _baseDirectory)
1674parsedArgs = InteractiveParse({"/d:a=1"}, _baseDirectory) ' test default value
1678parsedArgs = DefaultParse({"/verbose", "/quiet", "a.vb"}, _baseDirectory)
1682parsedArgs = DefaultParse({"/verbose", "/quiet-", "a.vb"}, _baseDirectory)
1689Dim parsedArgs = DefaultParse({"/optimize", "a.vb"}, _baseDirectory)
1693parsedArgs = DefaultParse({"a.vb"}, _baseDirectory)
1697parsedArgs = DefaultParse({"/OPTIMIZE+", "a.vb"}, _baseDirectory)
1701parsedArgs = DefaultParse({"/optimize-", "a.vb"}, _baseDirectory)
1705parsedArgs = DefaultParse({"/optimize-", "/optimize+", "a.vb"}, _baseDirectory)
1709parsedArgs = DefaultParse({"/OPTIMIZE:", "a.cs"}, _baseDirectory)
1712parsedArgs = DefaultParse({"/OPTIMIZE+:", "a.cs"}, _baseDirectory)
1715parsedArgs = DefaultParse({"/optimize-:", "a.cs"}, _baseDirectory)
1722Dim ParsedArgs = DefaultParse({"a.vb"}, _baseDirectory)
1726ParsedArgs = DefaultParse({"/deterministic+", "a.vb"}, _baseDirectory)
1730ParsedArgs = DefaultParse({"/deterministic", "a.vb"}, _baseDirectory)
1734ParsedArgs = DefaultParse({"/DETERMINISTIC+", "a.vb"}, _baseDirectory)
1738ParsedArgs = DefaultParse({"/deterministic-", "a.vb"}, _baseDirectory)
1746Dim parsedArgs = DefaultParse({"/parallel", "a.vb"}, _baseDirectory)
1750parsedArgs = DefaultParse({"/p", "a.vb"}, _baseDirectory)
1754parsedArgs = DefaultParse({"a.vb"}, _baseDirectory)
1758parsedArgs = DefaultParse({"/PARALLEL+", "a.vb"}, _baseDirectory)
1762parsedArgs = DefaultParse({"/PARALLEL-", "a.vb"}, _baseDirectory)
1766parsedArgs = DefaultParse({"/PArallel-", "/PArallel+", "a.vb"}, _baseDirectory)
1770parsedArgs = DefaultParse({"/parallel:", "a.vb"}, _baseDirectory)
1773parsedArgs = DefaultParse({"/parallel+:", "a.vb"}, _baseDirectory)
1776parsedArgs = DefaultParse({"/parallel-:", "a.vb"}, _baseDirectory)
1779parsedArgs = DefaultParse({"/P+", "a.vb"}, _baseDirectory)
1783parsedArgs = DefaultParse({"/P-", "a.vb"}, _baseDirectory)
1787parsedArgs = DefaultParse({"/P-", "/P+", "a.vb"}, _baseDirectory)
1791parsedArgs = DefaultParse({"/p:", "a.vb"}, _baseDirectory)
1794parsedArgs = DefaultParse({"/p+:", "a.vb"}, _baseDirectory)
1797parsedArgs = DefaultParse({"/p-:", "a.vb"}, _baseDirectory)
1803Dim parsedArgs = DefaultParse({"/subsystemversion:4.0", "a.vb"}, _baseDirectory)
1809parsedArgs = DefaultParse({"/subsystemversion:0.0", "a.vb"}, _baseDirectory)
1813parsedArgs = DefaultParse({"/subsystemversion:0", "a.vb"}, _baseDirectory)
1817parsedArgs = DefaultParse({"/subsystemversion:3.99", "a.vb"}, _baseDirectory)
1821parsedArgs = DefaultParse({"/subsystemversion:4.0", "/subsystemversion:5.333", "a.vb"}, _baseDirectory)
1825parsedArgs = DefaultParse({"/subsystemversion:", "a.vb"}, _baseDirectory)
1828parsedArgs = DefaultParse({"/subsystemversion", "a.vb"}, _baseDirectory)
1831parsedArgs = DefaultParse({"/subsystemversion-", "a.vb"}, _baseDirectory)
1834parsedArgs = DefaultParse({"/subsystemversion: ", "a.vb"}, _baseDirectory)
1837parsedArgs = DefaultParse({"/subsystemversion: 4.1", "a.vb"}, _baseDirectory)
1840parsedArgs = DefaultParse({"/subsystemversion:4 .0", "a.vb"}, _baseDirectory)
1843parsedArgs = DefaultParse({"/subsystemversion:4. 0", "a.vb"}, _baseDirectory)
1846parsedArgs = DefaultParse({"/subsystemversion:.", "a.vb"}, _baseDirectory)
1849parsedArgs = DefaultParse({"/subsystemversion:4.", "a.vb"}, _baseDirectory)
1852parsedArgs = DefaultParse({"/subsystemversion:.0", "a.vb"}, _baseDirectory)
1855parsedArgs = DefaultParse({"/subsystemversion:4.2 ", "a.vb"}, _baseDirectory)
1858parsedArgs = DefaultParse({"/subsystemversion:4.65536", "a.vb"}, _baseDirectory)
1861parsedArgs = DefaultParse({"/subsystemversion:65536.0", "a.vb"}, _baseDirectory)
1864parsedArgs = DefaultParse({"/subsystemversion:-4.0", "a.vb"}, _baseDirectory)
1872Dim parsedArgs = DefaultParse({"/CodePage:1200", "a.vb"}, _baseDirectory)
1876parsedArgs = DefaultParse({"/CodePage:1200", "/CodePage:65001", "a.vb"}, _baseDirectory)
1881parsedArgs = DefaultParse({"/codepage:0", "a.vb"}, _baseDirectory)
1884parsedArgs = DefaultParse({"/codepage:abc", "a.vb"}, _baseDirectory)
1887parsedArgs = DefaultParse({"/codepage:-5", "a.vb"}, _baseDirectory)
1890parsedArgs = DefaultParse({"/codepage: ", "a.vb"}, _baseDirectory)
1893parsedArgs = DefaultParse({"/codepage:", "a.vb"}, _baseDirectory)
1896parsedArgs = DefaultParse({"/codepage+", "a.vb"}, _baseDirectory)
1899parsedArgs = DefaultParse({"/codepage", "a.vb"}, _baseDirectory)
1907parsedArgs = DefaultParse({"/checksumAlgorithm:sHa1", "a.cs"}, _baseDirectory)
1912parsedArgs = DefaultParse({"/checksumAlgorithm:sha256", "a.cs"}, _baseDirectory)
1917parsedArgs = DefaultParse({"a.cs"}, _baseDirectory)
1923parsedArgs = DefaultParse({"/checksumAlgorithm:256", "a.cs"}, _baseDirectory)
1926parsedArgs = DefaultParse({"/checksumAlgorithm:sha-1", "a.cs"}, _baseDirectory)
1929parsedArgs = DefaultParse({"/checksumAlgorithm:sha", "a.cs"}, _baseDirectory)
1932parsedArgs = DefaultParse({"/checksumAlgorithm: ", "a.cs"}, _baseDirectory)
1935parsedArgs = DefaultParse({"/checksumAlgorithm:", "a.cs"}, _baseDirectory)
1938parsedArgs = DefaultParse({"/checksumAlgorithm", "a.cs"}, _baseDirectory)
1941parsedArgs = DefaultParse({"/checksumAlgorithm+", "a.cs"}, _baseDirectory)
1947Dim parsedArgs = DefaultParse({"/main:A.B.C", "a.vb"}, _baseDirectory)
1952parsedArgs = DefaultParse({"/Main:A.B.C", "/M:X.Y.Z", "a.vb"}, _baseDirectory)
1956parsedArgs = DefaultParse({"/MAIN: ", "a.vb"}, _baseDirectory)
1961parsedArgs = DefaultParse({"/maiN:", "a.vb"}, _baseDirectory)
1964parsedArgs = DefaultParse({"/m", "a.vb"}, _baseDirectory)
1967parsedArgs = DefaultParse({"/m+", "a.vb"}, _baseDirectory)
1971parsedArgs = DefaultParse({"/MAIN:XYZ", "/t:library", "a.vb"}, _baseDirectory)
1976parsedArgs = DefaultParse({"/MAIN:XYZ", "/t:module", "a.vb"}, _baseDirectory)
1983Dim parsedArgs = InteractiveParse({"/optioncompare"}, _baseDirectory)
1988parsedArgs = InteractiveParse({"/optioncompare:text", "/optioncompare"}, _baseDirectory)
1993parsedArgs = InteractiveParse({"/opTioncompare:Text", "/optioncomparE:bINARY"}, _baseDirectory)
1997parsedArgs = InteractiveParse({"/d:a=1"}, _baseDirectory) ' test default value
2004Dim parsedArgs = InteractiveParse({"/optiONexplicit"}, _baseDirectory)
2008parsedArgs = InteractiveParse({"/optiONexplicit:+"}, _baseDirectory)
2013parsedArgs = InteractiveParse({"/optiONexplicit-:"}, _baseDirectory)
2017parsedArgs = InteractiveParse({"/optionexplicit+", "/optiONexplicit-:"}, _baseDirectory)
2021parsedArgs = InteractiveParse({"/optionexplicit+", "/optiONexplicit-", "/optiONexpliCIT+"}, _baseDirectory)
2025parsedArgs = InteractiveParse({"/d:a=1"}, _baseDirectory) ' test default value
2032Dim parsedArgs = InteractiveParse({"/optiONinfer"}, _baseDirectory)
2036parsedArgs = InteractiveParse({"/OptionInfer:+"}, _baseDirectory)
2039parsedArgs = InteractiveParse({"/OPTIONinfer-:"}, _baseDirectory)
2042parsedArgs = InteractiveParse({"/optioninfer+", "/optioninFER-:"}, _baseDirectory)
2045parsedArgs = InteractiveParse({"/optioninfer+", "/optioninfeR-", "/OptionInfer+"}, _baseDirectory)
2049parsedArgs = InteractiveParse({"/d:a=1"}, _baseDirectory) ' test default value
2195Dim parsedArgs = DefaultParse(args, _baseDirectory)
2210Dim parsedArgs = DefaultParse({"/optionStrict", "a.vb"}, _baseDirectory)
2214parsedArgs = DefaultParse({"/optionStrict+", "a.vb"}, _baseDirectory)
2218parsedArgs = DefaultParse({"/optionStrict-", "a.vb"}, _baseDirectory)
2222parsedArgs = DefaultParse({"/OptionStrict:cusTom", "a.vb"}, _baseDirectory)
2226parsedArgs = DefaultParse({"/OptionStrict:cusTom", "/optionstrict-", "a.vb"}, _baseDirectory)
2230parsedArgs = DefaultParse({"/optionstrict-", "/OptionStrict:cusTom", "a.vb"}, _baseDirectory)
2234parsedArgs = DefaultParse({"/optionstrict:", "/OptionStrict:cusTom", "a.vb"}, _baseDirectory)
2237parsedArgs = DefaultParse({"/optionstrict:xxx", "a.vb"}, _baseDirectory)
2246Dim parsedArgs = DefaultParse({"/rootnamespace:One.Two.Three", "a.vb"}, _baseDirectory)
2250parsedArgs = DefaultParse({"/rootnamespace:One Two Three", "/rootnamespace:One.Two.Three", "a.vb"}, _baseDirectory)
2254parsedArgs = DefaultParse({"/rootnamespace:""One.Two.Three""", "a.vb"}, _baseDirectory)
2258parsedArgs = DefaultParse({"/rootnamespace", "a.vb"}, _baseDirectory)
2261parsedArgs = DefaultParse({"/rootnamespace:", "a.vb"}, _baseDirectory)
2264parsedArgs = DefaultParse({"/rootnamespace+", "a.vb"}, _baseDirectory)
2267parsedArgs = DefaultParse({"/rootnamespace-:", "a.vb"}, _baseDirectory)
2270parsedArgs = DefaultParse({"/rootnamespace:+", "a.vb"}, _baseDirectory)
2273parsedArgs = DefaultParse({"/rootnamespace: ", "a.vb"}, _baseDirectory)
2276parsedArgs = DefaultParse({"/rootnamespace: A.B.C", "a.vb"}, _baseDirectory)
2279parsedArgs = DefaultParse({"/rootnamespace:[abcdef", "a.vb"}, _baseDirectory)
2282parsedArgs = DefaultParse({"/rootnamespace:abcdef]", "a.vb"}, _baseDirectory)
2285parsedArgs = DefaultParse({"/rootnamespace:[[abcdef]]", "a.vb"}, _baseDirectory)
2288parsedArgs = DefaultParse({"/rootnamespace:[global]", "a.vb"}, _baseDirectory)
2292parsedArgs = DefaultParse({"/rootnamespace:goo.[global].bar", "a.vb"}, _baseDirectory)
2296parsedArgs = DefaultParse({"/rootnamespace:goo.[bar]", "a.vb"}, _baseDirectory)
2300parsedArgs = DefaultParse({"/rootnamespace:goo$", "a.vb"}, _baseDirectory)
2303parsedArgs = DefaultParse({"/rootnamespace:I(", "a.vb"}, _baseDirectory)
2306parsedArgs = DefaultParse({"/rootnamespace:_", "a.vb"}, _baseDirectory)
2309parsedArgs = DefaultParse({"/rootnamespace:[_]", "a.vb"}, _baseDirectory)
2312parsedArgs = DefaultParse({"/rootnamespace:__.___", "a.vb"}, _baseDirectory)
2316parsedArgs = DefaultParse({"/rootnamespace:[", "a.vb"}, _baseDirectory)
2319parsedArgs = DefaultParse({"/rootnamespace:]", "a.vb"}, _baseDirectory)
2322parsedArgs = DefaultParse({"/rootnamespace:[]", "a.vb"}, _baseDirectory)
2328Dim parsedArgs = DefaultParse({"/link:a", "/link:b,,,,c", "a.vb"}, _baseDirectory)
2335parsedArgs = DefaultParse({"/Link: ,,, b ,,", "a.vb"}, _baseDirectory)
2342parsedArgs = DefaultParse({"/l:", "a.vb"}, _baseDirectory)
2345parsedArgs = DefaultParse({"/L", "a.vb"}, _baseDirectory)
2348parsedArgs = DefaultParse({"/l+", "a.vb"}, _baseDirectory)
2351parsedArgs = DefaultParse({"/link-:", "a.vb"}, _baseDirectory)
2370Dim parsedArgs = DefaultParse({"/recurse:" & dir.ToString() & "\*.vb"}, _baseDirectory)
2378parsedArgs = DefaultParse({"/reCURSE:", "a.vb"}, _baseDirectory)
2381parsedArgs = DefaultParse({"/RECURSE: ", "a.vb"}, _baseDirectory)
2384parsedArgs = DefaultParse({"/recurse", "a.vb"}, _baseDirectory)
2387parsedArgs = DefaultParse({"/recurse+", "a.vb"}, _baseDirectory)
2390parsedArgs = DefaultParse({"/recurse-:", "a.vb"}, _baseDirectory)
2477Dim parsedArgs = DefaultParse({"/nostdlib", "/vbruntime-", "/r:a", "/REFERENCE:b,,,,c", "a.vb"}, _baseDirectory)
2484parsedArgs = DefaultParse({"/Reference: ,,, b ,,", "/nostdlib", "/vbruntime-", "a.vb"}, _baseDirectory)
2491parsedArgs = DefaultParse({"/r:", "a.vb"}, _baseDirectory)
2494parsedArgs = DefaultParse({"/R", "a.vb"}, _baseDirectory)
2497parsedArgs = DefaultParse({"/reference+", "a.vb"}, _baseDirectory)
2500parsedArgs = DefaultParse({"/reference-:", "a.vb"}, _baseDirectory)
2534Dim parsedArgs = DefaultParse({"/r:unresolved", "a.vb"}, _baseDirectory)
2536Dim metadataResolver = New SimpleMetadataResolver(_baseDirectory)
2550Dim parsedArgs = DefaultParse({"a.vb"}, _baseDirectory)
2552Dim metadataResolver = New SimpleMetadataResolver(_baseDirectory)
2566Dim parsedArgs = DefaultParse({"/a:goo.dll", "a.vb"}, _baseDirectory)
2571parsedArgs = DefaultParse({"/analyzer:goo.dll", "a.vb"}, _baseDirectory)
2576parsedArgs = DefaultParse({"/analyzer:""goo.dll""", "a.vb"}, _baseDirectory)
2581parsedArgs = DefaultParse({"/a:goo.dll,bar.dll", "a.vb"}, _baseDirectory)
2587parsedArgs = DefaultParse({"/a:", "a.vb"}, _baseDirectory)
2590parsedArgs = DefaultParse({"/a", "a.vb"}, _baseDirectory)
2838Dim parsedArgs = DefaultParse(New String() {"/ruleset:" + file.Path, "a.cs"}, _baseDirectory)
2863Dim parsedArgs = DefaultParse(New String() {"/ruleset:" + """" + file.Path + """", "a.cs"}, _baseDirectory)
2870Dim parsedArgs = DefaultParse(New String() {"/ruleset", "a.cs"}, _baseDirectory)
2875parsedArgs = DefaultParse(New String() {"/ruleset", "a.cs"}, _baseDirectory)
2880parsedArgs = DefaultParse(New String() {"/ruleset:blah", "a.cs"}, _baseDirectory)
2885parsedArgs = DefaultParse(New String() {"/ruleset:blah;blah.ruleset", "a.cs"}, _baseDirectory)
2891parsedArgs = DefaultParse(New String() {"/ruleset:" + file.Path, "a.cs"}, _baseDirectory)
2908Dim parsedArgs = DefaultParse({"/target:exe", "a.vb"}, _baseDirectory)
2912parsedArgs = DefaultParse({"/t:module", "a.vb"}, _baseDirectory)
2916parsedArgs = DefaultParse({"/target:library", "a.vb"}, _baseDirectory)
2920parsedArgs = DefaultParse({"/TARGET:winexe", "a.vb"}, _baseDirectory)
2924parsedArgs = DefaultParse({"/target:winmdobj", "a.vb"}, _baseDirectory)
2928parsedArgs = DefaultParse({"/target:appcontainerexe", "a.vb"}, _baseDirectory)
2932parsedArgs = DefaultParse({"/target:winexe", "/T:exe", "/target:module", "a.vb"}, _baseDirectory)
2936parsedArgs = DefaultParse({"/t", "a.vb"}, _baseDirectory)
2939parsedArgs = DefaultParse({"/target:", "a.vb"}, _baseDirectory)
2942parsedArgs = DefaultParse({"/target:xyz", "a.vb"}, _baseDirectory)
2945parsedArgs = DefaultParse({"/T+", "a.vb"}, _baseDirectory)
2948parsedArgs = DefaultParse({"/TARGET-:", "a.vb"}, _baseDirectory)
2954Dim parsedArgs = DefaultParse({"/target:exe"}, _baseDirectory)
2958parsedArgs = DefaultParse({"/t:module"}, _baseDirectory)
2962parsedArgs = DefaultParse({"/target:library"}, _baseDirectory)
2966parsedArgs = DefaultParse({"/TARGET:winexe"}, _baseDirectory)
2970parsedArgs = DefaultParse({"/target:winmdobj"}, _baseDirectory)
2974parsedArgs = DefaultParse({"/target:appcontainerexe"}, _baseDirectory)
2978parsedArgs = DefaultParse({"/target:winexe", "/T:exe", "/target:module"}, _baseDirectory)
2982parsedArgs = DefaultParse({"/t"}, _baseDirectory)
2987parsedArgs = DefaultParse({"/target:"}, _baseDirectory)
2992parsedArgs = DefaultParse({"/target:xyz"}, _baseDirectory)
2997parsedArgs = DefaultParse({"/T+"}, _baseDirectory)
3002parsedArgs = DefaultParse({"/TARGET-:"}, _baseDirectory)
3010Dim parsedArgs = DefaultParse({"/utf8output", "a.vb"}, _baseDirectory)
3014parsedArgs = DefaultParse({"/utf8output+", "a.vb"}, _baseDirectory)
3018parsedArgs = DefaultParse({"/utf8output-", "a.vb"}, _baseDirectory)
3023parsedArgs = DefaultParse({"/nologo", "a.vb"}, _baseDirectory)
3028parsedArgs = DefaultParse({"/utf8output+", "/utf8output-", "a.vb"}, _baseDirectory)
3033parsedArgs = DefaultParse({"/utf8output:", "a.vb"}, _baseDirectory)
3042Dim parsedArgs = DefaultParse({"a.vb"}, _baseDirectory)
3046parsedArgs = DefaultParse({"/debug-", "a.vb"}, _baseDirectory)
3051parsedArgs = DefaultParse({"/debug", "a.vb"}, _baseDirectory)
3056parsedArgs = DefaultParse({"/debug+", "a.vb"}, _baseDirectory)
3061parsedArgs = DefaultParse({"/debug+", "/debug-", "a.vb"}, _baseDirectory)
3066parsedArgs = DefaultParse({"/debug:full", "a.vb"}, _baseDirectory)
3071parsedArgs = DefaultParse({"/debug:FULL", "a.vb"}, _baseDirectory)
3076parsedArgs = DefaultParse({"/debug:pdbonly", "a.vb"}, _baseDirectory)
3081parsedArgs = DefaultParse({"/debug:portable", "a.vb"}, _baseDirectory)
3086parsedArgs = DefaultParse({"/debug:embedded", "a.vb"}, _baseDirectory)
3091parsedArgs = DefaultParse({"/debug:PDBONLY", "a.vb"}, _baseDirectory)
3096parsedArgs = DefaultParse({"/debug:full", "/debug:pdbonly", "a.vb"}, _baseDirectory)
3101parsedArgs = DefaultParse({"/debug:pdbonly", "/debug:full", "a.vb"}, _baseDirectory)
3106parsedArgs = DefaultParse({"/debug:pdbonly", "/debug-", "a.vb"}, _baseDirectory)
3111parsedArgs = DefaultParse({"/debug:pdbonly", "/debug-", "/debug", "a.vb"}, _baseDirectory)
3116parsedArgs = DefaultParse({"/debug:pdbonly", "/debug-", "/debug+", "a.vb"}, _baseDirectory)
3121parsedArgs = DefaultParse({"/debug:embedded", "/debug-", "/debug+", "a.vb"}, _baseDirectory)
3126parsedArgs = DefaultParse({"/debug:embedded", "/debug-", "a.vb"}, _baseDirectory)
3131parsedArgs = DefaultParse({"/debug:", "a.vb"}, _baseDirectory)
3134parsedArgs = DefaultParse({"/debug:+", "a.vb"}, _baseDirectory)
3137parsedArgs = DefaultParse({"/debug:invalid", "a.vb"}, _baseDirectory)
3140parsedArgs = DefaultParse({"/debug-:", "a.vb"}, _baseDirectory)
3143parsedArgs = DefaultParse({"/pdb:something", "a.vb"}, _baseDirectory)
3149Dim parsedArgs = DefaultParse({"/sourcelink:sl.json", "/debug:portable", "a.vb"}, _baseDirectory)
3151Assert.Equal(Path.Combine(_baseDirectory, "sl.json"), parsedArgs.SourceLink)
3153parsedArgs = DefaultParse({"/sourcelink:sl.json", "/debug:embedded", "a.vb"}, _baseDirectory)
3155Assert.Equal(Path.Combine(_baseDirectory, "sl.json"), parsedArgs.SourceLink)
3157parsedArgs = DefaultParse({"/sourcelink:""s l.json""", "/debug:embedded", "a.vb"}, _baseDirectory)
3159Assert.Equal(Path.Combine(_baseDirectory, "s l.json"), parsedArgs.SourceLink)
3161parsedArgs = DefaultParse({"/sourcelink:sl.json", "/debug:full", "a.vb"}, _baseDirectory)
3164parsedArgs = DefaultParse({"/sourcelink:sl.json", "/debug:pdbonly", "a.vb"}, _baseDirectory)
3167parsedArgs = DefaultParse({"/sourcelink:sl.json", "/debug-", "a.vb"}, _baseDirectory)
3170parsedArgs = DefaultParse({"/sourcelink:sl.json", "/debug+", "a.vb"}, _baseDirectory)
3173parsedArgs = DefaultParse({"/sourcelink:sl.json", "a.vb"}, _baseDirectory)
3240Dim parsedArgs = DefaultParse({"a.vb "}, _baseDirectory)
3244parsedArgs = DefaultParse({"/embed", "/debug:portable", "a.vb", "b.vb", "c.vb"}, _baseDirectory)
3248{"a.vb", "b.vb", "c.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)),
3251parsedArgs = DefaultParse({"/embed:a.vb", "/embed:b.vb", "/debug:embedded", "a.vb", "b.vb", "c.vb"}, _baseDirectory)
3254{"a.vb", "b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)),
3257parsedArgs = DefaultParse({"/embed:a.vb;b.vb", "/debug:portable", "a.vb", "b.vb", "c.vb"}, _baseDirectory)
3260{"a.vb", "b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)),
3263parsedArgs = DefaultParse({"/embed:a.vb,b.vb", "/debug:portable", "a.vb", "b.vb", "c.vb"}, _baseDirectory)
3266{"a.vb", "b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)),
3269parsedArgs = DefaultParse({"/embed:""a,b.vb""", "/debug:portable", "a,b.vb", "c.vb"}, _baseDirectory)
3272{"a,b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)),
3275parsedArgs = DefaultParse({"/embed:\""a,b.vb\""", "/debug:portable", "a,b.vb", "c.vb"}, _baseDirectory)
3278{"a,b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)),
3281parsedArgs = DefaultParse({"/embed:\""""a.vb,b.vb""\""", "/debug:portable", "a.vb", "b.vb", "c.vb"}, _baseDirectory)
3284{"a.vb", "b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)),
3287parsedArgs = DefaultParse({"/embed:a.txt", "/embed", "/debug:portable", "a.vb", "b.vb", "c.vb"}, _baseDirectory)
3290{"a.txt", "a.vb", "b.vb", "c.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)),
3293parsedArgs = DefaultParse({"/embed", "a.vb"}, _baseDirectory)
3296parsedArgs = DefaultParse({"/embed:a.txt", "a.vb"}, _baseDirectory)
3299parsedArgs = DefaultParse({"/embed", "/debug-", "a.vb"}, _baseDirectory)
3302parsedArgs = DefaultParse({"/embed:a.txt", "/debug-", "a.vb"}, _baseDirectory)
3305parsedArgs = DefaultParse({"/embed", "/debug:full", "a.vb"}, _baseDirectory)
3308parsedArgs = DefaultParse({"/embed", "/debug:pdbonly", "a.vb"}, _baseDirectory)
3311parsedArgs = DefaultParse({"/embed", "/debug+", "a.vb"}, _baseDirectory)
3455Dim parsedArgs = DefaultParse({"/pathmap:", "a.vb"}, _baseDirectory)
3461parsedArgs = DefaultParse({"/pathmap:K1=V1", "a.vb"}, _baseDirectory)
3465parsedArgs = DefaultParse({$"/pathmap:abc{s}=/", "a.vb"}, _baseDirectory)
3469parsedArgs = DefaultParse({"/pathmap:K1=V1,K2=V2", "a.vb"}, _baseDirectory)
3474parsedArgs = DefaultParse({"/pathmap:,", "a.vb"}, _baseDirectory)
3478parsedArgs = DefaultParse({"/pathmap:,,", "a.vb"}, _baseDirectory)
3482parsedArgs = DefaultParse({"/pathmap:,,,", "a.vb"}, _baseDirectory)
3486parsedArgs = DefaultParse({"/pathmap:k=,=v", "a.vb"}, _baseDirectory)
3491parsedArgs = DefaultParse({"/pathmap:k=v=bad", "a.vb"}, _baseDirectory)
3495parsedArgs = DefaultParse({"/pathmap:k=", "a.vb"}, _baseDirectory)
3499parsedArgs = DefaultParse({"/pathmap:=v", "a.vb"}, _baseDirectory)
3503parsedArgs = DefaultParse({"/pathmap:""supporting spaces=is hard""", "a.vb"}, _baseDirectory)
3507parsedArgs = DefaultParse({"/pathmap:""K 1=V 1"",""K 2=V 2""", "a.vb"}, _baseDirectory)
3512parsedArgs = DefaultParse({"/pathmap:""K 1""=""V 1"",""K 2""=""V 2""", "a.vb"}, _baseDirectory)
3517parsedArgs = DefaultParse({"/pathmap:""a ==,,b""=""1,,== 2"",""x ==,,y""=""3 4"",", "a.vb"}, _baseDirectory)
3522parsedArgs = DefaultParse({"/pathmap:C:\temp\=/_1/,C:\temp\a\=/_2/,C:\temp\a\b\=/_3/", "a.cs", "a\b.cs", "a\b\c.cs"}, _baseDirectory)
3832parsedArgs = DefaultParse({"/out:\\b", "a.vb"}, _baseDirectory)
3840parsedArgs = DefaultParse({"/out:\\server\share\file.exe", "a.vb"}, _baseDirectory)
3849parsedArgs = DefaultParse({"/out:a.b" & vbNullChar & "b", "a.vb"}, _baseDirectory)
3876parsedArgs = DefaultParse({"/out:""a<>.dll""", "a.vb"}, _baseDirectory)
3903parsedArgs = DefaultParse({"/out:.exe", "a.vb"}, _baseDirectory)
3911parsedArgs = DefaultParse({"/t:exe", "/out:.exe", "a.vb"}, _baseDirectory)
3919parsedArgs = DefaultParse({"/t:library", "/out:.dll", "a.vb"}, _baseDirectory)
3927parsedArgs = DefaultParse({"/t:module", "/out:.netmodule", "a.vb"}, _baseDirectory)
3934parsedArgs = DefaultParse({".vb"}, _baseDirectory)
3942parsedArgs = DefaultParse({"/t:exe", ".vb"}, _baseDirectory)
3950parsedArgs = DefaultParse({"/t:library", ".vb"}, _baseDirectory)
3958parsedArgs = DefaultParse({"/t:module", ".vb"}, _baseDirectory)
3969Dim parsedArgs = DefaultParse({"/out:.x", "a.vb"}, _baseDirectory)
3976parsedArgs = DefaultParse({"/target:winexe", "/out:.x.eXe", "a.vb"}, _baseDirectory)
3983parsedArgs = DefaultParse({"/target:winexe", "/out:.exe", "a.vb"}, _baseDirectory)
3991parsedArgs = DefaultParse({"/target:library", "/out:.x", "a.vb"}, _baseDirectory)
3998parsedArgs = DefaultParse({"/target:library", "/out:.X.Dll", "a.vb"}, _baseDirectory)
4005parsedArgs = DefaultParse({"/target:library", "/out:.dll", "a.vb"}, _baseDirectory)
4013parsedArgs = DefaultParse({"/target:module", "/out:.x", "a.vb"}, _baseDirectory)
4020parsedArgs = DefaultParse({"/target:module", "/out:x.dll", "a.vb"}, _baseDirectory)
4027parsedArgs = DefaultParse({"/target:module", "/out:.x.netmodule", "a.vb"}, _baseDirectory)
4034parsedArgs = DefaultParse({"/target:module", "/out:x", "a.vb"}, _baseDirectory)
4045Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/keyfile:", "/target:library", "/nologo", "/preferreduilang:en", "a.vb"})
4055Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/keyfile:""""", "/target:library", "/nologo", "/preferreduilang:en", "a.vb"})
4065Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/keyfile:", "/publicsign", "/target:library", "/nologo", "/preferreduilang:en", "a.vb"})
4075Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/keyfile:""""", "/publicsign", "/target:library", "/nologo", "/preferreduilang:en", "a.vb"})
4680Dim parsedArgs = DefaultParse({"/KeyContainer:key-cont-name", "a.vb"}, _baseDirectory)
4684parsedArgs = DefaultParse({"/KEYcontainer", "a.vb"}, _baseDirectory)
4688parsedArgs = DefaultParse({"/keycontainer-", "a.vb"}, _baseDirectory)
4692parsedArgs = DefaultParse({"/keycontainer:", "a.vb"}, _baseDirectory)
4696parsedArgs = DefaultParse({"/keycontainer: ", "a.vb"}, _baseDirectory)
4701parsedArgs = DefaultParse({"/keyfile:\somepath\s""ome Fil""e.goo.bar", "a.cs"}, _baseDirectory)
4705parsedArgs = DefaultParse({"/keyFile", "a.cs"}, _baseDirectory)
4709parsedArgs = DefaultParse({"/keyfile-", "a.cs"}, _baseDirectory)
4713parsedArgs = DefaultParse({"/keyfile: ", "a.vb"}, _baseDirectory)
4718parsedArgs = DefaultParse({"a.vb"}, _baseDirectory)
4724parsedArgs = DefaultParse({"/keycontainer:a", "/keyfile:b", "a.vb"}, _baseDirectory)
4730parsedArgs = DefaultParse({"/keyfile:b", "/keycontainer:a", "a.vb"}, _baseDirectory)
4740Dim parsedArgs = DefaultParse({"/platform:X86", "a.vb"}, _baseDirectory)
4744parsedArgs = DefaultParse({"/platform:x64", "a.vb"}, _baseDirectory)
4748parsedArgs = DefaultParse({"/platform:itanium", "a.vb"}, _baseDirectory)
4752parsedArgs = DefaultParse({"/platform:anycpu", "a.vb"}, _baseDirectory)
4756parsedArgs = DefaultParse({"/platform:anycpu32bitpreferred", "/t:exe", "a.vb"}, _baseDirectory)
4760parsedArgs = DefaultParse({"/platform:anycpu32bitpreferred", "/t:appcontainerexe", "a.vb"}, _baseDirectory)
4764parsedArgs = DefaultParse({"/platform:arm", "a.vb"}, _baseDirectory)
4769parsedArgs = DefaultParse({"/debug-", "a.vb"}, _baseDirectory)
4774parsedArgs = DefaultParse({"/platform:", "a.vb"}, _baseDirectory)
4776parsedArgs = DefaultParse({"/platform", "a.vb"}, _baseDirectory)
4778parsedArgs = DefaultParse({"/platform+", "a.vb"}, _baseDirectory)
4782parsedArgs = DefaultParse({"/platform:abcdef", "a.vb"}, _baseDirectory)
4786parsedArgs = DefaultParse({"/platform:anycpu32bitpreferred", "/platform:anycpu", "a.vb"}, _baseDirectory)
4791parsedArgs = DefaultParse({"/platform:anycpu32bitpreferred", "/t:library", "a.vb"}, _baseDirectory)
4794parsedArgs = DefaultParse({"/platform:anycpu", "/platform:anycpu32bitpreferred", "/target:winmdobj", "a.vb"}, _baseDirectory)
4801Dim parsedArgs = DefaultParse({"/filealign:512", "a.vb"}, _baseDirectory)
4803parsedArgs = DefaultParse({"/filealign:1024", "a.vb"}, _baseDirectory)
4805parsedArgs = DefaultParse({"/filealign:2048", "a.vb"}, _baseDirectory)
4807parsedArgs = DefaultParse({"/filealign:4096", "a.vb"}, _baseDirectory)
4809parsedArgs = DefaultParse({"/filealign:8192", "a.vb"}, _baseDirectory)
4813parsedArgs = DefaultParse({"/filealign:01000", "a.vb"}, _baseDirectory)
4815parsedArgs = DefaultParse({"/filealign:02000", "a.vb"}, _baseDirectory)
4817parsedArgs = DefaultParse({"/filealign:04000", "a.vb"}, _baseDirectory)
4819parsedArgs = DefaultParse({"/filealign:010000", "a.vb"}, _baseDirectory)
4821parsedArgs = DefaultParse({"/filealign:020000", "a.vb"}, _baseDirectory)
4825parsedArgs = DefaultParse({"/filealign:0x200", "a.vb"}, _baseDirectory)
4827parsedArgs = DefaultParse({"/filealign:0x400", "a.vb"}, _baseDirectory)
4829parsedArgs = DefaultParse({"/filealign:0x800", "a.vb"}, _baseDirectory)
4831parsedArgs = DefaultParse({"/filealign:0x1000", "a.vb"}, _baseDirectory)
4833parsedArgs = DefaultParse({"/filealign:0x2000", "a.vb"}, _baseDirectory)
4837parsedArgs = DefaultParse({"/platform:x86", "a.vb"}, _baseDirectory)
4841parsedArgs = DefaultParse({"/filealign:", "a.vb"}, _baseDirectory)
4845parsedArgs = DefaultParse({"/filealign:0", "a.vb"}, _baseDirectory)
4847parsedArgs = DefaultParse({"/filealign:0x", "a.vb"}, _baseDirectory)
4849parsedArgs = DefaultParse({"/filealign:0x0", "a.vb"}, _baseDirectory)
4851parsedArgs = DefaultParse({"/filealign:-1", "a.vb"}, _baseDirectory)
4853parsedArgs = DefaultParse({"/filealign:-0x100", "a.vb"}, _baseDirectory)
4859Dim parsedArgs = DefaultParse({"/removeintcheckS", "a.vb"}, _baseDirectory)
4863parsedArgs = DefaultParse({"/removeintcheckS+", "a.vb"}, _baseDirectory)
4867parsedArgs = DefaultParse({"/removeintcheckS-", "a.vb"}, _baseDirectory)
4871parsedArgs = DefaultParse({"/removeintchecks+", "/removeintchecks-", "a.vb"}, _baseDirectory)
4875parsedArgs = DefaultParse({"/removeintchecks:", "a.vb"}, _baseDirectory)
4878parsedArgs = DefaultParse({"/removeintchecks:+", "a.vb"}, _baseDirectory)
4881parsedArgs = DefaultParse({"/removeintchecks+:", "a.vb"}, _baseDirectory)
4891Dim parsedArgs = DefaultParse({"/baseaddress:0", "a.vb"}, _baseDirectory)
4893parsedArgs = DefaultParse({"/baseaddress:1024", "a.vb"}, _baseDirectory)
4895parsedArgs = DefaultParse({"/baseaddress:2048", "a.vb"}, _baseDirectory)
4897parsedArgs = DefaultParse({"/baseaddress:4096", "a.vb"}, _baseDirectory)
4899parsedArgs = DefaultParse({"/baseaddress:8192", "a.vb"}, _baseDirectory)
4903parsedArgs = DefaultParse({"/baseaddress:0x200", "a.vb"}, _baseDirectory)
4905parsedArgs = DefaultParse({"/baseaddress:0x400", "a.vb"}, _baseDirectory)
4907parsedArgs = DefaultParse({"/baseaddress:0x800", "a.vb"}, _baseDirectory)
4909parsedArgs = DefaultParse({"/baseaddress:0x1000", "a.vb"}, _baseDirectory)
4911parsedArgs = DefaultParse({"/baseaddress:0xFFFFFFFFFFFFFFFF", "a.vb"}, _baseDirectory)
4913parsedArgs = DefaultParse({"/baseaddress:FFFFFFFFFFFFFFFF", "a.vb"}, _baseDirectory)
4917parsedArgs = DefaultParse({"/baseaddress:00", "a.vb"}, _baseDirectory)
4919parsedArgs = DefaultParse({"/baseaddress:01024", "a.vb"}, _baseDirectory)
4921parsedArgs = DefaultParse({"/baseaddress:02048", "a.vb"}, _baseDirectory)
4923parsedArgs = DefaultParse({"/baseaddress:04096", "a.vb"}, _baseDirectory)
4925parsedArgs = DefaultParse({"/baseaddress:08192", "a.vb"}, _baseDirectory)
4929parsedArgs = DefaultParse({"/platform:x86", "a.vb"}, _baseDirectory)
4933parsedArgs = DefaultParse({"/baseaddress:", "a.vb"}, _baseDirectory)
4937parsedArgs = DefaultParse({"/baseaddress:0x10000000000000000", "a.vb"}, _baseDirectory)
4939parsedArgs = DefaultParse({"/BASEADDRESS:-1", "a.vb"}, _baseDirectory)
4941parsedArgs = DefaultParse({"/BASEADDRESS:" + ULong.MaxValue.ToString, "a.vb"}, _baseDirectory)
4949Dim exitCode As Integer = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", binaryPath}).Run(outWriter, Nothing)
4958Dim parsedArgs = DefaultParse({"/nostdlib", "/vbruntime-", "/addMODULE:c:\,d:\x\y\z,abc,,", "a.vb"}, _baseDirectory)
4973parsedArgs = DefaultParse({"/ADDMODULE", "a.vb"}, _baseDirectory)
4976parsedArgs = DefaultParse({"/addmodule:", "a.vb"}, _baseDirectory)
4979parsedArgs = DefaultParse({"/addmodule+", "a.vb"}, _baseDirectory)
4985Dim parsedArgs = DefaultParse({"/libpath:c:\,d:\x\y\z,abc,,", "a.vb"}, _baseDirectory)
4987AssertReferencePathsEqual(parsedArgs.ReferencePaths, Nothing, "c:\", "d:\x\y\z", Path.Combine(_baseDirectory, "abc"))
4989parsedArgs = DefaultParse({"/lib:c:\Windows", "/libpaths:abc\def, , , ", "a.vb"}, _baseDirectory)
4991AssertReferencePathsEqual(parsedArgs.ReferencePaths, Nothing, "c:\Windows", Path.Combine(_baseDirectory, "abc\def"))
4993parsedArgs = DefaultParse({"/libpath", "a.vb"}, _baseDirectory)
4996parsedArgs = DefaultParse({"/libpath:", "a.vb"}, _baseDirectory)
4999parsedArgs = DefaultParse({"/libpath+", "a.vb"}, _baseDirectory)
5074Dim parsedArgs = DefaultParse({"/libpath:c:lib2", "/sdkpath:<>,d:\sdk1", "/vbruntime*", "/nostdlib", "a.vb"}, _baseDirectory)
5080parsedArgs = DefaultParse({"/sdkpath:c:\Windows", "/sdkpath:d:\Windows", "/vbruntime*", "/nostdlib", "a.vb"}, _baseDirectory)
5084parsedArgs = DefaultParse({"/sdkpath:c:\Windows,d:\blah", "a.vb"}, _baseDirectory)
5087parsedArgs = DefaultParse({"/libpath:c:\Windows,d:\blah", "/sdkpath:c:\lib2", "a.vb"}, _baseDirectory)
5090parsedArgs = DefaultParse({"/sdkpath", "/vbruntime*", "/nostdlib", "a.vb"}, _baseDirectory)
5093parsedArgs = DefaultParse({"/sdkpath:", "a.vb"}, _baseDirectory)
5096parsedArgs = DefaultParse({"/sdkpath+", "/vbruntime*", "/nostdlib", "a.vb"}, _baseDirectory)
5375Dim parsedArgs = DefaultParse({"/libpath:c:\lib2,", "@" & file.ToString(), "a.vb"}, _baseDirectory)
5392Dim parsedArgs = DefaultParse({"/highentropyva", "a.vb"}, _baseDirectory)
5394parsedArgs = DefaultParse({"/highentropyva+", "a.vb"}, _baseDirectory)
5396parsedArgs = DefaultParse({"/highentropyva-", "a.vb"}, _baseDirectory)
5398parsedArgs = DefaultParse({"/highentropyva:+", "a.vb"}, _baseDirectory)
5401parsedArgs = DefaultParse({"/highentropyva:", "a.vb"}, _baseDirectory)
5404parsedArgs = DefaultParse({"/highentropyva+ /highentropyva-", "a.vb"}, _baseDirectory)
5434Dim parsedArgs = DefaultParse({"/resource:goo.vb,ed", "/out:e.dll"}, _baseDirectory)
5436parsedArgs = DefaultParse({"/resource:goo.vb,ed"}, _baseDirectory)
5799Dim parsedArgs = DefaultParse({"a.vb"}, _baseDirectory)
5803parsedArgs = DefaultParse({"/warnaserror", "a.vb"}, _baseDirectory)
5807parsedArgs = DefaultParse({"/warnaserror+", "a.vb"}, _baseDirectory)
5811parsedArgs = DefaultParse({"/warnaserror:", "a.vb"}, _baseDirectory)
5815parsedArgs = DefaultParse({"/warnaserror:42024,42025", "a.vb"}, _baseDirectory)
5820parsedArgs = DefaultParse({"/warnaserror+:", "a.vb"}, _baseDirectory)
5824parsedArgs = DefaultParse({"/warnaserror+:42024,42025", "a.vb"}, _baseDirectory)
5829parsedArgs = DefaultParse({"/warnaserror-", "a.vb"}, _baseDirectory)
5833parsedArgs = DefaultParse({"/warnaserror-:", "a.vb"}, _baseDirectory)
5837parsedArgs = DefaultParse({"/warnaserror-:42024,42025", "a.vb"}, _baseDirectory)
5842parsedArgs = DefaultParse({"/nowarn", "a.vb"}, _baseDirectory)
5846parsedArgs = DefaultParse({"/nowarn:", "a.vb"}, _baseDirectory)
5850parsedArgs = DefaultParse({"/nowarn:42024,42025", "a.vb"}, _baseDirectory)
5862Dim parsedArgs = DefaultParse({"/warnaserror:1", "a.vb"}, _baseDirectory)
5866parsedArgs = DefaultParse({"/warnaserror:abc", "a.vb"}, _baseDirectory)
5870parsedArgs = DefaultParse({"/nowarn:1", "a.vb"}, _baseDirectory)
5874parsedArgs = DefaultParse({"/nowarn:abc", "a.vb"}, _baseDirectory)
6926Dim vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en"})
6933vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en", "/noconfig"})
6940vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en", "/NOCONFIG"})
6947vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en", "-noconfig"})
6974Dim vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en"})
6981vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en", "/nowarn"})
7008Dim vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en"})
7015vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en", "/nowarn"})
7042Dim vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en"})
7049vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en", "/nowarn"})
7071Dim vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en"})
7090Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define", source})
7096vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:", source})
7102vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define: ", source})
7108vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:_,", source})
7114vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:_a,", source})
7120vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:_ a,", source})
7126vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:a,_,b", source})
7132vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:_", source})
7138vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:_ ", source})
7144vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:a,_", source})
7161Dim vbc As New MockVisualBasicCompiler(defaultResponseFile, _baseDirectory, {})
7227Dim vbc As New MockVisualBasicCompiler(defaultResponseFile, _baseDirectory, {"/noconfig"})
7261Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", "/blah", "/nowarn:2007,42353,1234,2026", source})
7279Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", "/define:I(", source})
7285vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", "/define:I*", source})
7297Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/imports:" + [imports]})
7316Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/netcf", source})
7322vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/bugreport", source})
7328vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/bugreport:test.dmp", source})
7334vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/errorreport", source})
7340vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/errorreport:prompt", source})
7346vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/errorreport:queue", source})
7352vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/errorreport:send", source})
7358vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/errorreport:", source})
7364vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/bugreport:", source})
7370vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/novbruntimeref", source})
7377vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/errorreport:PROMPT", source})
7390Dim exitCode = New MockVisualBasicCompiler(Nothing, _baseDirectory, {""}).Run(outWriter, Nothing)
7401Dim exitCode = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/preferreduilang"}).Run(outWriter, Nothing)
7406exitCode = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/preferreduilang:"}).Run(outWriter, Nothing)
7411exitCode = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/preferreduilang:zz"}).Run(outWriter, Nothing)
7416exitCode = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/preferreduilang:en-zz"}).Run(outWriter, Nothing)
7421exitCode = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/preferreduilang:en-US"}).Run(outWriter, Nothing)
7426exitCode = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/preferreduilang:de"}).Run(outWriter, Nothing)
7431exitCode = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/preferreduilang:de-AT"}).Run(outWriter, Nothing)
7439Dim parsedArgs = DefaultParse({"/t:library", "con.vb"}, _baseDirectory)
7442parsedArgs = DefaultParse({"/out:com1.exe", "a.vb"}, _baseDirectory)
7449parsedArgs = DefaultParse({"/doc:..\lpt2.xml", "a.vb"}, _baseDirectory)
7456parsedArgs = DefaultParse({"/SdkPath:..\aux", "com.vb"}, _baseDirectory)
7471Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/r:.\com3.dll", "/preferreduilang:en", source})
7477vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", "/link:prn.dll", source})
7483vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"@aux.rsp", "/preferreduilang:en", source})
7491vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", "/vbruntime:..\con.dll", source})
7498vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/LibPath:lpt1,Lpt2,LPT9", source})
7752Dim args = DefaultParse({"/features:Test", "a.vb"}, _baseDirectory)
7756args = DefaultParse({"/features:Test", "a.vb", "/Features:Experiment"}, _baseDirectory)
7762args = DefaultParse({"/features:Test=false,Key=value", "a.vb"}, _baseDirectory)
7768args = DefaultParse({"/features", "a.vb"}, _baseDirectory)
7772args = DefaultParse({"/features:Test,", "a.vb"}, _baseDirectory)
7779Dim args = DefaultParse({"/additionalfile:web.config", "a.vb"}, _baseDirectory)
7781Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles.Single().Path)
7783args = DefaultParse({"/additionalfile:web.config", "a.vb", "/additionalfile:app.manifest"}, _baseDirectory)
7786Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path)
7787Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path)
7789args = DefaultParse({"/additionalfile:web.config", "a.vb", "/additionalfile:web.config"}, _baseDirectory)
7792Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path)
7793Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(1).Path)
7795args = DefaultParse({"/additionalfile:..\web.config", "a.vb"}, _baseDirectory)
7797Assert.Equal(Path.Combine(_baseDirectory, "..\web.config"), args.AdditionalFiles.Single().Path)
7811args = DefaultParse({"/additionalfile:web.config;app.manifest", "a.vb"}, _baseDirectory)
7814Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path)
7815Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path)
7817args = DefaultParse({"/additionalfile:web.config,app.manifest", "a.vb"}, _baseDirectory)
7820Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path)
7821Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path)
7823args = DefaultParse({"/additionalfile:""web.config,app.manifest""", "a.vb"}, _baseDirectory)
7826Assert.Equal(Path.Combine(_baseDirectory, "web.config,app.manifest"), args.AdditionalFiles(0).Path)
7828args = DefaultParse({"/additionalfile:\""web.config,app.manifest\""", "a.vb"}, _baseDirectory)
7831Assert.Equal(Path.Combine(_baseDirectory, "web.config,app.manifest"), args.AdditionalFiles(0).Path)
7833args = DefaultParse({"/additionalfile:\""""web.config,app.manifest""\""", "a.vb"}, _baseDirectory)
7836Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path)
7837Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path)
7839args = DefaultParse({"/additionalfile:web.config:app.manifest", "a.vb"}, _baseDirectory)
7842Assert.Equal(Path.Combine(_baseDirectory, "web.config:app.manifest"), args.AdditionalFiles(0).Path)
7844args = DefaultParse({"/additionalfile", "a.vb"}, _baseDirectory)
7848args = DefaultParse({"/additionalfile:", "a.vb"}, _baseDirectory)
7855Dim args = DefaultParse({"/analyzerconfig:.editorconfig", "a.vb"}, _baseDirectory)
7857Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths.Single())
7859args = DefaultParse({"/analyzerconfig:.editorconfig", "a.vb", "/analyzerconfig:subdir\.editorconfig"}, _baseDirectory)
7862Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(0))
7863Assert.Equal(Path.Combine(_baseDirectory, "subdir\.editorconfig"), args.AnalyzerConfigPaths(1))
7865args = DefaultParse({"/analyzerconfig:.editorconfig", "a.vb", "/analyzerconfig:.editorconfig"}, _baseDirectory)
7868Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(0))
7869Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(1))
7871args = DefaultParse({"/analyzerconfig:..\.editorconfig", "a.vb"}, _baseDirectory)
7873Assert.Equal(Path.Combine(_baseDirectory, "..\.editorconfig"), args.AnalyzerConfigPaths.Single())
7875args = DefaultParse({"/analyzerconfig:.editorconfig;subdir\.editorconfig", "a.vb"}, _baseDirectory)
7878Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(0))
7879Assert.Equal(Path.Combine(_baseDirectory, "subdir\.editorconfig"), args.AnalyzerConfigPaths(1))
7881args = DefaultParse({"/analyzerconfig:.editorconfig,subdir\.editorconfig", "a.vb"}, _baseDirectory)
7884Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(0))
7885Assert.Equal(Path.Combine(_baseDirectory, "subdir\.editorconfig"), args.AnalyzerConfigPaths(1))
7887args = DefaultParse({"/analyzerconfig:.editorconfig:.editorconfig", "a.vb"}, _baseDirectory)
7890Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig:.editorconfig"), args.AnalyzerConfigPaths(0))
7892args = DefaultParse({"/analyzerconfig", "a.vb"}, _baseDirectory)
7900args = DefaultParse({"/analyzerconfig:", "a.vb"}, _baseDirectory)
8941Dim args1 = DefaultParse({"/reportanalyzer", "a.vb"}, _baseDirectory)
8944Dim args2 = DefaultParse({"", "a.vb"}, _baseDirectory)
8957_baseDirectory,
8975Dim ParsedArgs = DefaultParse({"a.vb"}, _baseDirectory)
8979ParsedArgs = DefaultParse({"/skipanalyzers+", "a.vb"}, _baseDirectory)
8983ParsedArgs = DefaultParse({"/skipanalyzers", "a.vb"}, _baseDirectory)
8987ParsedArgs = DefaultParse({"/SKIPANALYZERS+", "a.vb"}, _baseDirectory)
8991ParsedArgs = DefaultParse({"/skipanalyzers-", "a.vb"}, _baseDirectory)
8995ParsedArgs = DefaultParse({"/skipanalyzers-", "/skipanalyzers+", "a.vb"}, _baseDirectory)
8999ParsedArgs = DefaultParse({"/skipanalyzers", "/skipanalyzers-", "a.vb"}, _baseDirectory)
9012Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {skipAnalyzersFlag, "/reportanalyzer", "/t:library", "/a:" + Assembly.GetExecutingAssembly().Location, source})
9035Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/t:library", source},
9059Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/t:library", $"/warnaserror:{AnalyzerExecutor.AnalyzerExceptionDiagnosticId}", source},
9080Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/t:library", source},
9116Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, arguments, analyzer)
9166Dim args = DefaultParse({"e:c:\test\test.cs", "/t:library"}, _baseDirectory)
9263Dim parsedArgs = FullParse("/publicsign /keyfile:test.snk a.cs", _baseDirectory)
9264Assert.Equal(Path.Combine(_baseDirectory, "test.snk"), parsedArgs.CompilationOptions.CryptoKeyFile)
9271Dim parsedArgs = FullParse("/publicsign /keyfile: a.cs", _baseDirectory)
9278Dim parsedArgs = FullParse("/publicsign /keyfile:"""" a.cs", _baseDirectory)
9582Dim vbc = New MockVisualBasicCompiler(_baseDirectory, {"/nologo", "/preferreduilang:en", $"/out:{exePath}", srcPath})
9602Dim vbc = New MockVisualBasicCompiler(_baseDirectory, {"/nologo", "/preferreduilang:en", "/debug", $"/out:{exePath}", srcPath})
9621Dim vbc = New MockVisualBasicCompiler(_baseDirectory, {"/nologo", "/preferreduilang:en", $"/doc:{xmlPath}", srcPath})
9642Dim vbc = New MockVisualBasicCompiler(_baseDirectory, {"/nologo", "/preferreduilang:en", "/debug:" & format, $"/sourcelink:{sourceLinkPath}", srcPath})
9667Dim parsedArgs = DefaultParse({"/define:1", "a.cs"}, _baseDirectory)
9673Dim parsedArgs = DefaultParse({"/langversion:1000", "a.cs"}, _baseDirectory)
9748Dim compiler = New MockVisualBasicCompiler(Nothing, _baseDirectory,