721 references to _baseDirectory
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (721)
CommandLineTests.vb (721)
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) 1536parsedArgs = DefaultParse({"/langVERSION:default", "a.vb"}, _baseDirectory) 1541parsedArgs = DefaultParse({"/langVERSION:latest", "a.vb"}, _baseDirectory) 1547parsedArgs = DefaultParse({"a.vb"}, _baseDirectory) 1552parsedArgs = DefaultParse({"/langVERSION:10", "/langVERSION:9.0", "a.vb"}, _baseDirectory) 1557parsedArgs = DefaultParse({"/langVERSION", "a.vb"}, _baseDirectory) 1561parsedArgs = DefaultParse({"/langVERSION+", "a.vb"}, _baseDirectory) 1565parsedArgs = DefaultParse({"/langVERSION:", "a.vb"}, _baseDirectory) 1569parsedArgs = DefaultParse({"/langVERSION:8", "a.vb"}, _baseDirectory) 1573parsedArgs = DefaultParse({"/langVERSION:" & (LanguageVersion.VisualBasic12 + 1), "a.vb"}, _baseDirectory) 1580Dim parsedArgs = DefaultParse({"/delaysign", "a.cs"}, _baseDirectory) 1585parsedArgs = DefaultParse({"/delaysign+", "a.cs"}, _baseDirectory) 1590parsedArgs = DefaultParse({"/DELAYsign-", "a.cs"}, _baseDirectory) 1595parsedArgs = DefaultParse({"/delaysign:-", "a.cs"}, _baseDirectory) 1598parsedArgs = InteractiveParse({"/d:a=1"}, _baseDirectory) ' test default value 1606Dim parsedArgs = DefaultParse({"/verbose", "a.vb"}, _baseDirectory) 1610parsedArgs = DefaultParse({"/verbose+", "a.vb"}, _baseDirectory) 1614parsedArgs = DefaultParse({"/verbose-", "a.vb"}, _baseDirectory) 1618parsedArgs = DefaultParse({"/VERBOSE:-", "a.vb"}, _baseDirectory) 1621parsedArgs = DefaultParse({"/verbose-:", "a.vb"}, _baseDirectory) 1624parsedArgs = DefaultParse({"/verbose+:", "a.vb"}, _baseDirectory) 1627parsedArgs = DefaultParse({"/verbOSE:", "a.vb"}, _baseDirectory) 1630parsedArgs = InteractiveParse({"/d:a=1"}, _baseDirectory) ' test default value 1634parsedArgs = DefaultParse({"/quiet", "/verbose", "a.vb"}, _baseDirectory) 1638parsedArgs = DefaultParse({"/quiet", "/verbose-", "a.vb"}, _baseDirectory) 1646Dim parsedArgs = DefaultParse({"/quiet", "a.vb"}, _baseDirectory) 1650parsedArgs = DefaultParse({"/quiet+", "a.vb"}, _baseDirectory) 1654parsedArgs = DefaultParse({"/quiet-", "a.vb"}, _baseDirectory) 1658parsedArgs = DefaultParse({"/QUIET:-", "a.vb"}, _baseDirectory) 1661parsedArgs = DefaultParse({"/quiet-:", "a.vb"}, _baseDirectory) 1664parsedArgs = DefaultParse({"/quiet+:", "a.vb"}, _baseDirectory) 1667parsedArgs = DefaultParse({"/quiET:", "a.vb"}, _baseDirectory) 1670parsedArgs = InteractiveParse({"/d:a=1"}, _baseDirectory) ' test default value 1674parsedArgs = DefaultParse({"/verbose", "/quiet", "a.vb"}, _baseDirectory) 1678parsedArgs = DefaultParse({"/verbose", "/quiet-", "a.vb"}, _baseDirectory) 1685Dim parsedArgs = DefaultParse({"/optimize", "a.vb"}, _baseDirectory) 1689parsedArgs = DefaultParse({"a.vb"}, _baseDirectory) 1693parsedArgs = DefaultParse({"/OPTIMIZE+", "a.vb"}, _baseDirectory) 1697parsedArgs = DefaultParse({"/optimize-", "a.vb"}, _baseDirectory) 1701parsedArgs = DefaultParse({"/optimize-", "/optimize+", "a.vb"}, _baseDirectory) 1705parsedArgs = DefaultParse({"/OPTIMIZE:", "a.cs"}, _baseDirectory) 1708parsedArgs = DefaultParse({"/OPTIMIZE+:", "a.cs"}, _baseDirectory) 1711parsedArgs = DefaultParse({"/optimize-:", "a.cs"}, _baseDirectory) 1718Dim ParsedArgs = DefaultParse({"a.vb"}, _baseDirectory) 1722ParsedArgs = DefaultParse({"/deterministic+", "a.vb"}, _baseDirectory) 1726ParsedArgs = DefaultParse({"/deterministic", "a.vb"}, _baseDirectory) 1730ParsedArgs = DefaultParse({"/DETERMINISTIC+", "a.vb"}, _baseDirectory) 1734ParsedArgs = DefaultParse({"/deterministic-", "a.vb"}, _baseDirectory) 1742Dim parsedArgs = DefaultParse({"/parallel", "a.vb"}, _baseDirectory) 1746parsedArgs = DefaultParse({"/p", "a.vb"}, _baseDirectory) 1750parsedArgs = DefaultParse({"a.vb"}, _baseDirectory) 1754parsedArgs = DefaultParse({"/PARALLEL+", "a.vb"}, _baseDirectory) 1758parsedArgs = DefaultParse({"/PARALLEL-", "a.vb"}, _baseDirectory) 1762parsedArgs = DefaultParse({"/PArallel-", "/PArallel+", "a.vb"}, _baseDirectory) 1766parsedArgs = DefaultParse({"/parallel:", "a.vb"}, _baseDirectory) 1769parsedArgs = DefaultParse({"/parallel+:", "a.vb"}, _baseDirectory) 1772parsedArgs = DefaultParse({"/parallel-:", "a.vb"}, _baseDirectory) 1775parsedArgs = DefaultParse({"/P+", "a.vb"}, _baseDirectory) 1779parsedArgs = DefaultParse({"/P-", "a.vb"}, _baseDirectory) 1783parsedArgs = DefaultParse({"/P-", "/P+", "a.vb"}, _baseDirectory) 1787parsedArgs = DefaultParse({"/p:", "a.vb"}, _baseDirectory) 1790parsedArgs = DefaultParse({"/p+:", "a.vb"}, _baseDirectory) 1793parsedArgs = DefaultParse({"/p-:", "a.vb"}, _baseDirectory) 1799Dim parsedArgs = DefaultParse({"/subsystemversion:4.0", "a.vb"}, _baseDirectory) 1805parsedArgs = DefaultParse({"/subsystemversion:0.0", "a.vb"}, _baseDirectory) 1809parsedArgs = DefaultParse({"/subsystemversion:0", "a.vb"}, _baseDirectory) 1813parsedArgs = DefaultParse({"/subsystemversion:3.99", "a.vb"}, _baseDirectory) 1817parsedArgs = DefaultParse({"/subsystemversion:4.0", "/subsystemversion:5.333", "a.vb"}, _baseDirectory) 1821parsedArgs = DefaultParse({"/subsystemversion:", "a.vb"}, _baseDirectory) 1824parsedArgs = DefaultParse({"/subsystemversion", "a.vb"}, _baseDirectory) 1827parsedArgs = DefaultParse({"/subsystemversion-", "a.vb"}, _baseDirectory) 1830parsedArgs = DefaultParse({"/subsystemversion: ", "a.vb"}, _baseDirectory) 1833parsedArgs = DefaultParse({"/subsystemversion: 4.1", "a.vb"}, _baseDirectory) 1836parsedArgs = DefaultParse({"/subsystemversion:4 .0", "a.vb"}, _baseDirectory) 1839parsedArgs = DefaultParse({"/subsystemversion:4. 0", "a.vb"}, _baseDirectory) 1842parsedArgs = DefaultParse({"/subsystemversion:.", "a.vb"}, _baseDirectory) 1845parsedArgs = DefaultParse({"/subsystemversion:4.", "a.vb"}, _baseDirectory) 1848parsedArgs = DefaultParse({"/subsystemversion:.0", "a.vb"}, _baseDirectory) 1851parsedArgs = DefaultParse({"/subsystemversion:4.2 ", "a.vb"}, _baseDirectory) 1854parsedArgs = DefaultParse({"/subsystemversion:4.65536", "a.vb"}, _baseDirectory) 1857parsedArgs = DefaultParse({"/subsystemversion:65536.0", "a.vb"}, _baseDirectory) 1860parsedArgs = DefaultParse({"/subsystemversion:-4.0", "a.vb"}, _baseDirectory) 1868Dim parsedArgs = DefaultParse({"/CodePage:1200", "a.vb"}, _baseDirectory) 1872parsedArgs = DefaultParse({"/CodePage:1200", "/CodePage:65001", "a.vb"}, _baseDirectory) 1877parsedArgs = DefaultParse({"/codepage:0", "a.vb"}, _baseDirectory) 1880parsedArgs = DefaultParse({"/codepage:abc", "a.vb"}, _baseDirectory) 1883parsedArgs = DefaultParse({"/codepage:-5", "a.vb"}, _baseDirectory) 1886parsedArgs = DefaultParse({"/codepage: ", "a.vb"}, _baseDirectory) 1889parsedArgs = DefaultParse({"/codepage:", "a.vb"}, _baseDirectory) 1892parsedArgs = DefaultParse({"/codepage+", "a.vb"}, _baseDirectory) 1895parsedArgs = DefaultParse({"/codepage", "a.vb"}, _baseDirectory) 1903parsedArgs = DefaultParse({"/checksumAlgorithm:sHa1", "a.cs"}, _baseDirectory) 1908parsedArgs = DefaultParse({"/checksumAlgorithm:sha256", "a.cs"}, _baseDirectory) 1913parsedArgs = DefaultParse({"a.cs"}, _baseDirectory) 1919parsedArgs = DefaultParse({"/checksumAlgorithm:256", "a.cs"}, _baseDirectory) 1922parsedArgs = DefaultParse({"/checksumAlgorithm:sha-1", "a.cs"}, _baseDirectory) 1925parsedArgs = DefaultParse({"/checksumAlgorithm:sha", "a.cs"}, _baseDirectory) 1928parsedArgs = DefaultParse({"/checksumAlgorithm: ", "a.cs"}, _baseDirectory) 1931parsedArgs = DefaultParse({"/checksumAlgorithm:", "a.cs"}, _baseDirectory) 1934parsedArgs = DefaultParse({"/checksumAlgorithm", "a.cs"}, _baseDirectory) 1937parsedArgs = DefaultParse({"/checksumAlgorithm+", "a.cs"}, _baseDirectory) 1943Dim parsedArgs = DefaultParse({"/main:A.B.C", "a.vb"}, _baseDirectory) 1948parsedArgs = DefaultParse({"/Main:A.B.C", "/M:X.Y.Z", "a.vb"}, _baseDirectory) 1952parsedArgs = DefaultParse({"/MAIN: ", "a.vb"}, _baseDirectory) 1957parsedArgs = DefaultParse({"/maiN:", "a.vb"}, _baseDirectory) 1960parsedArgs = DefaultParse({"/m", "a.vb"}, _baseDirectory) 1963parsedArgs = DefaultParse({"/m+", "a.vb"}, _baseDirectory) 1967parsedArgs = DefaultParse({"/MAIN:XYZ", "/t:library", "a.vb"}, _baseDirectory) 1972parsedArgs = DefaultParse({"/MAIN:XYZ", "/t:module", "a.vb"}, _baseDirectory) 1979Dim parsedArgs = InteractiveParse({"/optioncompare"}, _baseDirectory) 1984parsedArgs = InteractiveParse({"/optioncompare:text", "/optioncompare"}, _baseDirectory) 1989parsedArgs = InteractiveParse({"/opTioncompare:Text", "/optioncomparE:bINARY"}, _baseDirectory) 1993parsedArgs = InteractiveParse({"/d:a=1"}, _baseDirectory) ' test default value 2000Dim parsedArgs = InteractiveParse({"/optiONexplicit"}, _baseDirectory) 2004parsedArgs = InteractiveParse({"/optiONexplicit:+"}, _baseDirectory) 2009parsedArgs = InteractiveParse({"/optiONexplicit-:"}, _baseDirectory) 2013parsedArgs = InteractiveParse({"/optionexplicit+", "/optiONexplicit-:"}, _baseDirectory) 2017parsedArgs = InteractiveParse({"/optionexplicit+", "/optiONexplicit-", "/optiONexpliCIT+"}, _baseDirectory) 2021parsedArgs = InteractiveParse({"/d:a=1"}, _baseDirectory) ' test default value 2028Dim parsedArgs = InteractiveParse({"/optiONinfer"}, _baseDirectory) 2032parsedArgs = InteractiveParse({"/OptionInfer:+"}, _baseDirectory) 2035parsedArgs = InteractiveParse({"/OPTIONinfer-:"}, _baseDirectory) 2038parsedArgs = InteractiveParse({"/optioninfer+", "/optioninFER-:"}, _baseDirectory) 2041parsedArgs = InteractiveParse({"/optioninfer+", "/optioninfeR-", "/OptionInfer+"}, _baseDirectory) 2045parsedArgs = InteractiveParse({"/d:a=1"}, _baseDirectory) ' test default value 2189Dim parsedArgs = DefaultParse(args, _baseDirectory) 2204Dim parsedArgs = DefaultParse({"/optionStrict", "a.vb"}, _baseDirectory) 2208parsedArgs = DefaultParse({"/optionStrict+", "a.vb"}, _baseDirectory) 2212parsedArgs = DefaultParse({"/optionStrict-", "a.vb"}, _baseDirectory) 2216parsedArgs = DefaultParse({"/OptionStrict:cusTom", "a.vb"}, _baseDirectory) 2220parsedArgs = DefaultParse({"/OptionStrict:cusTom", "/optionstrict-", "a.vb"}, _baseDirectory) 2224parsedArgs = DefaultParse({"/optionstrict-", "/OptionStrict:cusTom", "a.vb"}, _baseDirectory) 2228parsedArgs = DefaultParse({"/optionstrict:", "/OptionStrict:cusTom", "a.vb"}, _baseDirectory) 2231parsedArgs = DefaultParse({"/optionstrict:xxx", "a.vb"}, _baseDirectory) 2240Dim parsedArgs = DefaultParse({"/rootnamespace:One.Two.Three", "a.vb"}, _baseDirectory) 2244parsedArgs = DefaultParse({"/rootnamespace:One Two Three", "/rootnamespace:One.Two.Three", "a.vb"}, _baseDirectory) 2248parsedArgs = DefaultParse({"/rootnamespace:""One.Two.Three""", "a.vb"}, _baseDirectory) 2252parsedArgs = DefaultParse({"/rootnamespace", "a.vb"}, _baseDirectory) 2255parsedArgs = DefaultParse({"/rootnamespace:", "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.B.C", "a.vb"}, _baseDirectory) 2273parsedArgs = DefaultParse({"/rootnamespace:[abcdef", "a.vb"}, _baseDirectory) 2276parsedArgs = DefaultParse({"/rootnamespace:abcdef]", "a.vb"}, _baseDirectory) 2279parsedArgs = DefaultParse({"/rootnamespace:[[abcdef]]", "a.vb"}, _baseDirectory) 2282parsedArgs = DefaultParse({"/rootnamespace:[global]", "a.vb"}, _baseDirectory) 2286parsedArgs = DefaultParse({"/rootnamespace:goo.[global].bar", "a.vb"}, _baseDirectory) 2290parsedArgs = DefaultParse({"/rootnamespace:goo.[bar]", "a.vb"}, _baseDirectory) 2294parsedArgs = DefaultParse({"/rootnamespace:goo$", "a.vb"}, _baseDirectory) 2297parsedArgs = DefaultParse({"/rootnamespace:I(", "a.vb"}, _baseDirectory) 2300parsedArgs = DefaultParse({"/rootnamespace:_", "a.vb"}, _baseDirectory) 2303parsedArgs = DefaultParse({"/rootnamespace:[_]", "a.vb"}, _baseDirectory) 2306parsedArgs = DefaultParse({"/rootnamespace:__.___", "a.vb"}, _baseDirectory) 2310parsedArgs = DefaultParse({"/rootnamespace:[", "a.vb"}, _baseDirectory) 2313parsedArgs = DefaultParse({"/rootnamespace:]", "a.vb"}, _baseDirectory) 2316parsedArgs = DefaultParse({"/rootnamespace:[]", "a.vb"}, _baseDirectory) 2322Dim parsedArgs = DefaultParse({"/link:a", "/link:b,,,,c", "a.vb"}, _baseDirectory) 2329parsedArgs = DefaultParse({"/Link: ,,, b ,,", "a.vb"}, _baseDirectory) 2336parsedArgs = DefaultParse({"/l:", "a.vb"}, _baseDirectory) 2339parsedArgs = DefaultParse({"/L", "a.vb"}, _baseDirectory) 2342parsedArgs = DefaultParse({"/l+", "a.vb"}, _baseDirectory) 2345parsedArgs = DefaultParse({"/link-:", "a.vb"}, _baseDirectory) 2364Dim parsedArgs = DefaultParse({"/recurse:" & dir.ToString() & "\*.vb"}, _baseDirectory) 2372parsedArgs = DefaultParse({"/reCURSE:", "a.vb"}, _baseDirectory) 2375parsedArgs = DefaultParse({"/RECURSE: ", "a.vb"}, _baseDirectory) 2378parsedArgs = DefaultParse({"/recurse", "a.vb"}, _baseDirectory) 2381parsedArgs = DefaultParse({"/recurse+", "a.vb"}, _baseDirectory) 2384parsedArgs = DefaultParse({"/recurse-:", "a.vb"}, _baseDirectory) 2471Dim parsedArgs = DefaultParse({"/nostdlib", "/vbruntime-", "/r:a", "/REFERENCE:b,,,,c", "a.vb"}, _baseDirectory) 2478parsedArgs = DefaultParse({"/Reference: ,,, b ,,", "/nostdlib", "/vbruntime-", "a.vb"}, _baseDirectory) 2485parsedArgs = DefaultParse({"/r:", "a.vb"}, _baseDirectory) 2488parsedArgs = DefaultParse({"/R", "a.vb"}, _baseDirectory) 2491parsedArgs = DefaultParse({"/reference+", "a.vb"}, _baseDirectory) 2494parsedArgs = DefaultParse({"/reference-:", "a.vb"}, _baseDirectory) 2528Dim parsedArgs = DefaultParse({"/r:unresolved", "a.vb"}, _baseDirectory) 2530Dim metadataResolver = New SimpleMetadataResolver(_baseDirectory) 2544Dim parsedArgs = DefaultParse({"a.vb"}, _baseDirectory) 2546Dim metadataResolver = New SimpleMetadataResolver(_baseDirectory) 2560Dim parsedArgs = DefaultParse({"/a:goo.dll", "a.vb"}, _baseDirectory) 2565parsedArgs = DefaultParse({"/analyzer:goo.dll", "a.vb"}, _baseDirectory) 2570parsedArgs = DefaultParse({"/analyzer:""goo.dll""", "a.vb"}, _baseDirectory) 2575parsedArgs = DefaultParse({"/a:goo.dll,bar.dll", "a.vb"}, _baseDirectory) 2581parsedArgs = DefaultParse({"/a:", "a.vb"}, _baseDirectory) 2584parsedArgs = DefaultParse({"/a", "a.vb"}, _baseDirectory) 2832Dim parsedArgs = DefaultParse(New String() {"/ruleset:" + file.Path, "a.cs"}, _baseDirectory) 2857Dim parsedArgs = DefaultParse(New String() {"/ruleset:" + """" + file.Path + """", "a.cs"}, _baseDirectory) 2864Dim parsedArgs = DefaultParse(New String() {"/ruleset", "a.cs"}, _baseDirectory) 2869parsedArgs = DefaultParse(New String() {"/ruleset", "a.cs"}, _baseDirectory) 2874parsedArgs = DefaultParse(New String() {"/ruleset:blah", "a.cs"}, _baseDirectory) 2879parsedArgs = DefaultParse(New String() {"/ruleset:blah;blah.ruleset", "a.cs"}, _baseDirectory) 2885parsedArgs = DefaultParse(New String() {"/ruleset:" + file.Path, "a.cs"}, _baseDirectory) 2902Dim parsedArgs = DefaultParse({"/target:exe", "a.vb"}, _baseDirectory) 2906parsedArgs = DefaultParse({"/t:module", "a.vb"}, _baseDirectory) 2910parsedArgs = DefaultParse({"/target:library", "a.vb"}, _baseDirectory) 2914parsedArgs = DefaultParse({"/TARGET:winexe", "a.vb"}, _baseDirectory) 2918parsedArgs = DefaultParse({"/target:winmdobj", "a.vb"}, _baseDirectory) 2922parsedArgs = DefaultParse({"/target:appcontainerexe", "a.vb"}, _baseDirectory) 2926parsedArgs = DefaultParse({"/target:winexe", "/T:exe", "/target:module", "a.vb"}, _baseDirectory) 2930parsedArgs = DefaultParse({"/t", "a.vb"}, _baseDirectory) 2933parsedArgs = DefaultParse({"/target:", "a.vb"}, _baseDirectory) 2936parsedArgs = DefaultParse({"/target:xyz", "a.vb"}, _baseDirectory) 2939parsedArgs = DefaultParse({"/T+", "a.vb"}, _baseDirectory) 2942parsedArgs = DefaultParse({"/TARGET-:", "a.vb"}, _baseDirectory) 2948Dim parsedArgs = DefaultParse({"/target:exe"}, _baseDirectory) 2952parsedArgs = DefaultParse({"/t:module"}, _baseDirectory) 2956parsedArgs = DefaultParse({"/target:library"}, _baseDirectory) 2960parsedArgs = DefaultParse({"/TARGET:winexe"}, _baseDirectory) 2964parsedArgs = DefaultParse({"/target:winmdobj"}, _baseDirectory) 2968parsedArgs = DefaultParse({"/target:appcontainerexe"}, _baseDirectory) 2972parsedArgs = DefaultParse({"/target:winexe", "/T:exe", "/target:module"}, _baseDirectory) 2976parsedArgs = DefaultParse({"/t"}, _baseDirectory) 2981parsedArgs = DefaultParse({"/target:"}, _baseDirectory) 2986parsedArgs = DefaultParse({"/target:xyz"}, _baseDirectory) 2991parsedArgs = DefaultParse({"/T+"}, _baseDirectory) 2996parsedArgs = DefaultParse({"/TARGET-:"}, _baseDirectory) 3004Dim parsedArgs = DefaultParse({"/utf8output", "a.vb"}, _baseDirectory) 3008parsedArgs = DefaultParse({"/utf8output+", "a.vb"}, _baseDirectory) 3012parsedArgs = DefaultParse({"/utf8output-", "a.vb"}, _baseDirectory) 3017parsedArgs = DefaultParse({"/nologo", "a.vb"}, _baseDirectory) 3022parsedArgs = DefaultParse({"/utf8output+", "/utf8output-", "a.vb"}, _baseDirectory) 3027parsedArgs = DefaultParse({"/utf8output:", "a.vb"}, _baseDirectory) 3036Dim parsedArgs = DefaultParse({"a.vb"}, _baseDirectory) 3040parsedArgs = DefaultParse({"/debug-", "a.vb"}, _baseDirectory) 3045parsedArgs = DefaultParse({"/debug", "a.vb"}, _baseDirectory) 3050parsedArgs = DefaultParse({"/debug+", "a.vb"}, _baseDirectory) 3055parsedArgs = DefaultParse({"/debug+", "/debug-", "a.vb"}, _baseDirectory) 3060parsedArgs = DefaultParse({"/debug:full", "a.vb"}, _baseDirectory) 3065parsedArgs = DefaultParse({"/debug:FULL", "a.vb"}, _baseDirectory) 3070parsedArgs = DefaultParse({"/debug:pdbonly", "a.vb"}, _baseDirectory) 3075parsedArgs = DefaultParse({"/debug:portable", "a.vb"}, _baseDirectory) 3080parsedArgs = DefaultParse({"/debug:embedded", "a.vb"}, _baseDirectory) 3085parsedArgs = DefaultParse({"/debug:PDBONLY", "a.vb"}, _baseDirectory) 3090parsedArgs = DefaultParse({"/debug:full", "/debug:pdbonly", "a.vb"}, _baseDirectory) 3095parsedArgs = DefaultParse({"/debug:pdbonly", "/debug:full", "a.vb"}, _baseDirectory) 3100parsedArgs = DefaultParse({"/debug:pdbonly", "/debug-", "a.vb"}, _baseDirectory) 3105parsedArgs = DefaultParse({"/debug:pdbonly", "/debug-", "/debug", "a.vb"}, _baseDirectory) 3110parsedArgs = DefaultParse({"/debug:pdbonly", "/debug-", "/debug+", "a.vb"}, _baseDirectory) 3115parsedArgs = DefaultParse({"/debug:embedded", "/debug-", "/debug+", "a.vb"}, _baseDirectory) 3120parsedArgs = DefaultParse({"/debug:embedded", "/debug-", "a.vb"}, _baseDirectory) 3125parsedArgs = DefaultParse({"/debug:", "a.vb"}, _baseDirectory) 3128parsedArgs = DefaultParse({"/debug:+", "a.vb"}, _baseDirectory) 3131parsedArgs = DefaultParse({"/debug:invalid", "a.vb"}, _baseDirectory) 3134parsedArgs = DefaultParse({"/debug-:", "a.vb"}, _baseDirectory) 3137parsedArgs = DefaultParse({"/pdb:something", "a.vb"}, _baseDirectory) 3143Dim parsedArgs = DefaultParse({"/sourcelink:sl.json", "/debug:portable", "a.vb"}, _baseDirectory) 3145Assert.Equal(Path.Combine(_baseDirectory, "sl.json"), parsedArgs.SourceLink) 3147parsedArgs = DefaultParse({"/sourcelink:sl.json", "/debug:embedded", "a.vb"}, _baseDirectory) 3149Assert.Equal(Path.Combine(_baseDirectory, "sl.json"), parsedArgs.SourceLink) 3151parsedArgs = DefaultParse({"/sourcelink:""s l.json""", "/debug:embedded", "a.vb"}, _baseDirectory) 3153Assert.Equal(Path.Combine(_baseDirectory, "s l.json"), parsedArgs.SourceLink) 3155parsedArgs = DefaultParse({"/sourcelink:sl.json", "/debug:full", "a.vb"}, _baseDirectory) 3158parsedArgs = DefaultParse({"/sourcelink:sl.json", "/debug:pdbonly", "a.vb"}, _baseDirectory) 3161parsedArgs = DefaultParse({"/sourcelink:sl.json", "/debug-", "a.vb"}, _baseDirectory) 3164parsedArgs = DefaultParse({"/sourcelink:sl.json", "/debug+", "a.vb"}, _baseDirectory) 3167parsedArgs = DefaultParse({"/sourcelink:sl.json", "a.vb"}, _baseDirectory) 3234Dim parsedArgs = DefaultParse({"a.vb "}, _baseDirectory) 3238parsedArgs = DefaultParse({"/embed", "/debug:portable", "a.vb", "b.vb", "c.vb"}, _baseDirectory) 3242{"a.vb", "b.vb", "c.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3245parsedArgs = DefaultParse({"/embed:a.vb", "/embed:b.vb", "/debug:embedded", "a.vb", "b.vb", "c.vb"}, _baseDirectory) 3248{"a.vb", "b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3251parsedArgs = DefaultParse({"/embed:a.vb;b.vb", "/debug:portable", "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,b.vb""", "/debug:portable", "a,b.vb", "c.vb"}, _baseDirectory) 3266{"a,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.vb,b.vb""\""", "/debug:portable", "a.vb", "b.vb", "c.vb"}, _baseDirectory) 3278{"a.vb", "b.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3281parsedArgs = DefaultParse({"/embed:a.txt", "/embed", "/debug:portable", "a.vb", "b.vb", "c.vb"}, _baseDirectory) 3284{"a.txt", "a.vb", "b.vb", "c.vb"}.Select(Function(f) Path.Combine(_baseDirectory, f)), 3287parsedArgs = DefaultParse({"/embed", "a.vb"}, _baseDirectory) 3290parsedArgs = DefaultParse({"/embed:a.txt", "a.vb"}, _baseDirectory) 3293parsedArgs = DefaultParse({"/embed", "/debug-", "a.vb"}, _baseDirectory) 3296parsedArgs = DefaultParse({"/embed:a.txt", "/debug-", "a.vb"}, _baseDirectory) 3299parsedArgs = DefaultParse({"/embed", "/debug:full", "a.vb"}, _baseDirectory) 3302parsedArgs = DefaultParse({"/embed", "/debug:pdbonly", "a.vb"}, _baseDirectory) 3305parsedArgs = DefaultParse({"/embed", "/debug+", "a.vb"}, _baseDirectory) 3449Dim parsedArgs = DefaultParse({"/pathmap:", "a.vb"}, _baseDirectory) 3455parsedArgs = DefaultParse({"/pathmap:K1=V1", "a.vb"}, _baseDirectory) 3459parsedArgs = DefaultParse({$"/pathmap:abc{s}=/", "a.vb"}, _baseDirectory) 3463parsedArgs = DefaultParse({"/pathmap:K1=V1,K2=V2", "a.vb"}, _baseDirectory) 3468parsedArgs = DefaultParse({"/pathmap:,", "a.vb"}, _baseDirectory) 3472parsedArgs = DefaultParse({"/pathmap:,,", "a.vb"}, _baseDirectory) 3476parsedArgs = DefaultParse({"/pathmap:,,,", "a.vb"}, _baseDirectory) 3480parsedArgs = DefaultParse({"/pathmap:k=,=v", "a.vb"}, _baseDirectory) 3485parsedArgs = DefaultParse({"/pathmap:k=v=bad", "a.vb"}, _baseDirectory) 3489parsedArgs = DefaultParse({"/pathmap:k=", "a.vb"}, _baseDirectory) 3493parsedArgs = DefaultParse({"/pathmap:=v", "a.vb"}, _baseDirectory) 3497parsedArgs = DefaultParse({"/pathmap:""supporting spaces=is hard""", "a.vb"}, _baseDirectory) 3501parsedArgs = DefaultParse({"/pathmap:""K 1=V 1"",""K 2=V 2""", "a.vb"}, _baseDirectory) 3506parsedArgs = DefaultParse({"/pathmap:""K 1""=""V 1"",""K 2""=""V 2""", "a.vb"}, _baseDirectory) 3511parsedArgs = DefaultParse({"/pathmap:""a ==,,b""=""1,,== 2"",""x ==,,y""=""3 4"",", "a.vb"}, _baseDirectory) 3516parsedArgs = DefaultParse({"/pathmap:C:\temp\=/_1/,C:\temp\a\=/_2/,C:\temp\a\b\=/_3/", "a.cs", "a\b.cs", "a\b\c.cs"}, _baseDirectory) 3826parsedArgs = DefaultParse({"/out:\\b", "a.vb"}, _baseDirectory) 3834parsedArgs = DefaultParse({"/out:\\server\share\file.exe", "a.vb"}, _baseDirectory) 3843parsedArgs = DefaultParse({"/out:a.b" & vbNullChar & "b", "a.vb"}, _baseDirectory) 3870parsedArgs = DefaultParse({"/out:""a<>.dll""", "a.vb"}, _baseDirectory) 3897parsedArgs = DefaultParse({"/out:.exe", "a.vb"}, _baseDirectory) 3905parsedArgs = DefaultParse({"/t:exe", "/out:.exe", "a.vb"}, _baseDirectory) 3913parsedArgs = DefaultParse({"/t:library", "/out:.dll", "a.vb"}, _baseDirectory) 3921parsedArgs = DefaultParse({"/t:module", "/out:.netmodule", "a.vb"}, _baseDirectory) 3928parsedArgs = DefaultParse({".vb"}, _baseDirectory) 3936parsedArgs = DefaultParse({"/t:exe", ".vb"}, _baseDirectory) 3944parsedArgs = DefaultParse({"/t:library", ".vb"}, _baseDirectory) 3952parsedArgs = DefaultParse({"/t:module", ".vb"}, _baseDirectory) 3963Dim parsedArgs = DefaultParse({"/out:.x", "a.vb"}, _baseDirectory) 3970parsedArgs = DefaultParse({"/target:winexe", "/out:.x.eXe", "a.vb"}, _baseDirectory) 3977parsedArgs = DefaultParse({"/target:winexe", "/out:.exe", "a.vb"}, _baseDirectory) 3985parsedArgs = DefaultParse({"/target:library", "/out:.x", "a.vb"}, _baseDirectory) 3992parsedArgs = DefaultParse({"/target:library", "/out:.X.Dll", "a.vb"}, _baseDirectory) 3999parsedArgs = DefaultParse({"/target:library", "/out:.dll", "a.vb"}, _baseDirectory) 4007parsedArgs = DefaultParse({"/target:module", "/out:.x", "a.vb"}, _baseDirectory) 4014parsedArgs = DefaultParse({"/target:module", "/out:x.dll", "a.vb"}, _baseDirectory) 4021parsedArgs = DefaultParse({"/target:module", "/out:.x.netmodule", "a.vb"}, _baseDirectory) 4028parsedArgs = DefaultParse({"/target:module", "/out:x", "a.vb"}, _baseDirectory) 4039Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/keyfile:", "/target:library", "/nologo", "/preferreduilang:en", "a.vb"}) 4049Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/keyfile:""""", "/target:library", "/nologo", "/preferreduilang:en", "a.vb"}) 4059Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/keyfile:", "/publicsign", "/target:library", "/nologo", "/preferreduilang:en", "a.vb"}) 4069Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/keyfile:""""", "/publicsign", "/target:library", "/nologo", "/preferreduilang:en", "a.vb"}) 4674Dim parsedArgs = DefaultParse({"/KeyContainer:key-cont-name", "a.vb"}, _baseDirectory) 4678parsedArgs = DefaultParse({"/KEYcontainer", "a.vb"}, _baseDirectory) 4682parsedArgs = DefaultParse({"/keycontainer-", "a.vb"}, _baseDirectory) 4686parsedArgs = DefaultParse({"/keycontainer:", "a.vb"}, _baseDirectory) 4690parsedArgs = DefaultParse({"/keycontainer: ", "a.vb"}, _baseDirectory) 4695parsedArgs = DefaultParse({"/keyfile:\somepath\s""ome Fil""e.goo.bar", "a.cs"}, _baseDirectory) 4699parsedArgs = DefaultParse({"/keyFile", "a.cs"}, _baseDirectory) 4703parsedArgs = DefaultParse({"/keyfile-", "a.cs"}, _baseDirectory) 4707parsedArgs = DefaultParse({"/keyfile: ", "a.vb"}, _baseDirectory) 4712parsedArgs = DefaultParse({"a.vb"}, _baseDirectory) 4718parsedArgs = DefaultParse({"/keycontainer:a", "/keyfile:b", "a.vb"}, _baseDirectory) 4724parsedArgs = DefaultParse({"/keyfile:b", "/keycontainer:a", "a.vb"}, _baseDirectory) 4734Dim parsedArgs = DefaultParse({"/platform:X86", "a.vb"}, _baseDirectory) 4738parsedArgs = DefaultParse({"/platform:x64", "a.vb"}, _baseDirectory) 4742parsedArgs = DefaultParse({"/platform:itanium", "a.vb"}, _baseDirectory) 4746parsedArgs = DefaultParse({"/platform:anycpu", "a.vb"}, _baseDirectory) 4750parsedArgs = DefaultParse({"/platform:anycpu32bitpreferred", "/t:exe", "a.vb"}, _baseDirectory) 4754parsedArgs = DefaultParse({"/platform:anycpu32bitpreferred", "/t:appcontainerexe", "a.vb"}, _baseDirectory) 4758parsedArgs = DefaultParse({"/platform:arm", "a.vb"}, _baseDirectory) 4763parsedArgs = DefaultParse({"/debug-", "a.vb"}, _baseDirectory) 4768parsedArgs = DefaultParse({"/platform:", "a.vb"}, _baseDirectory) 4770parsedArgs = DefaultParse({"/platform", "a.vb"}, _baseDirectory) 4772parsedArgs = DefaultParse({"/platform+", "a.vb"}, _baseDirectory) 4776parsedArgs = DefaultParse({"/platform:abcdef", "a.vb"}, _baseDirectory) 4780parsedArgs = DefaultParse({"/platform:anycpu32bitpreferred", "/platform:anycpu", "a.vb"}, _baseDirectory) 4785parsedArgs = DefaultParse({"/platform:anycpu32bitpreferred", "/t:library", "a.vb"}, _baseDirectory) 4788parsedArgs = DefaultParse({"/platform:anycpu", "/platform:anycpu32bitpreferred", "/target:winmdobj", "a.vb"}, _baseDirectory) 4795Dim parsedArgs = DefaultParse({"/filealign:512", "a.vb"}, _baseDirectory) 4797parsedArgs = DefaultParse({"/filealign:1024", "a.vb"}, _baseDirectory) 4799parsedArgs = DefaultParse({"/filealign:2048", "a.vb"}, _baseDirectory) 4801parsedArgs = DefaultParse({"/filealign:4096", "a.vb"}, _baseDirectory) 4803parsedArgs = DefaultParse({"/filealign:8192", "a.vb"}, _baseDirectory) 4807parsedArgs = DefaultParse({"/filealign:01000", "a.vb"}, _baseDirectory) 4809parsedArgs = DefaultParse({"/filealign:02000", "a.vb"}, _baseDirectory) 4811parsedArgs = DefaultParse({"/filealign:04000", "a.vb"}, _baseDirectory) 4813parsedArgs = DefaultParse({"/filealign:010000", "a.vb"}, _baseDirectory) 4815parsedArgs = DefaultParse({"/filealign:020000", "a.vb"}, _baseDirectory) 4819parsedArgs = DefaultParse({"/filealign:0x200", "a.vb"}, _baseDirectory) 4821parsedArgs = DefaultParse({"/filealign:0x400", "a.vb"}, _baseDirectory) 4823parsedArgs = DefaultParse({"/filealign:0x800", "a.vb"}, _baseDirectory) 4825parsedArgs = DefaultParse({"/filealign:0x1000", "a.vb"}, _baseDirectory) 4827parsedArgs = DefaultParse({"/filealign:0x2000", "a.vb"}, _baseDirectory) 4831parsedArgs = DefaultParse({"/platform:x86", "a.vb"}, _baseDirectory) 4835parsedArgs = DefaultParse({"/filealign:", "a.vb"}, _baseDirectory) 4839parsedArgs = DefaultParse({"/filealign:0", "a.vb"}, _baseDirectory) 4841parsedArgs = DefaultParse({"/filealign:0x", "a.vb"}, _baseDirectory) 4843parsedArgs = DefaultParse({"/filealign:0x0", "a.vb"}, _baseDirectory) 4845parsedArgs = DefaultParse({"/filealign:-1", "a.vb"}, _baseDirectory) 4847parsedArgs = DefaultParse({"/filealign:-0x100", "a.vb"}, _baseDirectory) 4853Dim parsedArgs = DefaultParse({"/removeintcheckS", "a.vb"}, _baseDirectory) 4857parsedArgs = DefaultParse({"/removeintcheckS+", "a.vb"}, _baseDirectory) 4861parsedArgs = DefaultParse({"/removeintcheckS-", "a.vb"}, _baseDirectory) 4865parsedArgs = DefaultParse({"/removeintchecks+", "/removeintchecks-", "a.vb"}, _baseDirectory) 4869parsedArgs = DefaultParse({"/removeintchecks:", "a.vb"}, _baseDirectory) 4872parsedArgs = DefaultParse({"/removeintchecks:+", "a.vb"}, _baseDirectory) 4875parsedArgs = DefaultParse({"/removeintchecks+:", "a.vb"}, _baseDirectory) 4885Dim parsedArgs = DefaultParse({"/baseaddress:0", "a.vb"}, _baseDirectory) 4887parsedArgs = DefaultParse({"/baseaddress:1024", "a.vb"}, _baseDirectory) 4889parsedArgs = DefaultParse({"/baseaddress:2048", "a.vb"}, _baseDirectory) 4891parsedArgs = DefaultParse({"/baseaddress:4096", "a.vb"}, _baseDirectory) 4893parsedArgs = DefaultParse({"/baseaddress:8192", "a.vb"}, _baseDirectory) 4897parsedArgs = DefaultParse({"/baseaddress:0x200", "a.vb"}, _baseDirectory) 4899parsedArgs = DefaultParse({"/baseaddress:0x400", "a.vb"}, _baseDirectory) 4901parsedArgs = DefaultParse({"/baseaddress:0x800", "a.vb"}, _baseDirectory) 4903parsedArgs = DefaultParse({"/baseaddress:0x1000", "a.vb"}, _baseDirectory) 4905parsedArgs = DefaultParse({"/baseaddress:0xFFFFFFFFFFFFFFFF", "a.vb"}, _baseDirectory) 4907parsedArgs = DefaultParse({"/baseaddress:FFFFFFFFFFFFFFFF", "a.vb"}, _baseDirectory) 4911parsedArgs = DefaultParse({"/baseaddress:00", "a.vb"}, _baseDirectory) 4913parsedArgs = DefaultParse({"/baseaddress:01024", "a.vb"}, _baseDirectory) 4915parsedArgs = DefaultParse({"/baseaddress:02048", "a.vb"}, _baseDirectory) 4917parsedArgs = DefaultParse({"/baseaddress:04096", "a.vb"}, _baseDirectory) 4919parsedArgs = DefaultParse({"/baseaddress:08192", "a.vb"}, _baseDirectory) 4923parsedArgs = DefaultParse({"/platform:x86", "a.vb"}, _baseDirectory) 4927parsedArgs = DefaultParse({"/baseaddress:", "a.vb"}, _baseDirectory) 4931parsedArgs = DefaultParse({"/baseaddress:0x10000000000000000", "a.vb"}, _baseDirectory) 4933parsedArgs = DefaultParse({"/BASEADDRESS:-1", "a.vb"}, _baseDirectory) 4935parsedArgs = DefaultParse({"/BASEADDRESS:" + ULong.MaxValue.ToString, "a.vb"}, _baseDirectory) 4943Dim exitCode As Integer = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", binaryPath}).Run(outWriter, Nothing) 4952Dim parsedArgs = DefaultParse({"/nostdlib", "/vbruntime-", "/addMODULE:c:\,d:\x\y\z,abc,,", "a.vb"}, _baseDirectory) 4967parsedArgs = DefaultParse({"/ADDMODULE", "a.vb"}, _baseDirectory) 4970parsedArgs = DefaultParse({"/addmodule:", "a.vb"}, _baseDirectory) 4973parsedArgs = DefaultParse({"/addmodule+", "a.vb"}, _baseDirectory) 4979Dim parsedArgs = DefaultParse({"/libpath:c:\,d:\x\y\z,abc,,", "a.vb"}, _baseDirectory) 4981AssertReferencePathsEqual(parsedArgs.ReferencePaths, Nothing, "c:\", "d:\x\y\z", Path.Combine(_baseDirectory, "abc")) 4983parsedArgs = DefaultParse({"/lib:c:\Windows", "/libpaths:abc\def, , , ", "a.vb"}, _baseDirectory) 4985AssertReferencePathsEqual(parsedArgs.ReferencePaths, Nothing, "c:\Windows", Path.Combine(_baseDirectory, "abc\def")) 4987parsedArgs = DefaultParse({"/libpath", "a.vb"}, _baseDirectory) 4990parsedArgs = DefaultParse({"/libpath:", "a.vb"}, _baseDirectory) 4993parsedArgs = DefaultParse({"/libpath+", "a.vb"}, _baseDirectory) 5040Dim parsedArgs = DefaultParse({"/libpath:c:lib2", "/sdkpath:<>,d:\sdk1", "/vbruntime*", "/nostdlib", "a.vb"}, _baseDirectory) 5046parsedArgs = DefaultParse({"/sdkpath:c:\Windows", "/sdkpath:d:\Windows", "/vbruntime*", "/nostdlib", "a.vb"}, _baseDirectory) 5050parsedArgs = DefaultParse({"/sdkpath:c:\Windows,d:\blah", "a.vb"}, _baseDirectory) 5053parsedArgs = DefaultParse({"/libpath:c:\Windows,d:\blah", "/sdkpath:c:\lib2", "a.vb"}, _baseDirectory) 5056parsedArgs = DefaultParse({"/sdkpath", "/vbruntime*", "/nostdlib", "a.vb"}, _baseDirectory) 5059parsedArgs = DefaultParse({"/sdkpath:", "a.vb"}, _baseDirectory) 5062parsedArgs = DefaultParse({"/sdkpath+", "/vbruntime*", "/nostdlib", "a.vb"}, _baseDirectory) 5341Dim parsedArgs = DefaultParse({"/libpath:c:\lib2,", "@" & file.ToString(), "a.vb"}, _baseDirectory) 5358Dim parsedArgs = DefaultParse({"/highentropyva", "a.vb"}, _baseDirectory) 5360parsedArgs = DefaultParse({"/highentropyva+", "a.vb"}, _baseDirectory) 5362parsedArgs = DefaultParse({"/highentropyva-", "a.vb"}, _baseDirectory) 5364parsedArgs = DefaultParse({"/highentropyva:+", "a.vb"}, _baseDirectory) 5367parsedArgs = DefaultParse({"/highentropyva:", "a.vb"}, _baseDirectory) 5370parsedArgs = DefaultParse({"/highentropyva+ /highentropyva-", "a.vb"}, _baseDirectory) 5400Dim parsedArgs = DefaultParse({"/resource:goo.vb,ed", "/out:e.dll"}, _baseDirectory) 5402parsedArgs = DefaultParse({"/resource:goo.vb,ed"}, _baseDirectory) 5765Dim parsedArgs = DefaultParse({"a.vb"}, _baseDirectory) 5769parsedArgs = DefaultParse({"/warnaserror", "a.vb"}, _baseDirectory) 5773parsedArgs = DefaultParse({"/warnaserror+", "a.vb"}, _baseDirectory) 5777parsedArgs = DefaultParse({"/warnaserror:", "a.vb"}, _baseDirectory) 5781parsedArgs = DefaultParse({"/warnaserror:42024,42025", "a.vb"}, _baseDirectory) 5786parsedArgs = DefaultParse({"/warnaserror+:", "a.vb"}, _baseDirectory) 5790parsedArgs = DefaultParse({"/warnaserror+:42024,42025", "a.vb"}, _baseDirectory) 5795parsedArgs = DefaultParse({"/warnaserror-", "a.vb"}, _baseDirectory) 5799parsedArgs = DefaultParse({"/warnaserror-:", "a.vb"}, _baseDirectory) 5803parsedArgs = DefaultParse({"/warnaserror-:42024,42025", "a.vb"}, _baseDirectory) 5808parsedArgs = DefaultParse({"/nowarn", "a.vb"}, _baseDirectory) 5812parsedArgs = DefaultParse({"/nowarn:", "a.vb"}, _baseDirectory) 5816parsedArgs = DefaultParse({"/nowarn:42024,42025", "a.vb"}, _baseDirectory) 5828Dim parsedArgs = DefaultParse({"/warnaserror:1", "a.vb"}, _baseDirectory) 5832parsedArgs = DefaultParse({"/warnaserror:abc", "a.vb"}, _baseDirectory) 5836parsedArgs = DefaultParse({"/nowarn:1", "a.vb"}, _baseDirectory) 5840parsedArgs = DefaultParse({"/nowarn:abc", "a.vb"}, _baseDirectory) 6892Dim vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en"}) 6899vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en", "/noconfig"}) 6906vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en", "/NOCONFIG"}) 6913vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en", "-noconfig"}) 6940Dim vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en"}) 6947vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en", "/nowarn"}) 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"}) 7037Dim vbc = New MockVisualBasicCompiler(rsp, _baseDirectory, {source, "/preferreduilang:en"}) 7056Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define", source}) 7062vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:", source}) 7068vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define: ", source}) 7074vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:_,", source}) 7080vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:_a,", source}) 7086vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:_ a,", source}) 7092vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:a,_,b", source}) 7098vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:_", source}) 7104vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:_ ", source}) 7110vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:a,_", source}) 7127Dim vbc As New MockVisualBasicCompiler(defaultResponseFile, _baseDirectory, {}) 7193Dim vbc As New MockVisualBasicCompiler(defaultResponseFile, _baseDirectory, {"/noconfig"}) 7227Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", "/blah", "/nowarn:2007,42353,1234,2026", source}) 7245Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", "/define:I(", source}) 7251vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", "/define:I*", source}) 7263Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/imports:" + [imports]}) 7282Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/netcf", source}) 7288vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/bugreport", source}) 7294vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/bugreport:test.dmp", source}) 7300vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/errorreport", source}) 7306vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/errorreport:prompt", source}) 7312vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/errorreport:queue", source}) 7318vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/errorreport:send", source}) 7324vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/errorreport:", source}) 7330vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/bugreport:", source}) 7336vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/novbruntimeref", source}) 7343vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/errorreport:PROMPT", source}) 7356Dim exitCode = New MockVisualBasicCompiler(Nothing, _baseDirectory, {""}).Run(outWriter, Nothing) 7367Dim exitCode = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/preferreduilang"}).Run(outWriter, Nothing) 7372exitCode = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/preferreduilang:"}).Run(outWriter, Nothing) 7377exitCode = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/preferreduilang:zz"}).Run(outWriter, Nothing) 7382exitCode = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/preferreduilang:en-zz"}).Run(outWriter, Nothing) 7387exitCode = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/preferreduilang:en-US"}).Run(outWriter, Nothing) 7392exitCode = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/preferreduilang:de"}).Run(outWriter, Nothing) 7397exitCode = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/preferreduilang:de-AT"}).Run(outWriter, Nothing) 7405Dim parsedArgs = DefaultParse({"/t:library", "con.vb"}, _baseDirectory) 7408parsedArgs = DefaultParse({"/out:com1.exe", "a.vb"}, _baseDirectory) 7415parsedArgs = DefaultParse({"/doc:..\lpt2.xml", "a.vb"}, _baseDirectory) 7422parsedArgs = DefaultParse({"/SdkPath:..\aux", "com.vb"}, _baseDirectory) 7437Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/r:.\com3.dll", "/preferreduilang:en", source}) 7443vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", "/link:prn.dll", source}) 7449vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"@aux.rsp", "/preferreduilang:en", source}) 7457vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", "/vbruntime:..\con.dll", source}) 7464vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/LibPath:lpt1,Lpt2,LPT9", source}) 7718Dim args = DefaultParse({"/features:Test", "a.vb"}, _baseDirectory) 7722args = DefaultParse({"/features:Test", "a.vb", "/Features:Experiment"}, _baseDirectory) 7728args = DefaultParse({"/features:Test=false,Key=value", "a.vb"}, _baseDirectory) 7734args = DefaultParse({"/features", "a.vb"}, _baseDirectory) 7738args = DefaultParse({"/features:Test,", "a.vb"}, _baseDirectory) 7745Dim args = DefaultParse({"/additionalfile:web.config", "a.vb"}, _baseDirectory) 7747Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles.Single().Path) 7749args = DefaultParse({"/additionalfile:web.config", "a.vb", "/additionalfile:app.manifest"}, _baseDirectory) 7752Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7753Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path) 7755args = DefaultParse({"/additionalfile:web.config", "a.vb", "/additionalfile:web.config"}, _baseDirectory) 7758Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7759Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(1).Path) 7761args = DefaultParse({"/additionalfile:..\web.config", "a.vb"}, _baseDirectory) 7763Assert.Equal(Path.Combine(_baseDirectory, "..\web.config"), args.AdditionalFiles.Single().Path) 7777args = DefaultParse({"/additionalfile:web.config;app.manifest", "a.vb"}, _baseDirectory) 7780Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7781Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path) 7783args = DefaultParse({"/additionalfile:web.config,app.manifest", "a.vb"}, _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,app.manifest""", "a.vb"}, _baseDirectory) 7792Assert.Equal(Path.Combine(_baseDirectory, "web.config,app.manifest"), args.AdditionalFiles(0).Path) 7794args = DefaultParse({"/additionalfile:\""web.config,app.manifest\""", "a.vb"}, _baseDirectory) 7797Assert.Equal(Path.Combine(_baseDirectory, "web.config,app.manifest"), args.AdditionalFiles(0).Path) 7799args = DefaultParse({"/additionalfile:\""""web.config,app.manifest""\""", "a.vb"}, _baseDirectory) 7802Assert.Equal(Path.Combine(_baseDirectory, "web.config"), args.AdditionalFiles(0).Path) 7803Assert.Equal(Path.Combine(_baseDirectory, "app.manifest"), args.AdditionalFiles(1).Path) 7805args = DefaultParse({"/additionalfile:web.config:app.manifest", "a.vb"}, _baseDirectory) 7808Assert.Equal(Path.Combine(_baseDirectory, "web.config:app.manifest"), args.AdditionalFiles(0).Path) 7810args = DefaultParse({"/additionalfile", "a.vb"}, _baseDirectory) 7814args = DefaultParse({"/additionalfile:", "a.vb"}, _baseDirectory) 7821Dim args = DefaultParse({"/analyzerconfig:.editorconfig", "a.vb"}, _baseDirectory) 7823Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths.Single()) 7825args = DefaultParse({"/analyzerconfig:.editorconfig", "a.vb", "/analyzerconfig:subdir\.editorconfig"}, _baseDirectory) 7828Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(0)) 7829Assert.Equal(Path.Combine(_baseDirectory, "subdir\.editorconfig"), args.AnalyzerConfigPaths(1)) 7831args = DefaultParse({"/analyzerconfig:.editorconfig", "a.vb", "/analyzerconfig:.editorconfig"}, _baseDirectory) 7834Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(0)) 7835Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(1)) 7837args = DefaultParse({"/analyzerconfig:..\.editorconfig", "a.vb"}, _baseDirectory) 7839Assert.Equal(Path.Combine(_baseDirectory, "..\.editorconfig"), args.AnalyzerConfigPaths.Single()) 7841args = DefaultParse({"/analyzerconfig:.editorconfig;subdir\.editorconfig", "a.vb"}, _baseDirectory) 7844Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(0)) 7845Assert.Equal(Path.Combine(_baseDirectory, "subdir\.editorconfig"), args.AnalyzerConfigPaths(1)) 7847args = DefaultParse({"/analyzerconfig:.editorconfig,subdir\.editorconfig", "a.vb"}, _baseDirectory) 7850Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig"), args.AnalyzerConfigPaths(0)) 7851Assert.Equal(Path.Combine(_baseDirectory, "subdir\.editorconfig"), args.AnalyzerConfigPaths(1)) 7853args = DefaultParse({"/analyzerconfig:.editorconfig:.editorconfig", "a.vb"}, _baseDirectory) 7856Assert.Equal(Path.Combine(_baseDirectory, ".editorconfig:.editorconfig"), args.AnalyzerConfigPaths(0)) 7858args = DefaultParse({"/analyzerconfig", "a.vb"}, _baseDirectory) 7866args = DefaultParse({"/analyzerconfig:", "a.vb"}, _baseDirectory) 8907Dim args1 = DefaultParse({"/reportanalyzer", "a.vb"}, _baseDirectory) 8910Dim args2 = DefaultParse({"", "a.vb"}, _baseDirectory) 8923_baseDirectory, 8941Dim ParsedArgs = DefaultParse({"a.vb"}, _baseDirectory) 8945ParsedArgs = DefaultParse({"/skipanalyzers+", "a.vb"}, _baseDirectory) 8949ParsedArgs = DefaultParse({"/skipanalyzers", "a.vb"}, _baseDirectory) 8953ParsedArgs = DefaultParse({"/SKIPANALYZERS+", "a.vb"}, _baseDirectory) 8957ParsedArgs = DefaultParse({"/skipanalyzers-", "a.vb"}, _baseDirectory) 8961ParsedArgs = DefaultParse({"/skipanalyzers-", "/skipanalyzers+", "a.vb"}, _baseDirectory) 8965ParsedArgs = DefaultParse({"/skipanalyzers", "/skipanalyzers-", "a.vb"}, _baseDirectory) 8978Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {skipAnalyzersFlag, "/reportanalyzer", "/t:library", "/a:" + Assembly.GetExecutingAssembly().Location, source}) 9001Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/t:library", source}, 9025Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/t:library", $"/warnaserror:{AnalyzerExecutor.AnalyzerExceptionDiagnosticId}", source}, 9046Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, {"/t:library", source}, 9082Dim vbc = New MockVisualBasicCompiler(Nothing, _baseDirectory, arguments, analyzer) 9132Dim args = DefaultParse({"e:c:\test\test.cs", "/t:library"}, _baseDirectory) 9229Dim parsedArgs = FullParse("/publicsign /keyfile:test.snk a.cs", _baseDirectory) 9230Assert.Equal(Path.Combine(_baseDirectory, "test.snk"), parsedArgs.CompilationOptions.CryptoKeyFile) 9237Dim parsedArgs = FullParse("/publicsign /keyfile: a.cs", _baseDirectory) 9244Dim parsedArgs = FullParse("/publicsign /keyfile:"""" a.cs", _baseDirectory) 9548Dim vbc = New MockVisualBasicCompiler(_baseDirectory, {"/nologo", "/preferreduilang:en", $"/out:{exePath}", srcPath}) 9568Dim vbc = New MockVisualBasicCompiler(_baseDirectory, {"/nologo", "/preferreduilang:en", "/debug", $"/out:{exePath}", srcPath}) 9587Dim vbc = New MockVisualBasicCompiler(_baseDirectory, {"/nologo", "/preferreduilang:en", $"/doc:{xmlPath}", srcPath}) 9608Dim vbc = New MockVisualBasicCompiler(_baseDirectory, {"/nologo", "/preferreduilang:en", "/debug:" & format, $"/sourcelink:{sourceLinkPath}", srcPath}) 9633Dim parsedArgs = DefaultParse({"/define:1", "a.cs"}, _baseDirectory) 9639Dim parsedArgs = DefaultParse({"/langversion:1000", "a.cs"}, _baseDirectory) 9714Dim compiler = New MockVisualBasicCompiler(Nothing, _baseDirectory,