6 references to WithPreprocessorSymbols
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (5)
Parsing\CSharpParseOptionsTests.cs (5)
47
TestProperty((old, value) => old.
WithPreprocessorSymbols
(value), opt => opt.PreprocessorSymbols, ImmutableArray.Create<string>("A", "B", "C"));
49
Assert.Equal(0, CSharpParseOptions.Default.
WithPreprocessorSymbols
(ImmutableArray.Create<string>("A", "B")).
WithPreprocessorSymbols
(default(ImmutableArray<string>)).PreprocessorSymbols.Length);
50
Assert.Equal(0, CSharpParseOptions.Default.
WithPreprocessorSymbols
(ImmutableArray.Create<string>("A", "B")).WithPreprocessorSymbols((IEnumerable<string>)null).PreprocessorSymbols.Length);
51
Assert.Equal(0, CSharpParseOptions.Default.
WithPreprocessorSymbols
(ImmutableArray.Create<string>("A", "B")).WithPreprocessorSymbols((string[])null).PreprocessorSymbols.Length);
Microsoft.CodeAnalysis.Rebuild (1)
CSharpCompilationFactory.cs (1)
78
.
WithPreprocessorSymbols
(preprocessorSymbols);