Base:
40 references to ToString
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (4)
CommandLineTests.cs (4)
1236var parsedArgs = DefaultParse(new[] { "/recurse:" + dir.ToString() + "\\*.cs" }, WorkingDirectory); 1239parsedArgs.SourceFiles.Select((file) => file.Path.Replace(dir.ToString(), "{DIR}"))); 1241parsedArgs = DefaultParse(new[] { "*.cs" }, dir.ToString()); 1244parsedArgs.SourceFiles.Select((file) => file.Path.Replace(dir.ToString(), "{DIR}")));
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (36)
CommandLineTests.vb (36)
2150Dim exitCode As Integer = New MockVisualBasicCompiler(Nothing, dir.ToString(), {"/langversion:?"}).Run(outWriter, Nothing) 2371Dim parsedArgs = DefaultParse({"/recurse:" & dir.ToString() & "\*.vb"}, _baseDirectory) 2373AssertEx.Equal({"{DIR}\a.vb", "{DIR}\b.vb", "{DIR}\d2\e.vb"}, parsedArgs.SourceFiles.Select(Function(file) file.Path.Replace(dir.ToString(), "{DIR}"))) 2375parsedArgs = DefaultParse({"*.vb"}, dir.ToString()) 2377AssertEx.Equal({"{DIR}\a.vb", "{DIR}\b.vb"}, parsedArgs.SourceFiles.Select(Function(file) file.Path.Replace(dir.ToString(), "{DIR}"))) 4109dir.ToString()), 4110startFolder:=dir.ToString()) 4113Dim fileContents = File.ReadAllBytes(dir.ToString() & "\src.xml") 4139Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc+ {0}", src.ToString()), startFolder:=dir.ToString(), expectedRetCode:=0) 4142Assert.True(File.Exists(Path.Combine(dir.ToString(), "a.xml"))) 4189Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc+ {0}", src.ToString()), startFolder:=dir.ToString(), expectedRetCode:=0) 4224output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc+ {0}", src.ToString()), startFolder:=dir.ToString(), expectedRetCode:=0) 4265Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc:abcdfg.xyz /doc+ {0}", src.ToString()), startFolder:=dir.ToString()) 4268Assert.True(File.Exists(Path.Combine(dir.ToString(), "a.xml"))) 4284Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc /out:MyXml.dll {0}", src.ToString()), startFolder:=dir.ToString()) 4287Assert.True(File.Exists(Path.Combine(dir.ToString(), "MyXml.xml"))) 4303Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc:doc.xml /doc+ {0}", src.ToString()), startFolder:=dir.ToString()) 4306Assert.True(File.Exists(Path.Combine(dir.ToString(), "a.xml"))) 4322Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc:doc.xml /out:out.dll {0}", src.ToString()), startFolder:=dir.ToString()) 4325Assert.True(File.Exists(Path.Combine(dir.ToString(), "doc.xml"))) 4341Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc:doc.xml /doc /out:out.dll {0}", src.ToString()), startFolder:=dir.ToString()) 4344Assert.True(File.Exists(Path.Combine(dir.ToString(), "out.xml"))) 4360Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /t:library /doc:doc.xml /out:out.dll /doc+ {0}", src.ToString()), startFolder:=dir.ToString()) 4363Assert.True(File.Exists(Path.Combine(dir.ToString(), "out.xml"))) 5007Dim baseDirectory = tempFolder.ToString() 5010Dim subDirectory = subFolder.ToString() 5031Dim baseDirectory = tempFolder.ToString() 5038Dim exitCode As Integer = New MockVisualBasicCompiler(Nothing, baseDirectory, {"/nologo", "/preferreduilang:en", "/t:library", "/out:" & subFolder.ToString(), src.ToString()}).Run(outWriter, Nothing) 5040Assert.True(outWriter.ToString().Contains("error BC2012: can't open '" & subFolder.ToString() & "' for writing: ")) ' Cannot create a file when that file already exists. 5048Dim baseDirectory = tempFolder.ToString() 8673Dim output = ProcessUtilities.RunAndGetOutput(s_basicCompilerExecutable, String.Format("/nologo /doc:doc.xml /out:out.exe /resource:doc.xml {0}", src.ToString()), startFolder:=dir.ToString()) 8676Assert.True(File.Exists(Path.Combine(dir.ToString(), "doc.xml"))) 8696Using reader As New StreamReader(Path.Combine(dir.ToString(), "doc.xml")) 8701output = ProcessUtilities.RunAndGetOutput(Path.Combine(dir.ToString(), "out.exe"), startFolder:=dir.ToString()) 9328Dim folderName = Temp.CreateDirectory().ToString()