1 instantiation of CSharpCommandLineArguments
Microsoft.CodeAnalysis.CSharp (1)
55 references to CSharpCommandLineArguments
Microsoft.CodeAnalysis.CodeStyle.UnitTestUtilities (1)
Microsoft.CodeAnalysis.CSharp (3)
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (42)
CommandLineTests.cs (41)
120private CSharpCommandLineArguments ScriptParse(IEnumerable<string> args, string baseDirectory)
125private CSharpCommandLineArguments FullParse(string commandLine, string baseDirectory, string sdkDirectory = null, string additionalReferenceDirectories = null)
505var args = parser.Parse(new[] { "first.cs", "second.cs", "@a.rsp", "last.cs" }, basePath, SdkDirectory);
522var parser = CSharpCommandLineParser.Default.Parse(new[] { "c:/test.cs" }, baseDirectory: null, SdkDirectory);
534var parser = CSharpCommandLineParser.Default.Parse(new[] { "/additionalfile:web.config", "c:/test.cs" }, baseDirectory: null, SdkDirectory);
548var parser = CSharpCommandLineParser.Default.Parse(new[] { "/additionalfile:*", "c:/test.cs" }, baseDirectory: null, SdkDirectory);
564var parser = CSharpCommandLineParser.Default.Parse(new[] { "file.cs", $"-out:{parentDir.Path}", "/noSdkPath" }, parentDir.Path, null);
602var args = parser.Parse(new[] { @"*.cs", @"/recurse:a\*.cs" }, @"C:\temp", SdkDirectory);
617CSharpCommandLineArguments args;
655CSharpCommandLineArguments args;
709CSharpCommandLineArguments args;
731var args = DefaultParse(new[] { @"e:c:\test\test.cs", "/t:library" }, WorkingDirectory);
752var parsedArgs = DefaultParse(args, WorkingDirectory);
820var parsedArgs = DefaultParse(new[] { "/win32res:goo", "/win32icon:goob", "a.cs" }, WorkingDirectory);
852var parsedArgs = DefaultParse(new[] { "/win32res", "a.cs" }, WorkingDirectory);
876var parsedArgs = DefaultParse(new[] { "/win32icon:" + tmpFileName, "a.cs" }, WorkingDirectory);
895CSharpCommandLineArguments args = DefaultParse(CSharpCommandLineParser.ParseResponseLines(responseFile), @"c:\");
1123CSharpCommandLineArguments parsedArgs;
1158var parsedArgs = DefaultParse(new[] { "/resource:", "a.cs" }, WorkingDirectory);
1192var parsedArgs = DefaultParse(new[] { "/link:a", "/link:b,,,,c", "a.cs" }, WorkingDirectory);
1235var parsedArgs = DefaultParse(new[] { "/recurse:" + dir.ToString() + "\\*.cs" }, WorkingDirectory);
1270var parsedArgs = DefaultParse(new[] { "/nostdlib", "/r:a", "/REFERENCE:b,,,,c", "a.cs" }, WorkingDirectory);
1311var parsedArgs = DefaultParse(new[] { "/target:exe", "a.cs" }, WorkingDirectory);
1358var parsedArgs = DefaultParse(new[] { "/target:exe" }, WorkingDirectory);
1463CSharpCommandLineArguments args = DefaultParse(new[] { "/win32manifest:blah", "/target:module", "a.cs" }, WorkingDirectory);
1478var parsedArgs = CSharpCommandLineParser.Script.Parse(new[] { "a + b" }, WorkingDirectory, sdkDirectory);
1610var parsedArgs = DefaultParse(new[] { $"/langversion:{value}", "a.cs" }, WorkingDirectory);
1615var scriptParsedArgs = ScriptParse(new[] { $"/langversion:{value}" }, WorkingDirectory);
1632var parsedArgs = DefaultParse(new[] { $"/langversion:{formerValue}", $"/langversion:{latterValue}", "a.cs" }, WorkingDirectory);
1643var parsedArgs = DefaultParse(new[] { "/langversion:default", "a.cs" }, WorkingDirectory);
1656var parsedArgs = DefaultParse(new[] { "/langversion:latest", "a.cs" }, WorkingDirectory);
1666var parsedArgs = DefaultParse(new[] { "a.cs" }, WorkingDirectory);
1714var args = DefaultParse(new[] { "/langversion:?" }, WorkingDirectory);
1900var parsedArgs = DefaultParse(new[] { "a.cs" }, WorkingDirectory);
1962var parsedArgs = DefaultParse(new[] { "a.cs" }, WorkingDirectory);
2094var parsedArgs = DefaultParse(new[] { "/pdb:something", "a.cs" }, WorkingDirectory);
2209var parsedArgs = DefaultParse(new[] { "/sourcelink:sl.json", "/debug:portable", "a.cs" }, WorkingDirectory);
2325var parsedArgs = DefaultParse(new[] { "a.cs " }, WorkingDirectory);
2557var parsedArgs = DefaultParse(new[] { "a.cs" }, WorkingDirectory);
2611var parsedArgs = DefaultParse(new[] { "a.cs" }, WorkingDirectory);
2631var parsedArgs = DefaultParse(new string[] { "/r:goo.dll", "a.cs" }, WorkingDirectory);
Microsoft.CodeAnalysis.CSharp.Scripting.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (3)
Microsoft.CodeAnalysis.CSharp.Workspaces.UnitTests (2)
Microsoft.VisualStudio.LanguageServices.CSharp (2)
System.Windows.Forms.Analyzers.CSharp.Tests (1)