567 references to Regular11
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Completion\CompletionProviders\OverrideCompletionProviderTests.cs (2)
2839<Project Language=""C#"" AssemblyName=""Assembly1"" CommonReferences=""true"" LanguageVersion=""{TestOptions.Regular11.LanguageVersion.ToDisplayString()}""> 2878<Project Language=""C#"" AssemblyName=""Assembly1"" CommonReferences=""true"" LanguageVersion=""{TestOptions.Regular11.LanguageVersion.ToDisplayString()}"">
Microsoft.CodeAnalysis.CSharp.Emit2.UnitTests (7)
CodeGen\CodeGenMethodGroupConversionCachingTests.cs (6)
5621var comp = CompileAndVerify(source, parseOptions: TestOptions.Regular11); 5704var verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseWinMD); 5821var verifier = CompileAndVerifyWithWinRt(source, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseWinMD); 5902CompileAndVerify(text, parseOptions: TestOptions.Regular11, expectedOutput: PASS).VerifyIL("Test.Main", @" 5961", parseOptions: TestOptions.Regular11, expectedOutput: @" 6026var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11, options: TestOptions.DebugExe);
Emit\NumericIntPtrTests.cs (1)
10325var parseOptions = (useCSharp11 ? TestOptions.Regular11 : TestOptions.Regular10).WithNoRefSafetyRulesAttribute();
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (118)
Attributes\AttributeTests.cs (1)
10908comp = CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11);
FlowAnalysis\FlowDiagnosticTests.cs (10)
1237var verifier = CompileAndVerify(program, parseOptions: TestOptions.Regular11); 1297var verifier = CompileAndVerify(program, parseOptions: TestOptions.Regular11); 1410comp = CreateCompilation(text, parseOptions: TestOptions.Regular11); 1467comp = CreateCompilation(text, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.Regular11); 1485comp = CreateCompilation(text, parseOptions: TestOptions.Regular11); 1788comp = CreateCompilation(text, parseOptions: TestOptions.Regular11); 2427comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular11); 2584comp = CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular11); 2711comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 2744comp = CreateCompilation(source, parseOptions: TestOptions.Regular11);
FlowAnalysis\FlowTests.cs (1)
5935CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
FlowAnalysis\LocalFunctions.cs (2)
741comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 1512comp = CreateCompilation(source, parseOptions: TestOptions.Regular11);
FlowAnalysis\RegionAnalysisTests.cs (1)
6473compilation = CreateCompilation(source, parseOptions: TestOptions.Regular11);
RefReadonlyParameterTests.cs (61)
183CreateCompilation(new[] { source, RequiresLocationAttributeDefinition }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 964CreateCompilationWithIL(source, ilSource, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1028CreateCompilationWithIL(new[] { source, RequiresLocationAttributeDefinition }, ilSource, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1574CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugDll).VerifyDiagnostics( 1638CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1700CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1738CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1752CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1790CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1804CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1845CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1866CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1887CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1901CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1936CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1950CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1985CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 1999CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2034CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2048CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2073CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2087CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2105CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2139CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2169CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2199CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2213CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2232CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2269CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 3181CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 3461CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 3692CompileAndVerify(source, expectedOutput: "25 15 15", parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 3833CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 3908CompileAndVerify(new[] { source1, source2 }, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 3918CompileAndVerify(new[] { source1, source3 }, expectedOutput: "1", parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 4001CompileAndVerify(source, expectedOutput: "ECC", parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 4042CompileAndVerify(source, expectedOutput: "YCC", parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 4133CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics2); 4142CreateCompilation(new[] { source1, source3 }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4166CompileAndVerify(new[] { source1, source4 }, expectedOutput: expectedOutput4, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 4191CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 4216CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 4427CompileAndVerify(source, expectedOutput: "E", parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 7234CompileAndVerify(source, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 7238CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 7664CompileAndVerify(source1, expectedOutput: "12", parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 7721CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7744CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7776CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7826CreateCompilation(source2 + Environment.NewLine + source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7996CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8081CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics(expectedDiagnostics); 8230var comp = CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe); 8293CompileAndVerify(source3, new[] { comp1Ref }, verify: Verification.Fails, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe, 8342CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8372CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11, options: TestOptions.UnsafeDebugExe).VerifyDiagnostics( 8549CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 8578CreateCompilation(source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 8603CompileAndVerify(source3, new[] { comp1Ref }, expectedOutput: expectedOutput, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 8648CreateCompilation(source2 + Environment.NewLine + source3, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
Semantics\InlineArrayTests.cs (7)
2495comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 6020comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 6186comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 8340comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 15195comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 16976comp = CreateCompilation(src, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 18824comp = CreateCompilation(src + Buffer4Definition, targetFramework: TargetFramework.Net80, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11);
Semantics\PatternMatchingTests.cs (22)
8612comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 8654comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 10215comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 10256comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 10575var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10606var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10626var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10648var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10676var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10703var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10734var comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 10752var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10782var comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 10800var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10824var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10854var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 10910var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 11181var comp = CreateCompilationWithSpanAndMemoryExtensions(source, options: TestOptions.ReleaseExe, parseOptions: TestOptions.Regular11); 11361var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 11385var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 11406var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11); 11463var comp = CreateCompilationWithSpanAndMemoryExtensions(source, parseOptions: TestOptions.Regular11);
Semantics\PatternMatchingTests_ListPatterns.cs (1)
464compilation = CreateCompilationWithIndexAndRange(source, parseOptions: TestOptions.Regular11);
Semantics\PrimaryConstructorTests.cs (12)
59var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 85var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 114var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 156var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 181var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 217var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 242var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 279var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 313var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 334var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 351var comp = CreateCompilation(src1, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseDll); 3197comp = CreateCompilation(source, parseOptions: TestOptions.Regular11);
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (216)
Semantics\FunctionPointerTests.cs (4)
57var comp = CreateCompilationWithFunctionPointers(src, parseOptions: TestOptions.Regular11); 88var comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 119var comp = CreateCompilationWithFunctionPointers(src, parseOptions: TestOptions.Regular11); 141var comp = CreateCompilationWithFunctionPointers(src, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11);
Semantics\GlobalUsingDirectiveTests.cs (2)
5001CreateCompilation(new[] { source1, source2 }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 5044CreateCompilation(new[] { source1, source2 }, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
Semantics\InterpolationTests.cs (6)
1261var parseOptions = TestOptions.Regular11; 1421var parseOptions = TestOptions.Regular11; 8050InterpolatedStringHandlerArgumentAttribute_MismatchedRefTypes(TestOptions.Regular11, "ref", "in", expression, 14988comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net50); 15036comp = CreateCompilation(new[] { code, InterpolatedStringHandlerAttribute, InterpolatedStringHandlerArgumentAttribute }, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net50); 18020var comp = CreateCompilation(new[] { code, InterpolatedStringHandlerArgumentAttribute, handler }, parseOptions: TestOptions.Regular11);
Semantics\LambdaTests.cs (2)
7134CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 8253CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
Semantics\LocalFunctionTests.cs (39)
7252var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 7282var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 7310var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 7339var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 7413var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 7509comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 7558var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 7618var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8516comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 8536comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11); 8670var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8728var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 8767var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 8808var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8850var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8884var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 8914var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 8983var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9004var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9028var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9052var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9076var comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9099var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9149var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9166var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9186var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9355var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9383var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9418var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 9462var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9482var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9574var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9591var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9611var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9631var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9654var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9708var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11); 9736var parseOptions = useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11; 9777var comp = CreateCompilation(source, parseOptions: useCSharp10 ? TestOptions.Regular10 : TestOptions.Regular11);
Semantics\NameOfTests.cs (25)
1814CompileAndVerify(source, parseOptions: TestOptions.Regular11, expectedOutput: expectedOutput).VerifyDiagnostics(); 1851CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1907CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1948CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1968CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1993CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2012CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2038CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2057CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2076CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2097CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2116CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 2128CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2142CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2158CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2174CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2194CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2210CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2227CompileAndVerify(source, parseOptions: TestOptions.Regular11, expectedOutput: "StaticMethod").VerifyDiagnostics(); 2248CompileAndVerify(source, parseOptions: TestOptions.Regular11, expectedOutput: "Length").VerifyDiagnostics(); 2272CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2297CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2322CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 2346CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 2367CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics);
Semantics\OverloadResolutionTests.cs (13)
9468CreateCompilation(code, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9522CreateCompilation(code, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 9551CreateCompilation(code, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 9590CreateCompilation(source2, new[] { comp1Ref }, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9622CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9661CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9694CreateCompilation(source, options: TestOptions.UnsafeReleaseExe, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9729CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9791CompileAndVerify(source, expectedOutput: "string5", parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 9811CompileAndVerify(source, expectedOutput: "string5", parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 9831CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9862CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 9941CreateCompilation(code, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
Semantics\RecordStructTests.cs (6)
1902var verifier = CompileAndVerify(src, parseOptions: TestOptions.Regular11); 2169var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, verify: Verification.Skipped); 2867var verifier = CompileAndVerify(new[] { src, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, verify: Verification.Skipped); 4005comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 7541var verifier = CompileAndVerify(src, parseOptions: TestOptions.Regular11); 11207comp = CreateCompilation(source, parseOptions: TestOptions.Regular11);
Semantics\RefEscapingTests.cs (12)
351comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 1804comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 2153comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 2231comp = CreateCompilationWithMscorlibAndSpan(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 2486comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 2585comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 4444comp = CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11); 4509CreateCompilationWithMscorlibAndSpan(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 8745var comp = CreateCompilation(new[] { source0, source1 }, parseOptions: TestOptions.Regular11); 8755var comp1 = CreateCompilation(source1, references: new[] { comp0.ToMetadataReference() }, parseOptions: TestOptions.Regular11); 8758comp1 = CreateCompilation(source1, references: new[] { comp0.EmitToImageReference() }, parseOptions: TestOptions.Regular11); 8762comp0 = CreateCompilation(source0, parseOptions: TestOptions.Regular11);
Semantics\RefFieldTests.cs (25)
150comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net70); 211comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 285comp = CreateCompilation(sourceB, references: new[] { refA }, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 1842var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11, options: TestOptions.ReleaseExe, targetFramework: TargetFramework.Net70); 20333comp = CreateCompilation(source, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net70); 20354var lib = CreateCompilation(lib_cs, parseOptions: TestOptions.Regular11, targetFramework: TargetFramework.Net70); 22202comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 22219comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 22264comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 22294comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 22318comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 22351parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 22380parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 22415parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 22444parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 22493parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 22516parseOptions: TestOptions.Regular11).VerifyDiagnostics().EmitToImageReference(); 22531CreateCompilation(source2, [ref1a], parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 22545CreateCompilation(source2, [ref1], parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 22569parseOptions: TestOptions.Regular11).VerifyDiagnostics().EmitToImageReference(); 22584CreateCompilation(source2, [ref1a], parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 22598CreateCompilation(source2, [ref1], parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 22769parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 22804parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics); 22839parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedDiagnostics);
Semantics\SemanticErrorTests.cs (7)
6476var verifier = CompileAndVerify(text, parseOptions: TestOptions.Regular11); 6988var verifier = CompileAndVerify(text, parseOptions: TestOptions.Regular11). 7035CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7069CreateCompilationWithMscorlib40AndSystemCore(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 7105var verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions: TestOptions.Regular11); 7179var verifier = CompileAndVerify(source, new[] { CSharpRef }, parseOptions: TestOptions.Regular11); 12982var verifier = CompileAndVerify(text, parseOptions: TestOptions.Regular11);
Semantics\StructConstructorTests.cs (17)
1985var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular11, expectedOutput: 2025var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular11, expectedOutput: "(, )"); 2580comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 2662comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 2712comp = CreateCompilation(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11); 2765var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, expectedOutput: 2876var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, expectedOutput: 2947var verifier = CompileAndVerify(new[] { source, IsExternalInitTypeDefinition }, parseOptions: TestOptions.Regular11, expectedOutput: 3297comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 3418comp = CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11); 3895CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.Regular11) 3901CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(GetIdForErrorCode(ErrorCode.WRN_UnassignedThisSupportedVersion), ReportDiagnostic.Error), parseOptions: TestOptions.Regular11) 3907var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular11); 3990CreateCompilation(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.Regular11) 4021var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.Regular11); 4064var verifier = CompileAndVerify(source, options: TestOptions.DebugDll.WithSpecificDiagnosticOptions(ReportStructInitializationWarnings), parseOptions: TestOptions.Regular11); 4709var verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular11);
Semantics\UninitializedNonNullableFieldTests.cs (4)
874var verifier = CompileAndVerify(source, options: WithNullableEnable(), parseOptions: TestOptions.Regular11); 983var comp = CreateCompilation(source, parseOptions: TestOptions.Regular11); 1065var verifier = CompileAndVerify(source, parseOptions: TestOptions.Regular11); 1797var verifier = CompileAndVerify(new[] { source }, options: WithNullableEnable(), parseOptions: TestOptions.Regular11);
Semantics\UnsafeTests.cs (37)
11407CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11408CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11455CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11457CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expectedWithUnsafe); 11511CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11512CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11568CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 11587CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 11674CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11675CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(expected); 11721CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 11734CreateCompilation(text, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 12762var comp = CreateCompilation(csharp, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 12781var comp = CreateCompilation(csharp, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 12800var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 12816var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 12832var comp = CreateCompilation(csharp, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 12851var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13329var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13332comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13381var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13384comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13423var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13432comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13485var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13488comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13520var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13526comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13562var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13565comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13627var comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13660comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13745var comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13787comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13888var comp = CreateCompilation(csharp, parseOptions: TestOptions.Regular11); 13900comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11); 13932var comp = CreateCompilation(csharp, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11);
Semantics\Utf8StringsLiteralsTests.cs (5)
453comp = CreateCompilation(source, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 1666comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 1719comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 1772comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 1834comp = CreateCompilation(source + HelpersSource, targetFramework: TargetFramework.NetCoreApp, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11);
Semantics\WarningVersionTests.cs (12)
180parseOptions: TestOptions.Regular11, 191parseOptions: TestOptions.Regular11, 259parseOptions: TestOptions.Regular11, 270parseOptions: TestOptions.Regular11, 347parseOptions: TestOptions.Regular11, 361parseOptions: TestOptions.Regular11, 468parseOptions: TestOptions.Regular11, 479parseOptions: TestOptions.Regular11, 555parseOptions: TestOptions.Regular11, 566parseOptions: TestOptions.Regular11, 642parseOptions: TestOptions.Regular11, 653parseOptions: TestOptions.Regular11,
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (108)
Compilation\UsedAssembliesTests.cs (1)
3692Compilation comp = CreateCompilation(source, parseOptions: TestOptions.Regular11, references: references);
DocumentationComments\CrefTests.cs (4)
6731verify(CreateCompilation(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics( 6775verify(CreateCompilation(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics( 6838verify(CreateCompilation(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(expectedDiagnostics)); 6868verify(CreateCompilation(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)).VerifyDiagnostics(
Symbols\CheckedUserDefinedOperatorsTests.cs (38)
45compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 537compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 657compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 709compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 822compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 871compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 893foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 924foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 1075compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 1125compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 1178compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 1227compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 1262compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 1718compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 1840compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 1896compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 1950compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 2075compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 2124compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 2156foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 2316compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 2410compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 2496compilation1 = CreateCompilation(source1, options: TestOptions.DebugDll, parseOptions: TestOptions.Regular11); 2876compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 3042compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 3177foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 3272compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 3322compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 3432compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 3828compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 4207compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 4668compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 4788compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 5216compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 5689compilation1 = CreateCompilation(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 6316compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 6421compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11); 6538compilation1 = CreateCompilationWithCSharp(source1 + source2, options: TestOptions.DebugExe, parseOptions: TestOptions.Regular11);
Symbols\DefaultInterfaceImplementationTests.cs (10)
1624parseOptions: isStatic ? TestOptions.Regular11 : TestOptions.Regular8); 1680parseOptions: isStatic ? TestOptions.Regular11 : TestOptions.Regular8); 1724parseOptions: TestOptions.Regular11, 1911parseOptions: TestOptions.Regular11, 1972parseOptions: TestOptions.Regular11); 2103parseOptions: TestOptions.Regular11, 2182parseOptions: TestOptions.Regular11, 2204parseOptions: TestOptions.Regular11, 3043parseOptions: TestOptions.Regular11, 9258parseOptions: isStatic ? TestOptions.Regular11 : TestOptions.Regular10,
Symbols\GenericConstraintTests.cs (4)
5809CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 6475CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 6498CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 6967var compilation = CreateCompilation(source, parseOptions: TestOptions.Regular11);
Symbols\RequiredMembersTests.cs (3)
246comp = CreateCompilationWithRequiredMembers(code, parseOptions: TestOptions.Regular11); 315var comp = CreateCompilationWithRequiredMembers(code, parseOptions: use10 ? TestOptions.Regular10 : TestOptions.Regular11); 376comp = CreateCompilationWithRequiredMembers(code, parseOptions: use10 ? TestOptions.Regular10 : TestOptions.Regular11);
Symbols\Source\BaseClassTests.cs (1)
2281var comp = CreateCompilation(text, parseOptions: TestOptions.Regular11);
Symbols\Source\ClsComplianceTests.cs (7)
397CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 495var lib1 = CreateCompilation(libSource1, assemblyName: "lib1", parseOptions: TestOptions.Regular11).EmitToImageReference(); 496var lib2 = CreateCompilation(libSource2, assemblyName: "lib2", parseOptions: TestOptions.Regular11).EmitToImageReference(); 497var lib3 = CreateCompilation(libSource3, assemblyName: "lib3", parseOptions: TestOptions.Regular11).EmitToImageReference(); 499CreateCompilation(source, new[] { lib1, lib2, lib3 }, TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 689CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 810CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics();
Symbols\Source\EventTests.cs (1)
1356CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
Symbols\Source\UsingAliasTests.cs (4)
773CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 803CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 830CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 875CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
Symbols\SymbolErrorTests.cs (14)
4408CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4520CreateCompilationWithMscorlib46(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11) 4547CreateCompilationWithMscorlib46(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 10790comp = CreateCompilation(text, parseOptions: TestOptions.Regular11); 16736CreateCompilationWithMscorlib40AndSystemCore(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 21336comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(6)); 21339comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7)); 21397comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(6)); 21400comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7)); 21442comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(6)); 21461comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7)); 21484var comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7)); 21502comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7)); 21529comp = CreateCompilation(text, parseOptions: TestOptions.Regular11, options: TestOptions.DebugDll.WithWarningLevel(7));
Symbols\UnsignedRightShiftTests.cs (21)
398parseOptions: TestOptions.Regular11); 901parseOptions: TestOptions.Regular11); 1016parseOptions: TestOptions.Regular11); 1057parseOptions: TestOptions.Regular11); 1454parseOptions: TestOptions.Regular11); 1862parseOptions: TestOptions.Regular11); 2728compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 2900compilation = CreateCompilationWithMscorlib40AndDocumentationComments(source, parseOptions: TestOptions.Regular11.WithDocumentationMode(DocumentationMode.Diagnose)); 3121parseOptions: TestOptions.Regular11); 3215parseOptions: TestOptions.Regular11); 3309parseOptions: TestOptions.Regular11); 3403parseOptions: TestOptions.Regular11); 3437parseOptions: TestOptions.Regular11); 3454parseOptions: TestOptions.Regular11); 3489parseOptions: TestOptions.Regular11); 3506parseOptions: TestOptions.Regular11); 3541parseOptions: TestOptions.Regular11); 3558parseOptions: TestOptions.Regular11); 3593parseOptions: TestOptions.Regular11); 3610parseOptions: TestOptions.Regular11); 3690CompileAndVerify(source, expectedOutput: @"150150", parseOptions: TestOptions.Regular11);
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (116)
LexicalAndXml\LexicalErrorTests.cs (39)
976CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 998CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1020CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1043CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1065CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1088CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1112CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1135CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1158CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1181CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1205CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1262CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1335CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1371CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1393CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1419CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1440CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1462CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1487CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1512CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1534CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1561CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1588CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1612CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1637CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1662CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1687CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1714CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1741CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1766CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1794CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1822CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1848CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1873CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1901CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1929CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 1955CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1975CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics(); 1998CreateCompilation(test, parseOptions: TestOptions.Regular11).VerifyDiagnostics();
Parsing\CrefParsingTests.cs (4)
350foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 365foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 381foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 397foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 })
Parsing\DeclarationScopeParsingTests.cs (12)
244UsingDeclaration(source, TestOptions.Regular11); 276UsingDeclaration(source, TestOptions.Regular11, 498UsingDeclaration(source, TestOptions.Regular11, 547UsingDeclaration(source, TestOptions.Regular11, 1139UsingExpression(source, TestOptions.Regular11, 1164UsingExpression(source, TestOptions.Regular11, 1292UsingDeclaration(source, TestOptions.Regular11, 1352UsingDeclaration(source, TestOptions.Regular11); 2903UsingTree(source, TestOptions.Regular11, 2955UsingTree(source, TestOptions.Regular11, 11188UsingTree(source, TestOptions.Regular11, 11275UsingTree(source, TestOptions.Regular11,
Parsing\ExpressionParsingTests.cs (7)
6608foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 6631foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 6666foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 6701foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 6724foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 6759foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 6794foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 })
Parsing\MemberDeclarationParsingTests.cs (6)
28private static readonly CSharpParseOptions RequiredMembersOptions = TestOptions.Regular11; 428foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 479foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 562foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 645foreach (var options in new[] { TestOptions.RegularPreview, TestOptions.Regular10, TestOptions.Regular11 }) 2069options: TestOptions.Regular11,
Parsing\RawInterpolatedStringLiteralCompilingTests.cs (1)
86}", parseOptions: TestOptions.Regular11).VerifyDiagnostics();
Parsing\RefReadonlyTests.cs (17)
501UsingDeclaration(source, TestOptions.Regular11); 544UsingDeclaration(source, TestOptions.Regular11); 588UsingDeclaration(source, TestOptions.Regular11); 631UsingDeclaration(source, TestOptions.Regular11); 675UsingDeclaration(source, TestOptions.Regular11); 719UsingDeclaration(source, TestOptions.Regular11); 764UsingDeclaration(source, TestOptions.Regular11); 808UsingDeclaration(source, TestOptions.Regular11); 852UsingDeclaration(source, TestOptions.Regular11); 896UsingDeclaration(source, TestOptions.Regular11); 950UsingDeclaration(source, TestOptions.Regular11, expectedDiagnostics); 1012UsingDeclaration(source, TestOptions.Regular11, expectedDiagnostics); 1074UsingDeclaration(source, TestOptions.Regular11, expectedDiagnostics); 1135UsingDeclaration(source, TestOptions.Regular11, expectedDiagnostics); 1187UsingDeclaration(source, TestOptions.Regular11); 1230UsingDeclaration(source, TestOptions.Regular11); 1273UsingDeclaration(source, TestOptions.Regular11);
Parsing\UsingDirectiveParsingTests.cs (22)
860UsingTree(text, options: TestOptions.Regular11); 861CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4036CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4050UsingTree(text, options: TestOptions.Regular11, 4086CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4097UsingTree(text, options: TestOptions.Regular11, 4224CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4241UsingTree(text, options: TestOptions.Regular11, 4285CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4299UsingTree(text, options: TestOptions.Regular11, 4456UsingTree(text, options: TestOptions.Regular11); 4457CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4499UsingTree(text, options: TestOptions.Regular11); 4500CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4616UsingTree(text, options: TestOptions.Regular11); 4617CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4700UsingTree(text, options: TestOptions.Regular11); 4701CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 4941UsingTree(text, options: TestOptions.Regular11); 4942CreateCompilation(text, parseOptions: TestOptions.Regular11).VerifyDiagnostics( 5019UsingTree(text, options: TestOptions.Regular11); 5020CreateCompilation(text, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics(
Parsing\Utf8StringLiteralsParsingTests.cs (8)
114UsingExpression(@"""hello""u8", options: TestOptions.Regular11); 150UsingExpression(@"@""hello""u8", options: TestOptions.Regular11); 186UsingExpression(@"""hello""U8", options: TestOptions.Regular11); 222UsingExpression(@"@""hello""U8", options: TestOptions.Regular11); 594foreach (var options in new[] { TestOptions.RegularDefault, TestOptions.Regular11, TestOptions.Regular10 }) 612foreach (var options in new[] { TestOptions.RegularDefault, TestOptions.Regular11, TestOptions.Regular10 }) 748foreach (var options in new[] { TestOptions.RegularDefault, TestOptions.Regular11, TestOptions.Regular10 }) 770foreach (var options in new[] { TestOptions.RegularDefault, TestOptions.Regular11, TestOptions.Regular10 })