137 references to MockVisualBasicCompiler
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (137)
CommandLineTests.vb (131)
76
Dim cmd = New
MockVisualBasicCompiler
(Nothing, dir.Path, {
113
Dim cmd = New
MockVisualBasicCompiler
(Nothing, dir.Path, {
171
Dim cmd = New
MockVisualBasicCompiler
(Nothing, dir.Path, {
208
Dim cmd = New
MockVisualBasicCompiler
(Nothing, dir.Path, {
238
Dim cmd = New
MockVisualBasicCompiler
(Nothing, dir.Path, {"/nologo", "/errorlog:errorlog", $"/doc:{docName}", "/warnaserror", src.Path})
257
Dim cmd = New
MockVisualBasicCompiler
(Nothing, dir.Path, {"/nologo", "/t:library", "/preferreduilang:en", $"/doc:{docName}", src.Path})
286
Dim cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/t:library", "/nowarn", "/warnaserror-", src})
289
cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/t:library", "/nowarn", "/warnaserror", src})
292
cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/t:library", "/nowarn", "/warnaserror+", src})
295
cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/t:library", "/warnaserror-", "/nowarn", src})
298
cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/t:library", "/warnaserror", "/nowarn", src})
301
cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/t:library", "/warnaserror+", "/nowarn", src})
334
Dim vbc As New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/target:exe", "/rootnamespace:""test""", "/main:""test.Module1""", src})
360
Dim compiler As New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/target:exe", "/main:""Module1""", file})
474
Dim cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/t:library", "/nowarn:-1", src})
480
cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/t:library", "/nowarn:-12345678901234567890", src})
486
cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/t:library", "/nowarn:-1234567890123456789", src})
499
Dim cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/preferreduilang:en"})
514
Dim cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/t:library", src})
532
Dim cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo+", "/t:library", src})
550
Dim cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/t:library", "/preferreduilang:en", src})
591
Dim cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo-", "/preferreduilang:en", "/t:library", src})
758
Dim cmd = New
MockVisualBasicCompiler
(rsp, _baseDirectory, {"b.vb"})
780
Dim cmd = New
MockVisualBasicCompiler
(rsp, _baseDirectory, {"b.vb"})
1016
Dim exitCode = New
MockVisualBasicCompiler
(Nothing, baseDir,
2142
Dim exitCode As Integer = New
MockVisualBasicCompiler
(Nothing, dir.ToString(), {"/langversion:?"}).Run(outWriter, Nothing)
2413
Dim exitCode As Integer = New
MockVisualBasicCompiler
(Nothing, folder.Path, {"/nologo", "/preferreduilang:en", "/t:library", "/recurse:.", "b.vb", "/out:abc.dll"}).Run(outWriter, Nothing)
2418
exitCode = New
MockVisualBasicCompiler
(Nothing, folder.Path, {"/nologo", "/preferreduilang:en", "/t:library", "/recurse:. ", "b.vb", "/out:abc.dll"}).Run(outWriter, Nothing)
2423
exitCode = New
MockVisualBasicCompiler
(Nothing, folder.Path, {"/nologo", "/preferreduilang:en", "/t:library", "/recurse: . ", "/out:abc.dll"}).Run(outWriter, Nothing)
2428
exitCode = New
MockVisualBasicCompiler
(Nothing, folder.Path, {"/nologo", "/preferreduilang:en", "/t:library", "/recurse:./.", "/out:abc.dll"}).Run(outWriter, Nothing)
2463
Dim exitCode = New
MockVisualBasicCompiler
(Nothing, folder.Path, {"/nologo", "/preferreduilang:en", "/t:exe", "/out:abc.exe"}).Run(outWriter, Nothing)
2596
Dim vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path, {"/nologo", "/preferreduilang:en", "/t:library", "/a:missing.dll", "a.vb"})
2613
Dim vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path, {"/nologo", "/preferreduilang:en", "/t:library", "/a:" + GetType(Object).Assembly.Location, "a.vb"})
2631
Dim vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path, {"/nologo", "/preferreduilang:en", "/t:library", "/a:" + Assembly.GetExecutingAssembly().Location, "a.vb"})
2664
Dim vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path, {"/nologo", "/t:library", "/a:" + Assembly.GetExecutingAssembly().Location, "a.vb", "/ruleset:" + ruleSetFile.Path})
2694
Dim vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path,
2708
vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path,
2744
Dim vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path,
2759
vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path,
2798
Dim vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path, {"/nologo", "/t:library", "/a:" + Assembly.GetExecutingAssembly().Location, "a.vb", "/ruleset:" + ruleSetFile.Path})
3185
Dim vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path, {"/nologo", "/debug:embedded", "/sourcelink:sl.json", "a.vb"})
3218
Dim vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path, {"/nologo", "/debug:portable", "/sourcelink:sl.json", "a.vb"})
3373
Dim vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path, {"/nologo", debugSwitch, embedSwitch, "embed.vb", "embed2.vb"})
3614
Dim vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path, {"/nologo", "/preferreduilang:en", "/nosdkpath", "/t:library", "a.vb"})
4038
Dim vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/keyfile:", "/target:library", "/nologo", "/preferreduilang:en", "a.vb"})
4048
Dim vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/keyfile:""""", "/target:library", "/nologo", "/preferreduilang:en", "a.vb"})
4058
Dim vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/keyfile:", "/publicsign", "/target:library", "/nologo", "/preferreduilang:en", "a.vb"})
4068
Dim vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/keyfile:""""", "/publicsign", "/target:library", "/nologo", "/preferreduilang:en", "a.vb"})
4942
Dim exitCode As Integer = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", binaryPath}).Run(outWriter, Nothing)
5008
Dim exitCode As Integer = New
MockVisualBasicCompiler
(Nothing, subDirectory, {"/nologo", "/t:library", "/out:abc.xyz", src.ToString()}).Run(outWriter, Nothing)
5013
exitCode = New
MockVisualBasicCompiler
(Nothing, baseDirectory, {"/nologo", "/libpath:temp", "/r:abc.xyz.dll", "/t:library", src.ToString()}).Run(outWriter, Nothing)
5030
Dim exitCode As Integer = New
MockVisualBasicCompiler
(Nothing, baseDirectory, {"/nologo", "/preferreduilang:en", "/t:library", "/out:" & subFolder.ToString(), src.ToString()}).Run(outWriter, Nothing)
5733
Dim vbc As New
MockVisualBasicCompiler
(Nothing, dir.Path, commandLineArguments.Concat({inputName1, inputName2}).ToArray())
5873
Dim vbc As New
MockVisualBasicCompiler
(Nothing, dir.Path, commandLineArguments.Concat({fileName}).ToArray())
5925
Dim vbc As New
MockVisualBasicCompiler
(Nothing, dir.Path, {fileName, "/preferreduilang:en"})
5978
Dim vbc As New
MockVisualBasicCompiler
(Nothing, dir.Path, {fileName, "/preferreduilang:en", "-imports:System"})
6015
Dim vbc As New
MockVisualBasicCompiler
(Nothing, dir.Path, {fileName, "/preferreduilang:en"})
6065
Dim vbc As New
MockVisualBasicCompiler
(Nothing, dir.Path, {fileName, "/preferreduilang:en"})
6109
Dim vbc As New
MockVisualBasicCompiler
(Nothing, dir.Path, {fileName, "/preferreduilang:en"})
6157
Dim vbc As New
MockVisualBasicCompiler
(Nothing, dir.Path, {fileName, "/preferreduilang:en"})
6203
Dim vbc As New
MockVisualBasicCompiler
(Nothing, dir.Path, {fileName, "/preferreduilang:en"})
6245
Dim vbc As New
MockVisualBasicCompiler
(Nothing, dir.Path, {fileName, "/preferreduilang:en"})
6280
Dim vbc As New
MockVisualBasicCompiler
(Nothing, dir.Path, {fileName, "/target:exe", "/preferreduilang:en", "/out:sub\a.exe"})
6312
Dim vbc As New
MockVisualBasicCompiler
(Nothing, dir.Path, {fileName, "/preferreduilang:en", "/target:exe", "/out:sub\"})
6346
Dim vbc As New
MockVisualBasicCompiler
(Nothing, dir.Path, {fileName, "/preferreduilang:en", "/target:exe", "/out:sub\ "})
6380
Dim vbc As New
MockVisualBasicCompiler
(Nothing, dir.Path, {fileName, "/preferreduilang:en", "/target:exe", "/out:aaa:\a.exe"})
6412
Dim vbc As New
MockVisualBasicCompiler
(Nothing, dir.Path, {fileName, "/preferreduilang:en", "/target:exe", "/out: "})
6799
vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path,
6807
vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path,
6891
Dim vbc = New
MockVisualBasicCompiler
(rsp, _baseDirectory, {source, "/preferreduilang:en"})
6898
vbc = New
MockVisualBasicCompiler
(rsp, _baseDirectory, {source, "/preferreduilang:en", "/noconfig"})
6905
vbc = New
MockVisualBasicCompiler
(rsp, _baseDirectory, {source, "/preferreduilang:en", "/NOCONFIG"})
6912
vbc = New
MockVisualBasicCompiler
(rsp, _baseDirectory, {source, "/preferreduilang:en", "-noconfig"})
6939
Dim vbc = New
MockVisualBasicCompiler
(rsp, _baseDirectory, {source, "/preferreduilang:en"})
6946
vbc = New
MockVisualBasicCompiler
(rsp, _baseDirectory, {source, "/preferreduilang:en", "/nowarn"})
6973
Dim vbc = New
MockVisualBasicCompiler
(rsp, _baseDirectory, {source, "/preferreduilang:en"})
6980
vbc = New
MockVisualBasicCompiler
(rsp, _baseDirectory, {source, "/preferreduilang:en", "/nowarn"})
7007
Dim vbc = New
MockVisualBasicCompiler
(rsp, _baseDirectory, {source, "/preferreduilang:en"})
7014
vbc = New
MockVisualBasicCompiler
(rsp, _baseDirectory, {source, "/preferreduilang:en", "/nowarn"})
7036
Dim vbc = New
MockVisualBasicCompiler
(rsp, _baseDirectory, {source, "/preferreduilang:en"})
7055
Dim vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define", source})
7061
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:", source})
7067
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define: ", source})
7073
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:_,", source})
7079
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:_a,", source})
7085
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:_ a,", source})
7091
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:a,_,b", source})
7097
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:_", source})
7103
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:_ ", source})
7109
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"-nologo", "/preferreduilang:en", "/t:libraRY", "/define:a,_", source})
7126
Dim vbc As New
MockVisualBasicCompiler
(defaultResponseFile, _baseDirectory, {})
7192
Dim vbc As New
MockVisualBasicCompiler
(defaultResponseFile, _baseDirectory, {"/noconfig"})
7226
Dim vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", "/blah", "/nowarn:2007,42353,1234,2026", source})
7244
Dim vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", "/define:I(", source})
7250
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", "/define:I*", source})
7262
Dim vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/imports:" + [imports]})
7281
Dim vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/netcf", source})
7287
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/bugreport", source})
7293
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/bugreport:test.dmp", source})
7299
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/errorreport", source})
7305
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/errorreport:prompt", source})
7311
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/errorreport:queue", source})
7317
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/errorreport:send", source})
7323
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/errorreport:", source})
7329
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/bugreport:", source})
7335
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/novbruntimeref", source})
7342
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/errorreport:PROMPT", source})
7355
Dim exitCode = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {""}).Run(outWriter, Nothing)
7366
Dim exitCode = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/preferreduilang"}).Run(outWriter, Nothing)
7371
exitCode = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/preferreduilang:"}).Run(outWriter, Nothing)
7376
exitCode = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/preferreduilang:zz"}).Run(outWriter, Nothing)
7381
exitCode = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/preferreduilang:en-zz"}).Run(outWriter, Nothing)
7386
exitCode = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/preferreduilang:en-US"}).Run(outWriter, Nothing)
7391
exitCode = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/preferreduilang:de"}).Run(outWriter, Nothing)
7396
exitCode = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/preferreduilang:de-AT"}).Run(outWriter, Nothing)
7436
Dim vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/r:.\com3.dll", "/preferreduilang:en", source})
7442
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", "/link:prn.dll", source})
7448
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"@aux.rsp", "/preferreduilang:en", source})
7456
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/nologo", "/preferreduilang:en", "/vbruntime:..\con.dll", source})
7463
vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {"/LibPath:lpt1,Lpt2,LPT9", source})
7582
Dim vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path, {"/nologo", "/preferreduilang:en", "/t:library", "a.vb"})
7832
Dim vbc = New
MockVisualBasicCompiler
(Nothing, sourceDir.Path, args, analyzers, generators)
8837
Dim vbc = New
MockVisualBasicCompiler
(
8894
Dim vbc = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, {skipAnalyzersFlag, "/reportanalyzer", "/t:library", "/a:" + Assembly.GetExecutingAssembly().Location, source})
9037
Dim vbc As New
MockVisualBasicCompiler
(Nothing, dir.Path, {"/nologo", "/target:exe", fileName})
9242
Dim vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path,
9313
Dim vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path,
9360
Dim vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path,
9453
Assert.Equal(0, New
MockVisualBasicCompiler
(Nothing, dir.Path, {fileName, targetArg, outArg}).Run(output, Nothing))
9591
Dim vbc = New
MockVisualBasicCompiler
(Nothing, dir.Path, args)
9630
Dim compiler = New
MockVisualBasicCompiler
(Nothing, _baseDirectory,
SarifErrorLoggerTests.vb (3)
57
Dim cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, arguments)
93
Dim cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, arguments)
134
Dim cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory, arguments)
TouchedFileLoggingTests.vb (3)
38
Dim cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory,
70
Dim cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory,
111
Dim cmd = New
MockVisualBasicCompiler
(Nothing, _baseDirectory,