Symbols\GenericConstraintTests.cs (36)
386CreateCompilation(source).VerifyDiagnostics();
1104CreateCompilationWithMscorlib40(text, references: new[] { Net40.References.SystemCore }).VerifyDiagnostics();
2499CreateCompilation(source).VerifyDiagnostics();
2890compilation1.VerifyDiagnostics();
2935compilation2.VerifyDiagnostics();
3073compilation1.VerifyDiagnostics();
4333CreateCompilation(source).VerifyDiagnostics();
4383CreateCompilation(source).VerifyDiagnostics();
4407CreateCompilation(source).VerifyDiagnostics();
4480CreateCompilation(source).VerifyDiagnostics();
5399CreateCompilationWithILAndMscorlib40(csharpSource, ilSource).VerifyDiagnostics();
5468var compilation = CreateCompilationWithILAndMscorlib40(csharpSource, ilSource).VerifyDiagnostics();
5633CreateCompilation(source, options: TestOptions.ReleaseDll).VerifyDiagnostics();
5709vbCompilation.VerifyDiagnostics();
5809CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics();
5841CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics();
5910CreateCompilation(source).VerifyDiagnostics();
6194CreateCompilation(source).VerifyDiagnostics();
6313CreateCompilation(source).VerifyDiagnostics();
6399CreateCompilationWithILAndMscorlib40(source, ilSource, appendDefaultHeader: false).VerifyDiagnostics();
6433compilation1.VerifyDiagnostics();
6440compilation2.VerifyDiagnostics();
6475CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics();
6498CreateCompilation(source, parseOptions: TestOptions.Regular11).VerifyDiagnostics();
6525CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics();
6540CreateCompilation(source, options: TestOptions.UnsafeDebugDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics();
6569CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics();
6576var compilation = CreateCompilationWithMscorlib40AndSystemCore("public interface I<W> where W : struct {}").VerifyDiagnostics();
6628CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics();
6652CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics();
6840compilation1.VerifyDiagnostics();
6864compilation2.VerifyDiagnostics();
7295metadataComp.VerifyDiagnostics();
7305comp.VerifyDiagnostics(
7358metadataComp.VerifyDiagnostics();
7389comp.VerifyDiagnostics();
Symbols\Source\ClsComplianceTests.cs (31)
331CreateCompilation(source).VerifyDiagnostics();
810CreateCompilation(source, options: TestOptions.ReleaseDll, parseOptions: TestOptions.Regular11).VerifyDiagnostics();
849CreateCompilation(source, options: TestOptions.UnsafeReleaseDll, parseOptions: TestOptions.Regular12).VerifyDiagnostics();
2111comp.VerifyDiagnostics();
2129CreateCompilation(source).VerifyDiagnostics();
2307CreateCompilation(source).VerifyDiagnostics();
2353CreateCompilation(string.Format(sourceTemplate, "true", "true")).VerifyDiagnostics();
2354CreateCompilation(string.Format(sourceTemplate, "false", "false")).VerifyDiagnostics();
2360CreateCompilation(string.Format(sourceTemplate, "false", "true")).VerifyDiagnostics(); // No warnings, since false.
2371CreateCompilation("[assembly:System.CLSCompliant(true)]", new[] { trueModuleRef }).VerifyDiagnostics();
2389CreateCompilation("[assembly:System.CLSCompliant(false)]", new[] { falseModuleRef }).VerifyDiagnostics(); //CONSIDER: dev11 reports WRN_CLS_NotOnModules (don't know why)
2390CreateCompilation("[assembly:System.CLSCompliant(false)]", new[] { noneModuleRef }).VerifyDiagnostics();
2393CreateCompilation("", new[] { trueModuleRef }).VerifyDiagnostics();
2394CreateCompilation("", new[] { falseModuleRef }).VerifyDiagnostics();
2395CreateCompilation("", new[] { noneModuleRef }).VerifyDiagnostics();
2406CreateCompilation("[assembly:System.CLSCompliant(true)]", new[] { trueModuleRef }).VerifyDiagnostics();
2422CreateCompilation("[assembly:System.CLSCompliant(false)]", new[] { falseModuleRef }).VerifyDiagnostics(); //CONSIDER: dev11 reports WRN_CLS_NotOnModules (don't know why)
2423CreateCompilation("[assembly:System.CLSCompliant(false)]", new[] { noneModuleRef }).VerifyDiagnostics();
2426CreateCompilation("", new[] { trueModuleRef }).VerifyDiagnostics();
2427CreateCompilation("", new[] { falseModuleRef }).VerifyDiagnostics();
2428CreateCompilation("", new[] { noneModuleRef }).VerifyDiagnostics();
2763CreateCompilation(source).VerifyDiagnostics();
2896CreateCompilation(source).VerifyDiagnostics();
2915CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics();
3066CreateCompilation(source).VerifyDiagnostics();
3090CreateCompilation(source).VerifyDiagnostics();
3108CreateCompilation(source).VerifyDiagnostics();
3138CreateCompilation(source, new[] { moduleRef }).VerifyDiagnostics();
3192comp.VerifyDiagnostics();
3617CreateCompilation("[assembly:System.CLSCompliant(false)]" + source).VerifyDiagnostics();
3918CreateCompilation(source).VerifyDiagnostics();
Symbols\SymbolErrorTests.cs (39)
1375.VerifyDiagnostics();
3043CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics();
8433comp.VerifyDiagnostics();
9956CreateCompilation(source).VerifyDiagnostics();
9973").VerifyDiagnostics();
11788CreateCompilation(text).VerifyDiagnostics();
11801CreateCompilation(text).VerifyDiagnostics();
13805comp.VerifyDiagnostics();
13973CreateCompilation(csharp).VerifyDiagnostics();
14621CreateCompilation(text).VerifyDiagnostics();
15282CreateCompilationWithMscorlibAndSpanSrc(text).VerifyDiagnostics();
16608CreateCompilation(text).VerifyDiagnostics();
16642CreateCompilation(text).VerifyDiagnostics();
16834CreateCompilationWithMscorlib40AndSystemCore(text).VerifyDiagnostics();
17610comp.VerifyDiagnostics();
17737var ref1 = CreateCompilation(sourceRef1, assemblyName: "Ref1").VerifyDiagnostics();
17738var ref2 = CreateCompilation(sourceRef2, assemblyName: "Ref2").VerifyDiagnostics();
17818var ref1 = CreateCompilation(sourceRef1, assemblyName: "Ref1").VerifyDiagnostics();
17819var ref2 = CreateCompilation(sourceRef2, assemblyName: "Ref2").VerifyDiagnostics();
18283CreateCompilationWithMscorlib40AndSystemCore(source).VerifyDiagnostics();
18817comp.VerifyDiagnostics(
19168CreateCompilation(text).VerifyDiagnostics();
19905CreateCompilation(string.Format(template, "int set_Item() { return 0; }")).VerifyDiagnostics();
19948CreateCompilation(string.Format(template, "int set_P() { return 0; }")).VerifyDiagnostics();
19963CreateCompilation(string.Format(template, "int Item() { return 0; }")).VerifyDiagnostics();
19964CreateCompilation(string.Format(template, "int set_Item() { return 0; }")).VerifyDiagnostics();
20369CreateCompilation(text).VerifyDiagnostics();
20448CreateCompilation(source).VerifyDiagnostics();
20714CreateCompilation(codeA, references: new MetadataReference[] { referenceB, referenceC }, assemblyName: "A").VerifyDiagnostics(); // No Errors
20880CreateCompilation(string.Empty, references: new MetadataReference[] { ilModule, dReference }).VerifyDiagnostics();
21337comp.VerifyDiagnostics();
21398comp.VerifyDiagnostics();
21563comp1_v1.VerifyDiagnostics();
21661comp1_v1.VerifyDiagnostics();
21764comp1.VerifyDiagnostics();
21833comp1.VerifyDiagnostics();
21877comp1.VerifyDiagnostics();
21927comp1.VerifyDiagnostics();
21983comp1.VerifyDiagnostics();