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)
121private CSharpCommandLineArguments ScriptParse(IEnumerable<string> args, string baseDirectory)
126private CSharpCommandLineArguments FullParse(string commandLine, string baseDirectory, string sdkDirectory = null, string additionalReferenceDirectories = null)
506var args = parser.Parse(new[] { "first.cs", "second.cs", "@a.rsp", "last.cs" }, basePath, SdkDirectory);
523var parser = CSharpCommandLineParser.Default.Parse(new[] { "c:/test.cs" }, baseDirectory: null, SdkDirectory);
535var parser = CSharpCommandLineParser.Default.Parse(new[] { "/additionalfile:web.config", "c:/test.cs" }, baseDirectory: null, SdkDirectory);
549var parser = CSharpCommandLineParser.Default.Parse(new[] { "/additionalfile:*", "c:/test.cs" }, baseDirectory: null, SdkDirectory);
565var parser = CSharpCommandLineParser.Default.Parse(new[] { "file.cs", $"-out:{parentDir.Path}", "/noSdkPath" }, parentDir.Path, null);
603var args = parser.Parse(new[] { @"*.cs", @"/recurse:a\*.cs" }, @"C:\temp", SdkDirectory);
618CSharpCommandLineArguments args;
656CSharpCommandLineArguments args;
710CSharpCommandLineArguments args;
732var args = DefaultParse(new[] { @"e:c:\test\test.cs", "/t:library" }, WorkingDirectory);
753var parsedArgs = DefaultParse(args, WorkingDirectory);
821var parsedArgs = DefaultParse(new[] { "/win32res:goo", "/win32icon:goob", "a.cs" }, WorkingDirectory);
853var parsedArgs = DefaultParse(new[] { "/win32res", "a.cs" }, WorkingDirectory);
877var parsedArgs = DefaultParse(new[] { "/win32icon:" + tmpFileName, "a.cs" }, WorkingDirectory);
896CSharpCommandLineArguments args = DefaultParse(CSharpCommandLineParser.ParseResponseLines(responseFile), @"c:\");
1124CSharpCommandLineArguments parsedArgs;
1159var parsedArgs = DefaultParse(new[] { "/resource:", "a.cs" }, WorkingDirectory);
1193var parsedArgs = DefaultParse(new[] { "/link:a", "/link:b,,,,c", "a.cs" }, WorkingDirectory);
1236var parsedArgs = DefaultParse(new[] { "/recurse:" + dir.ToString() + "\\*.cs" }, WorkingDirectory);
1271var parsedArgs = DefaultParse(new[] { "/nostdlib", "/r:a", "/REFERENCE:b,,,,c", "a.cs" }, WorkingDirectory);
1312var parsedArgs = DefaultParse(new[] { "/target:exe", "a.cs" }, WorkingDirectory);
1359var parsedArgs = DefaultParse(new[] { "/target:exe" }, WorkingDirectory);
1464CSharpCommandLineArguments args = DefaultParse(new[] { "/win32manifest:blah", "/target:module", "a.cs" }, WorkingDirectory);
1479var parsedArgs = CSharpCommandLineParser.Script.Parse(new[] { "a + b" }, WorkingDirectory, sdkDirectory);
1611var parsedArgs = DefaultParse(new[] { $"/langversion:{value}", "a.cs" }, WorkingDirectory);
1616var scriptParsedArgs = ScriptParse(new[] { $"/langversion:{value}" }, WorkingDirectory);
1633var parsedArgs = DefaultParse(new[] { $"/langversion:{formerValue}", $"/langversion:{latterValue}", "a.cs" }, WorkingDirectory);
1644var parsedArgs = DefaultParse(new[] { "/langversion:default", "a.cs" }, WorkingDirectory);
1657var parsedArgs = DefaultParse(new[] { "/langversion:latest", "a.cs" }, WorkingDirectory);
1667var parsedArgs = DefaultParse(new[] { "a.cs" }, WorkingDirectory);
1715var args = DefaultParse(new[] { "/langversion:?" }, WorkingDirectory);
1901var parsedArgs = DefaultParse(new[] { "a.cs" }, WorkingDirectory);
1963var parsedArgs = DefaultParse(new[] { "a.cs" }, WorkingDirectory);
2095var parsedArgs = DefaultParse(new[] { "/pdb:something", "a.cs" }, WorkingDirectory);
2210var parsedArgs = DefaultParse(new[] { "/sourcelink:sl.json", "/debug:portable", "a.cs" }, WorkingDirectory);
2326var parsedArgs = DefaultParse(new[] { "a.cs " }, WorkingDirectory);
2558var parsedArgs = DefaultParse(new[] { "a.cs" }, WorkingDirectory);
2612var parsedArgs = DefaultParse(new[] { "a.cs" }, WorkingDirectory);
2632var 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)