1107 references to VerifyDiagnostics
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (1)
CommandLineTests.vb (1)
10565
compilation.
VerifyDiagnostics
()
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (349)
Attributes\AssemblyAttributes.vb (7)
1110
comp.
VerifyDiagnostics
(
1126
comp.
VerifyDiagnostics
(
1617
comp.
VerifyDiagnostics
(
1626
comp.
VerifyDiagnostics
()
1634
comp.
VerifyDiagnostics
(
1719
comp.
VerifyDiagnostics
()
1729
comp.
VerifyDiagnostics
()
Attributes\AttributeTests.vb (29)
1488
compilation.
VerifyDiagnostics
()
1518
compilation.
VerifyDiagnostics
()
1608
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
1705
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
1815
c.
VerifyDiagnostics
()
1870
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BadAttributeNonPublicConstructor, "Fred"))
1946
compilation2.
VerifyDiagnostics
()
1998
compilation2.
VerifyDiagnostics
()
2033
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ArrayOfRawGenericInvalid, "()"))
2238
comp.
VerifyDiagnostics
()
2284
comp.
VerifyDiagnostics
()
2328
comp.
VerifyDiagnostics
()
2371
comp.
VerifyDiagnostics
()
2415
comp.
VerifyDiagnostics
()
2794
compilation.
VerifyDiagnostics
(
2830
compilation.
VerifyDiagnostics
(
3049
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_AttrCannotBeGenerics, "T").WithArguments("T"))
3070
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_RequiredConstExpr, "New With {.anonymousField = False}.anonymousField"))
3090
CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(
3110
CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(
3268
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InaccessibleSymbol2, "A").WithArguments("AAttribute", "Friend"))
3305
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InaccessibleSymbol2, "NS").WithArguments("C.NSAttribute", "Private"))
3343
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_AmbiguousInImports2, "A").WithArguments("AAttribute", "N1, N2"))
3374
comp.
VerifyDiagnostics
()
3419
</compilation>).
VerifyDiagnostics
()
3840
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BadAttributeNonPublicType1, "MyAttr1").WithArguments("e2()"))
3863
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NameNotMember2, "EditorBrowsableState.n").WithArguments("n", "System.ComponentModel.EditorBrowsableState"))
3892
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_UndefinedType1, "A").WithArguments("A"),
4870
CreateCompilationWithMscorlib45(code).
VerifyDiagnostics
(
Attributes\AttributeTests_CallerArgumentExpression.vb (4)
321
comp1.
VerifyDiagnostics
()
1025
comp1.
VerifyDiagnostics
()
1344
comp1.
VerifyDiagnostics
()
1477
compilation.
VerifyDiagnostics
()
Attributes\AttributeTests_MarshalAs.vb (9)
237
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
319
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
441
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
553
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
729
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
810
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
928
CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(
950
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
1347
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
Attributes\AttributeTests_ObsoleteAttribute.vb (30)
117
CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(
413
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
499
CreateCompilationWithMscorlib40AndReferences(source, {peReference}).
VerifyDiagnostics
(
589
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
653
CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
()
715
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
()
901
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseDll.WithConcurrentBuild(False)).
VerifyDiagnostics
()
935
CreateCompilationWithMscorlib40AndReferences(s, {New VisualBasicCompilationReference(other)}).
VerifyDiagnostics
(
1003
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
1054
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
1131
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
1429
comp.
VerifyDiagnostics
(
1480
comp1.
VerifyDiagnostics
()
1490
comp2.
VerifyDiagnostics
(expected)
1493
comp2.
VerifyDiagnostics
(expected)
1536
comp1.
VerifyDiagnostics
()
1545
comp2.
VerifyDiagnostics
(expected)
1548
comp2.
VerifyDiagnostics
(expected)
1581
comp1.
VerifyDiagnostics
()
1628
comp1.
VerifyDiagnostics
()
1684
comp1.
VerifyDiagnostics
()
1740
comp1.
VerifyDiagnostics
()
1826
comp1.
VerifyDiagnostics
()
1890
comp1.
VerifyDiagnostics
()
1952
comp1.
VerifyDiagnostics
()
2014
comp1.
VerifyDiagnostics
()
2358
comp1.
VerifyDiagnostics
()
2520
compilation1.
VerifyDiagnostics
()
2727
vbCompilation.
VerifyDiagnostics
(
2848
compilation0.
VerifyDiagnostics
()
Attributes\AttributeTests_Synthesized.vb (4)
927
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseDll).
VerifyDiagnostics
(
1789
Dim mslibComp = CreateEmptyCompilation({Parse(mslib)}).
VerifyDiagnostics
()
1793
Dim mslibNoStringComp = CreateEmptyCompilation({Parse(mslibNoString)}).
VerifyDiagnostics
()
1814
Dim diagLibComp = CreateEmptyCompilation({Parse(diagLibSource)}, references:={mslibRef}).
VerifyDiagnostics
()
Attributes\AttributeTests_WellKnownAttributes.vb (22)
1004
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
1076
CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(
1488
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
1516
CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(
1593
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
1918
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
1957
CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(source, {TestMetadata.Net40.SystemCore}).
VerifyDiagnostics
()
2617
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
2652
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
2671
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
3242
lib1.
VerifyDiagnostics
()
3244
comp.
VerifyDiagnostics
()
3366
compilation2.
VerifyDiagnostics
()
3398
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "AttributeUsage(AttributeTargets.Class)").WithArguments("AttributeUsageAttribute"))
3526
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "AttributeUsage(AttributeTargets.Class, AllowMultiple:= True)").WithArguments("AttributeUsageAttribute"))
4034
VerifyDiagnostics
(compilation,
4143
VerifyDiagnostics
(compilation,
4201
VerifyDiagnostics
(compilation,
4229
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.Deny").WithArguments("Deny", "Deny is obsolete and will be removed in a future release of the .NET Framework. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information."),
4939
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
()
4956
CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
()
7014
CreateCompilationWithMscorlib40AndVBRuntime(code).
VerifyDiagnostics
().AssertTheseEmitDiagnostics(<expected><![CDATA[
Attributes\InternalsVisibleToAndStrongNameTests.vb (32)
80
other.
VerifyDiagnostics
()
98
comp.
VerifyDiagnostics
(
110
comp.
VerifyDiagnostics
()
159
other.
VerifyDiagnostics
()
178
other.
VerifyDiagnostics
()
204
comp.
VerifyDiagnostics
(
216
comp.
VerifyDiagnostics
()
264
comp.
VerifyDiagnostics
(
276
comp.
VerifyDiagnostics
()
317
other.
VerifyDiagnostics
()
336
other.
VerifyDiagnostics
()
354
c.
VerifyDiagnostics
()
476
other.
VerifyDiagnostics
(
528
other.
VerifyDiagnostics
()
567
c2.
VerifyDiagnostics
()
626
c2.
VerifyDiagnostics
()
690
c2.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_PublicKeyFileFailure).WithArguments("bogus", CodeAnalysisResources.FileNotFound))
708
other.
VerifyDiagnostics
()
724
requestor.
VerifyDiagnostics
()
742
other.
VerifyDiagnostics
()
781
other.
VerifyDiagnostics
()
847
other.
VerifyDiagnostics
()
880
other.
VerifyDiagnostics
()
914
other.
VerifyDiagnostics
()
947
other.
VerifyDiagnostics
()
978
other.
VerifyDiagnostics
()
1012
giver.
VerifyDiagnostics
()
1305
comp.
VerifyDiagnostics
(
1362
comp.
VerifyDiagnostics
()
2261
CreateCompilationWithMscorlib40(source, parseOptions:=parseOptions).
VerifyDiagnostics
(
2330
other.
VerifyDiagnostics
()
2385
other.
VerifyDiagnostics
()
BreakingChanges.vb (2)
115
CreateCompilationWithMscorlib40AndVBRuntime(text).
VerifyDiagnostics
()
665
vbCompilation.
VerifyDiagnostics
(
CodeGen\CodeGenAsyncTests.vb (1)
2448
</compilation>, references:=LatestVbReferences).
VerifyDiagnostics
()
CodeGen\CodeGenClosureLambdaTests.vb (2)
1860
VerifyDiagnostics
(Diagnostic(ERRID.ERR_CannotLiftByRefParamLambda1, "x").WithArguments("x"))
2290
VerifyDiagnostics
(Diagnostic(ERRID.ERR_CannotLiftByRefParamLambda1, "ex").WithArguments("ex"))
CodeGen\CodeGenConstLocal.vb (1)
750
verifier.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_CircularEvaluation1, "i").WithArguments("i"),
CodeGen\CodeGenEvents.vb (2)
987
vbexeCompilation.
VerifyDiagnostics
()
1474
vbCompilation.
VerifyDiagnostics
(
CodeGen\CodeGenLateBound.vb (2)
2748
</compilation>).
VerifyDiagnostics
(
2798
</compilation>).
VerifyDiagnostics
(
CodeGen\CodeGenNullable.vb (2)
3379
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ConstAsNonConstant, "Boolean?"),
3427
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NameNotMember2, "ns.field").WithArguments("field", "S?"))
CodeGen\CodeGenScriptTests.vb (7)
61
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
74
c.
VerifyDiagnostics
()
94
c.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_KeywordNotAllowedInScript, "Me").WithArguments("Me"),
115
c.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_KeywordNotAllowedInScript, "MyClass").WithArguments("MyClass"),
146
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InvalidInNamespace, "Sub Goo"))
235
compilation.
VerifyDiagnostics
(
416
comp.
VerifyDiagnostics
(
CodeGen\CodeGenSelectCase.vb (2)
4630
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Select """""),
4644
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Select """""),
CodeGen\CodeGenTests.vb (4)
8061
vbCompilationA.
VerifyDiagnostics
()
8094
vbCompilationA.
VerifyDiagnostics
()
11722
compilation.
VerifyDiagnostics
(
11764
compilation.
VerifyDiagnostics
()
CodeGen\CodeGenTuples.vb (10)
6223
missingComp.
VerifyDiagnostics
()
6235
libComp.
VerifyDiagnostics
()
9797
vbCompilation.
VerifyDiagnostics
(
9858
vbCompilation.
VerifyDiagnostics
(
21677
libWithVT.
VerifyDiagnostics
()
22287
comp.
VerifyDiagnostics
(
22471
libComp.
VerifyDiagnostics
()
22563
containerLib.
VerifyDiagnostics
()
22586
libComp.
VerifyDiagnostics
()
22781
library.
VerifyDiagnostics
()
CodeGen\CodeGenUnstructuredErrorHandling.vb (4)
153
Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_MultiplyDefined1, "10").WithArguments("10"))
1045
Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_Syntax, "-"))
1121
Dim compilation = CreateCompilationWithMscorlib40AndVBRuntime(source, TestOptions.ReleaseExe).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_Syntax, "1L"),
1405
options:=TestOptions.ReleaseDll.WithEmbedVbCoreRuntime(True)).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NameNotDeclared1, "Err").WithArguments("Err"),
CodeGen\CodeGenVBCore.vb (3)
2940
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_MissingRuntimeHelper, "Module1").WithArguments("Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute..ctor"))
3023
compilation.
VerifyDiagnostics
(
3121
VerifyDiagnostics
(
CodeGen\CodeGenWinMdEvents.vb (3)
26
comp.
VerifyDiagnostics
(
194
comp.
VerifyDiagnostics
(
536
comp1.
VerifyDiagnostics
()
CodeGen\CodeGenWithBlock.vb (3)
2647
</compilation>).
VerifyDiagnostics
(
2688
</compilation>).
VerifyDiagnostics
(
2726
</compilation>).
VerifyDiagnostics
()
CodeGen\CodeGenWithEvents.vb (2)
1872
vbCompilation.
VerifyDiagnostics
(
1914
vbCompilation.
VerifyDiagnostics
(
Emit\CompilationEmitTests.vb (24)
70
CreateCompilationWithMscorlib40AndVBRuntime(source, options:=TestOptions.ReleaseExe.WithRootNamespace("Test").WithMainTypeName("Test.Module1")).
VerifyDiagnostics
()
74
CreateCompilationWithMscorlib40AndVBRuntime(source, options:=TestOptions.ReleaseExe.WithRootNamespace("""Test""").WithMainTypeName("""Test.Module1""")).
VerifyDiagnostics
(
79
CreateCompilationWithMscorlib40AndVBRuntime(source, options:=TestOptions.ReleaseExe.WithRootNamespace("решения").WithMainTypeName("решения.Module1")).
VerifyDiagnostics
()
81
CreateCompilationWithMscorlib40AndVBRuntime(source, options:=TestOptions.ReleaseExe.WithRootNamespace("""решения""").WithMainTypeName("""решения.Module1""")).
VerifyDiagnostics
(
2658
compilation.
VerifyDiagnostics
()
2716
compilation.
VerifyDiagnostics
()
2762
compilation.
VerifyDiagnostics
()
2823
compilation.
VerifyDiagnostics
()
2882
compilation.
VerifyDiagnostics
()
2948
compilation.
VerifyDiagnostics
()
3020
compilation.
VerifyDiagnostics
()
3087
compilation.
VerifyDiagnostics
()
3156
compilation.
VerifyDiagnostics
(
3379
compilation.
VerifyDiagnostics
()
3415
compilation.
VerifyDiagnostics
()
3452
compilation.
VerifyDiagnostics
()
3489
compilation.
VerifyDiagnostics
()
3526
compilation.
VerifyDiagnostics
()
3558
compilation.
VerifyDiagnostics
()
3601
comp.
VerifyDiagnostics
(
3646
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseDll.WithXmlReferenceResolver(XmlFileResolver.Default)).
VerifyDiagnostics
(
3666
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseDll.WithXmlReferenceResolver(Nothing)).
VerifyDiagnostics
(
3761
comp.
VerifyDiagnostics
(Diagnostic(ERRID.WRN_UseOfObsoleteSymbol2, "SecurityAction.Deny").WithArguments(
3793
Dim comp = CreateCompilationWithMscorlib40(refSource).
VerifyDiagnostics
()
Emit\DynamicAnalysis\DynamicInstrumentationTests.vb (2)
2343
c.
VerifyDiagnostics
()
2380
c.
VerifyDiagnostics
()
Emit\EditAndContinue\AssemblyReferencesTests.vb (13)
58
lib0.
VerifyDiagnostics
()
60
lib1.
VerifyDiagnostics
()
62
lib2.
VerifyDiagnostics
()
159
lib0.
VerifyDiagnostics
()
163
lib1.
VerifyDiagnostics
()
167
lib2.
VerifyDiagnostics
()
244
lib0.
VerifyDiagnostics
()
248
lib1.
VerifyDiagnostics
()
252
lib2.
VerifyDiagnostics
()
320
Dim lib01 = CreateCompilationWithMscorlib40({srcLib01}, assemblyName:="Lib", options:=s_signedDll).
VerifyDiagnostics
()
322
Dim lib02 = CreateCompilationWithMscorlib40({srcLib02}, assemblyName:="Lib", options:=s_signedDll).
VerifyDiagnostics
()
324
Dim lib11 = CreateCompilationWithMscorlib40({srcLib11}, assemblyName:="Lib", options:=s_signedDll).
VerifyDiagnostics
()
326
Dim lib12 = CreateCompilationWithMscorlib40({srcLib12}, assemblyName:="Lib", options:=s_signedDll).
VerifyDiagnostics
()
Emit\EditAndContinue\EditAndContinuePdbTests.vb (3)
129
compilation0.
VerifyDiagnostics
()
130
compilation1.
VerifyDiagnostics
()
131
compilation2.
VerifyDiagnostics
()
Emit\EditAndContinue\SymbolMatcherTests.vb (3)
46
compilation0.
VerifyDiagnostics
()
108
compilation0.
VerifyDiagnostics
()
161
compilation0.
VerifyDiagnostics
()
Emit\EmitErrorTests.vb (1)
226
comp2.
VerifyDiagnostics
()
Emit\EntryPointTests.vb (70)
83
compilation.
VerifyDiagnostics
(
116
compilation.
VerifyDiagnostics
(
163
compilation.
VerifyDiagnostics
()
179
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("N.M"))
198
compilation.
VerifyDiagnostics
()
216
compilation.
VerifyDiagnostics
()
234
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_GenericSubMainsFound1).WithArguments("C(Of T).D"))
281
compilation.
VerifyDiagnostics
()
285
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_GenericSubMainsFound1).WithArguments("C"))
288
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_GenericSubMainsFound1).WithArguments("D(Of T).DD"))
291
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("I"))
379
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe.WithMainTypeName("A.B.C")).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_GenericSubMainsFound1).WithArguments("A.B(Of T).C"))
402
compilation.
VerifyDiagnostics
()
431
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_GenericSubMainsFound1).WithArguments("C(Of T)"))
459
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_GenericSubMainsFound1).WithArguments("C"))
491
compilation.
VerifyDiagnostics
()
529
compilation.
VerifyDiagnostics
(
544
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("a"))
645
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("D"))
664
compilation.
VerifyDiagnostics
(
668
compilation.
VerifyDiagnostics
(
672
compilation.
VerifyDiagnostics
(
719
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("C"))
722
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("D"))
725
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_StartupCodeNotFound1).WithArguments("E"))
728
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("F"))
731
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("G.P"))
734
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InValidSubMainsFound1).WithArguments("G.P.Q"))
770
compilation.
VerifyDiagnostics
(
787
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
810
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
826
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
843
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
863
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
879
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
895
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
()
910
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
926
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
942
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
958
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
974
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
993
CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(source, {Net40.SystemCore}, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
1012
CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(source, {Net40.SystemCore}, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
1031
CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(source, {Net40.SystemCore}, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
1051
CreateCompilationWithMscorlib40AndVBRuntime(source, Nothing, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
1070
CreateCompilationWithMscorlib40AndVBRuntime(source, Nothing, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
1090
CreateCompilationWithMscorlib40AndVBRuntime(source, Nothing, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
1109
CreateCompilationWithMscorlib40AndVBRuntime(source, Nothing, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
()
1129
CreateCompilationWithMscorlib40AndVBRuntime(source, Nothing, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
()
1147
CreateCompilationWithMscorlib40AndVBRuntime(source, Nothing, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
1167
CreateCompilationWithMscorlib40AndVBRuntime(source, Nothing, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
1187
CreateCompilationWithMscorlib40AndVBRuntime(source, Nothing, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
1202
CreateCompilationWithMscorlib40AndVBRuntime(source, Nothing, options:=TestOptions.ReleaseExe).
VerifyDiagnostics
(
1218
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe.WithMainTypeName("Main")).
VerifyDiagnostics
(
1250
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe.WithMainTypeName("Main")).
VerifyDiagnostics
(
1266
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe.WithMainTypeName("main")).
VerifyDiagnostics
()
1284
CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(source, {Net40.SystemCore}, options:=TestOptions.ReleaseExe.WithMainTypeName("B")).
VerifyDiagnostics
(
1287
CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(source, {Net40.SystemCore}, options:=TestOptions.ReleaseExe.WithMainTypeName("Extension")).
VerifyDiagnostics
(
1305
CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(source, {Net40.SystemCore}, options:=TestOptions.ReleaseExe.WithMainTypeName("I1")).
VerifyDiagnostics
(
1308
CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(source, {Net40.SystemCore}, options:=TestOptions.ReleaseExe.WithMainTypeName("COLOR")).
VerifyDiagnostics
(
1311
CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(source, {Net40.SystemCore}, options:=TestOptions.ReleaseExe.WithMainTypeName("mydelegate")).
VerifyDiagnostics
(
1324
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe.WithMainTypeName("1")).
VerifyDiagnostics
(
1338
CreateCompilationWithMscorlib40(source, options:=TestOptions.ReleaseExe.WithMainTypeName("<")).
VerifyDiagnostics
(
1360
compilation.
VerifyDiagnostics
()
1382
compilation.
VerifyDiagnostics
()
1404
compilation.
VerifyDiagnostics
(
1426
compilation.
VerifyDiagnostics
(
1450
compilation.
VerifyDiagnostics
(
1477
compilation2.
VerifyDiagnostics
(
1497
compilation.
VerifyDiagnostics
()
Emit\OptionalArgumentsTests.vb (7)
482
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_OmittedArgument2, "DateTimeUsingConstantAttribute").WithArguments("i", "Public Sub DateTimeUsingConstantAttribute(i As Date)"))
681
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NameNotDeclared1, "p").WithArguments("p"))
1248
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_TypeMismatch2, "IntegerWithDateTimeOptionalValue()").WithArguments("Date", "Integer"))
1278
comp.
VerifyDiagnostics
(diag)
1280
comp.
VerifyDiagnostics
()
1307
comp.
VerifyDiagnostics
()
1331
comp.
VerifyDiagnostics
()
ErrorHandling.vb (10)
172
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedIdentifier, ""),
206
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedIdentifier, ""),
391
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedSpecifier, "Labels"),
446
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_TryAndOnErrorDoNotMix, ExpectedOutput),
599
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_PlatformDoesntSupport, "My").WithArguments("My").WithLocation(3, 13))
622
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "On Error Goto goo"))
788
compilation.
VerifyDiagnostics
()
835
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, """3""").WithArguments("String", "Integer"),
866
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_LabelNotDefined1, "handler").WithArguments("handler"),
905
compilation.
VerifyDiagnostics
()
ExpressionTrees\CodeGenExprLambda.vb (1)
8649
compilation.
VerifyDiagnostics
(
PDB\ChecksumTests.vb (1)
193
comp.
VerifyDiagnostics
()
PDB\PDBConstLocalTests.vb (1)
33
compilation.
VerifyDiagnostics
()
PDB\PDBExternalSourceDirectiveTests.vb (4)
602
TestOptions.ReleaseExe).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NestedExternalSource, "#ExternalSource(""bar1.vb"", 41)"),
627
TestOptions.ReleaseExe).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_EndExternalSource, "#End ExternalSource"),
655
TestOptions.ReleaseExe).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_EndExternalSource, "#End ExternalSource"),
679
TestOptions.ReleaseExe).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NestedExternalSource, "#ExternalSource (""bar1.vb"", 23)"))
PDB\PDBIteratorTests.vb (1)
549
compilation.
VerifyDiagnostics
()
PDB\PDBLambdaTests.vb (4)
573
compilation.
VerifyDiagnostics
()
729
compilation.
VerifyDiagnostics
()
810
compilation.
VerifyDiagnostics
()
1108
compilation.
VerifyDiagnostics
()
PDB\PDBTests.vb (2)
4343
comp.
VerifyDiagnostics
()
4393
c.
VerifyDiagnostics
()
PDB\PDBUsingTests.vb (1)
419
comp.
VerifyDiagnostics
(
PDB\PDBVariableInitializerTests.vb (11)
99
compilation.
VerifyDiagnostics
()
133
compilation.
VerifyDiagnostics
()
167
compilation.
VerifyDiagnostics
()
195
compilation.
VerifyDiagnostics
()
229
compilation.
VerifyDiagnostics
()
262
compilation.
VerifyDiagnostics
()
296
compilation.
VerifyDiagnostics
()
329
compilation.
VerifyDiagnostics
()
359
compilation.
VerifyDiagnostics
()
388
compilation.
VerifyDiagnostics
()
418
compilation.
VerifyDiagnostics
()
Semantics\StaticLocalsSemanticTests.vb (2)
804
compilation.
VerifyDiagnostics
()
1440
compilationDef.
VerifyDiagnostics
()
XmlLiteralTests.vb (1)
4297
VerifyDiagnostics
(comp, Diagnostic(ERRID.ERR_TypeDisallowsElements, "objArray.<output>").WithArguments("Object()"),
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ExpressionCompiler.UnitTests (4)
ReferencedModulesTests.vb (4)
756
compilation.
VerifyDiagnostics
(
815
compLib.
VerifyDiagnostics
()
838
compCorLib.
VerifyDiagnostics
()
874
comp.
VerifyDiagnostics
()
Microsoft.CodeAnalysis.VisualBasic.ExpressionEvaluator.ResultProvider.UnitTests (1)
TupleTests.vb (1)
336
comp.
VerifyDiagnostics
()
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (434)
Binding\Binder_Statements_Tests.vb (13)
1216
VerifyDiagnostics
(
3338
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "While (true)"))
3353
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "While (true)"))
3366
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "If (true)"))
3381
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "If (true)"))
3395
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Try"),
3412
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Try"),
3426
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Do"))
3441
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Do"))
3454
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Else"))
3469
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Else"))
3488
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(
3505
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InvalidUseOfCustomModifier, "Custom"))
Binding\BindingErrorTests.vb (92)
415
VerifyDiagnostics
(Diagnostic(ERRID.ERR_UndefinedType1, "MyAttribute").WithArguments("MyAttribute"))
543
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_CantRaiseBaseEvent, "MyEvent"))
1167
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BadAttributeConstructor1, "myattr1").WithArguments("M1.c1()"),
1188
</compilation>).
VerifyDiagnostics
(
1233
</compilation>).
VerifyDiagnostics
(
1964
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_RequiredConstExpr, "Foo.FG"))
1991
</compilation>, references:={Net40.SystemCore}).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_RequiredConstExpr, "(From x In q Select x).Count()"))
2018
</compilation>, references:={Net40.SystemCore}).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BadInstanceMemberAccess, "F1"))
2046
</compilation>, references:={Net40.SystemCore}).
VerifyDiagnostics
({Diagnostic(ERRID.ERR_RequiredConstExpr, "(From x In ""s"" Select x).Count()"),
2330
CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedQueryableSource, "list2").WithArguments("Integer()"),
3209
</compilation>).
VerifyDiagnostics
(
3253
</compilation>).
VerifyDiagnostics
(
3835
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NamedParamNotFound2, "t1").WithArguments("t1", "Public Overloads Sub Foo(y1 As Integer)"),
4879
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_TypeMismatch2, "at2").WithArguments("<anonymous type: f2 As String, f1 As Object>", "<anonymous type: f1 As Object, f2 As String>"))
5142
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedEOS, "{"),
5158
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_TypeMismatch2, "{1, 2, 3}").WithArguments("Integer()", "System.Collections.Generic.List(Of Integer)"))
5536
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BadInstanceMemberAccess, "AddressOf EventHandler"))
5580
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NewOnAbstractClass, "New C1"),
5831
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InaccessibleMember3, "PriSet").WithArguments("AttrRegress001.Attr", "Public Property PriSet As Short", "Private"),
6752
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BinaryOperands3, "first = second").WithArguments("=", "<anonymous type: a As Integer, b As Integer>", "<anonymous type: a As Integer, b As Integer>"),
7636
</compilation>).
VerifyDiagnostics
(
7884
</compilation>).
VerifyDiagnostics
(
8261
compilation.
VerifyDiagnostics
(
8328
compilation.
VerifyDiagnostics
(
8389
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NoMostSpecificOverload2, "Foo").WithArguments("Foo", <![CDATA[
8538
</compilation>).
VerifyDiagnostics
(
9012
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ArrayInitializerTooManyDimensions, "{1, ""one""}"))
9028
</compilation>).
VerifyDiagnostics
(
9048
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InitializerTooFewElements1, "{4, 5}").WithArguments("1"))
10143
</compilation>).
VerifyDiagnostics
(
10165
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_PropertyOrFieldNotDefined1, "NotExist").WithArguments("NotExist"))
10427
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_AddOrRemoveHandlerEvent, "Nothing"))
10742
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_CannotConvertValue2, "Asc(vbnullstring)").WithArguments("", "Integer"))
11060
</compilation>).
VerifyDiagnostics
(
11360
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_RequiredAttributeConstConversion2, "<a/>").WithArguments("System.Xml.Linq.XElement", "Object"))
11570
compilation1.
VerifyDiagnostics
(
11774
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_AmbiguousWidestType3, "i").WithArguments("i"))
12284
compilation1.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InAccessibleCoClass3, "New Class1.IFoo(1)").WithArguments("Class1.FooImpl", "Class1.IFoo", "Friend"),
12311
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_MissingValuesForArraysInApplAttrs, "{}"))
13763
</compilation>).
VerifyDiagnostics
(
14044
</compilation>).
VerifyDiagnostics
(
14097
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BadAttributeSharedProperty1, "SharedField").WithArguments("SharedField"),
14153
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BadAttributeReadOnlyProperty1, "RP").WithArguments("RP"))
14236
</compilation>, s_badAttributeIl).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BadAttributeReadOnlyProperty1, "PROP").WithArguments("PROP"))
14263
</compilation>).
VerifyDiagnostics
(
14646
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NameNotDeclared1, "E").WithArguments("E"),
14785
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NamedArgAlsoOmitted2, "Y").WithArguments("Y", "Public Sub foo(X As Byte, [Y As Byte = 0], [Z As Byte = 0])"))
15798
</compilation>).
VerifyDiagnostics
(
15987
compilation1.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_CopyBackTypeMismatch3, "o").WithArguments("x", "Integer", "c2"))
16007
</compilation>).
VerifyDiagnostics
(
16043
</compilation>).
VerifyDiagnostics
(
16118
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BadAttributeConstructor2, "MyAttr").WithArguments("Integer"))
16678
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_DelegateBindingTypeInferenceFails, "Foo"))
16693
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_AnonymousTypeNeedField, "{"))
16742
</compilation>, {Net40.SystemCore}).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NamedArgAlsoOmitted3, "Y").WithArguments("Y", "Public Sub ABC([Y As Byte = 0], [Z As Byte = 0])", "M"))
16762
</compilation>, {Net40.SystemCore}).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NamedArgUsedTwice3, "Y").WithArguments("Y", "Public Sub ABC(Y As Byte, [Z As Byte = 0])", "M"),
16792
</compilation>, {Net40.SystemCore}).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_QueryOperatorNotFound, "Group Join").WithArguments("GroupJoin"))
16951
compilation.
VerifyDiagnostics
(
16981
</compilation>, {Net40.SystemCore}).
VerifyDiagnostics
(
17191
</compilation>, {Net40.SystemCore}).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_TypeCharOnAggregation, "Bar$"),
17312
</compilation>, {Net40.SystemCore}).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_IterationVariableShadowLocal2, "implicit").WithArguments("implicit"),
17545
</compilation>).
VerifyDiagnostics
(
17562
</compilation>).
VerifyDiagnostics
(
17653
</compilation>).
VerifyDiagnostics
(
17685
</compilation>).
VerifyDiagnostics
(
17707
</compilation>).
VerifyDiagnostics
(
17732
</compilation>, {Net40.SystemCore}).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_LambdaBindingMismatch2,
17756
</compilation>, {Net40.SystemCore}).
VerifyDiagnostics
(
17789
</compilation>, {Net40.SystemCore}).
VerifyDiagnostics
(
17906
</compilation>).
VerifyDiagnostics
(
17922
</compilation>).
VerifyDiagnostics
(
18394
</compilation>).
VerifyDiagnostics
(
19119
</compilation>, {Net40.SystemCore}).
VerifyDiagnostics
(
19570
</compilation>).
VerifyDiagnostics
(
20598
</compilation>).
VerifyDiagnostics
()
20622
</compilation>).
VerifyDiagnostics
()
20690
VerifyDiagnostics
(Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "b").WithArguments("b"),
20751
VerifyDiagnostics
(Diagnostic(ERRID.WRN_DefAsgUseNullRefStr, "a").WithArguments("a"),
20872
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.WRN_LambdaPassedToRemoveHandler, "Function(m As Integer) m"))
20889
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_WithEventsAsStruct, "e"),
21262
VerifyDiagnostics
(compilation, Diagnostic(ERRID.WRN_DefAsgNoRetValFuncVal1, "End Function").WithArguments("<anonymous method>"))
23547
VerifyDiagnostics
(compilation, Diagnostic(ERRID.ERR_ExpectedCase, "ca"),
23577
VerifyDiagnostics
(compilation, Diagnostic(ERRID.ERR_ExpectedSpecifier, "MAIN()"),
23606
VerifyDiagnostics
(compilation, Diagnostic(ERRID.ERR_Syntax, """"""),
23636
VerifyDiagnostics
(compilation, Diagnostic(ERRID.ERR_CaseNoSelect, "Case ""b"""))
23661
VerifyDiagnostics
(compilation, Diagnostic(ERRID.ERR_CaseNoSelect, "Case ""a"""),
23679
VerifyDiagnostics
(compilation, Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Return Nothing"),
23697
VerifyDiagnostics
(compilation,
23721
VerifyDiagnostics
(compilation,
23743
VerifyDiagnostics
(compilation,
23766
VerifyDiagnostics
(compilation,
24213
options:=TestOptions.ReleaseDll.WithEmbedVbCoreRuntime(True)).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_TypeClashesWithVbCoreType4, "HideModuleNameAttribute").WithArguments("class", "HideModuleNameAttribute", "class", "HideModuleNameAttribute"),
Binding\ForEachTests.vb (6)
1417
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(
1446
Dim compilation = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(
3853
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "For Each i In """""),
3870
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "For Each i In """""),
3942
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "For i As Integer = 1 To 100"),
3959
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "For i As Integer = 1 To 100"),
Binding\GenericsTests.vb (7)
160
compilation.
VerifyDiagnostics
()
182
compilation.
VerifyDiagnostics
()
226
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_UndefinedType1, "CScen5b").WithArguments("CScen5b"))
245
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_RestrictedType1, "RuntimeArgumentHandle()").WithArguments("System.RuntimeArgumentHandle"))
267
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_RecordCycle2, "enumerator").WithArguments("s2",
335
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_WithEventsAsStruct, "x2"))
354
compilation.
VerifyDiagnostics
()
Binding\GotoTests.vb (15)
93
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedIdentifier, ""),
111
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedEOS, "+"),
131
</compilation>).
VerifyDiagnostics
(
148
</compilation>).
VerifyDiagnostics
(
163
</compilation>).
VerifyDiagnostics
(
184
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedEOS, ","))
207
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_Syntax, "100"),
229
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_Syntax, "100"),
249
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NameNotDeclared1, "lab2").WithArguments("lab2"))
270
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedCase, "label1:"))
288
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_LabelNotDefined1, "label1").WithArguments("label1"))
306
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_GotoIntoFor, "Label").WithArguments("Label"))
327
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_LabelNotDefined1, "label2").WithArguments("label2"))
429
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ObsoleteLineNumbersAreLabels, "11"),
474
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_Syntax, "14D"),
Binding\ImplicitVariableTests.vb (2)
749
</compilation>).
VerifyDiagnostics
(
776
</compilation>).
VerifyDiagnostics
(
Binding\LookupTests.vb (2)
2814
vbCompilation.
VerifyDiagnostics
() ' no obsolete diagnostic - we select the first one of the given name
2843
vbCompilation.
VerifyDiagnostics
() ' no obsolete diagnostic - we select the first one of the given name
Binding\MethodBodyBindingTests.vb (1)
707
compilation.
VerifyDiagnostics
()
Binding\SyncLockTests.vb (20)
25
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_SyncLockRequiresReferenceType1, "(1.0)").WithArguments("Double"),
42
</compilation>).
VerifyDiagnostics
()
67
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_SyncLockRequiresReferenceType1, "x").WithArguments("T"),
90
</compilation>, {TestMetadata.Net40.SystemCore}).
VerifyDiagnostics
()
105
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedEOS, "As"),
143
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExitWhileNotWithinWhile, "Exit While"),
182
</compilation>, {TestMetadata.Net40.SystemCore}).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_SyncLockRequiresReferenceType1, "syncroot.PrintInt()").WithArguments("Integer"),
207
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_SyncLockRequiresReferenceType1, "p1.p1").WithArguments("Decimal"))
235
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_SyncLockRequiresReferenceType1, "Me").WithArguments("S1"),
259
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedEOS, ","),
281
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedExpression, ""),
311
</compilation>).
VerifyDiagnostics
()
336
</compilation>).
VerifyDiagnostics
(
361
</compilation>).
VerifyDiagnostics
()
380
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.WRN_DefAsgUseNullRef, "myLock").WithArguments("myLock"))
400
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedEndTry, "Try"),
413
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "SyncLock Nothing"),
428
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "SyncLock New Object()"),
445
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ElseNoMatchingIf, "Else"))
473
</compilation>).
VerifyDiagnostics
(
Binding\UsingTests.vb (19)
1004
VerifyDiagnostics
(compilation1, Diagnostic(ERRID.ERR_ExpectedDotAfterMyClass, "MyClass"),
1028
VerifyDiagnostics
(compilation1, Diagnostic(ERRID.ERR_UsingRequiresDisposePattern, "obj").WithArguments("T"))
1054
VerifyDiagnostics
(compilation1, Diagnostic(ERRID.ERR_UsingRequiresDisposePattern, "mnObj = New MyManagedClass1()").WithArguments("MyManagedClass1"),
1083
VerifyDiagnostics
(compilation1,
1130
VerifyDiagnostics
(compilation1)
1196
VerifyDiagnostics
(compilation1, Diagnostic(ERRID.ERR_GotoIntoUsing, "label5").WithArguments("label5"))
1232
VerifyDiagnostics
(compilation1)
1260
VerifyDiagnostics
(compilation1)
1339
VerifyDiagnostics
(compilation1, Diagnostic(ERRID.ERR_ExpectedQueryableSource, "objs").WithArguments("System.Collections.Generic.List(Of MyManagedClass)"),
1377
VerifyDiagnostics
(compilation1)
1411
VerifyDiagnostics
(compilation1)
1447
VerifyDiagnostics
(compilation1, Diagnostic(ERRID.ERR_ExpectedExpression, ""),
1471
VerifyDiagnostics
(compilation1, Diagnostic(ERRID.ERR_UsingRequiresDisposePattern, "c = New With {Key.p1 = 10.0, Key.p2 = ""a""c}").WithArguments("<anonymous type: Key p1 As Double, Key p2 As Char>"))
1497
VerifyDiagnostics
(compilation, Diagnostic(ERRID.WRN_MutableGenericStructureInUsing, "t1 As T = DirectCast(Function(tt As T) x, D1(Of T))(x)").WithArguments("t1"))
1539
VerifyDiagnostics
(compilation,
1605
VerifyDiagnostics
(compilation1, Diagnostic(ERRID.ERR_ExpectedIdentifier, ""),
1641
VerifyDiagnostics
(compilation1, Diagnostic(ERRID.ERR_ExpectedQueryableSource, "objs").WithArguments("System.Collections.Generic.List(Of MyManagedClass)"),
1659
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Using Nothing"),
1672
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExecutableAsDeclaration, "Using Nothing"),
Compilation\CompilationAPITests.vb (27)
660
comp.
VerifyDiagnostics
()
864
netModule1.
VerifyDiagnostics
()
876
netModule2.
VerifyDiagnostics
()
888
assembly.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_MissingNetModuleReference).WithArguments("missing1.netmodule"))
900
assembly.
VerifyDiagnostics
()
2008
compilation.
VerifyDiagnostics
()
2031
compilation.
VerifyDiagnostics
()
2049
compilation.
VerifyDiagnostics
()
2081
c.
VerifyDiagnostics
()
2115
).
VerifyDiagnostics
()
2124
).
VerifyDiagnostics
()
2138
compilation.
VerifyDiagnostics
()
2158
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.WRN_MainIgnored, "Main").WithArguments("Public Shared Sub Main()").WithLocation(3, 20))
2175
compilation.
VerifyDiagnostics
()
2199
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.WRN_MainIgnored, "Main").WithArguments("Public Shared Sub Main()").WithLocation(3, 20))
2226
compilation.
VerifyDiagnostics
()
2457
c3.
VerifyDiagnostics
()
2458
c1.
VerifyDiagnostics
()
2459
c4.
VerifyDiagnostics
()
2460
c2.
VerifyDiagnostics
()
2463
c5.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_UndefinedType1, "C").WithArguments("C").WithLocation(1, 40))
2477
c.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_LinkedNetmoduleMetadataMustProvideFullPEImage).WithArguments("ModuleCS00").WithLocation(1, 1))
2673
s0.
VerifyDiagnostics
(
2693
compilation1.
VerifyDiagnostics
()
2698
compilation2.
VerifyDiagnostics
()
2716
compilation1.
VerifyDiagnostics
()
2721
compilation2.
VerifyDiagnostics
()
Compilation\MyTemplateTests.vb (1)
205
compilation.
VerifyDiagnostics
()
Compilation\ReferenceManagerTests.vb (36)
56
testRefV1.
VerifyDiagnostics
()
97
testRefV1.
VerifyDiagnostics
()
98
testRefV2.
VerifyDiagnostics
()
174
main13.
VerifyDiagnostics
()
180
main31.
VerifyDiagnostics
()
289
refLibV2.
VerifyDiagnostics
()
492
main.
VerifyDiagnostics
(
558
main.
VerifyDiagnostics
()
621
refLibV1.
VerifyDiagnostics
()
662
comp.
VerifyDiagnostics
(
788
main.
VerifyDiagnostics
()
803
main.
VerifyDiagnostics
()
812
main.
VerifyDiagnostics
()
826
main.
VerifyDiagnostics
()
831
main.
VerifyDiagnostics
()
889
main.
VerifyDiagnostics
()
922
main.
VerifyDiagnostics
(
954
main.
VerifyDiagnostics
()
985
main.
VerifyDiagnostics
()
1015
compilation.
VerifyDiagnostics
(
1032
a.
VerifyDiagnostics
()
1047
b.
VerifyDiagnostics
()
1061
a2.
VerifyDiagnostics
()
1077
c.
VerifyDiagnostics
()
1184
compilation.
VerifyDiagnostics
(
1271
CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(vb, {ilRef}).
VerifyDiagnostics
()
1278
CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(vb, {ilRef}).
VerifyDiagnostics
()
1285
CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(vb, {ilRef}).
VerifyDiagnostics
()
1292
CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(vb, {ilRef}).
VerifyDiagnostics
()
1384
comp.
VerifyDiagnostics
()
1433
vb4Compilation.
VerifyDiagnostics
()
1628
c.
VerifyDiagnostics
(
1645
c.
VerifyDiagnostics
(
1779
c.
VerifyDiagnostics
()
1794
c.
VerifyDiagnostics
(
1820
c.
VerifyDiagnostics
(
Compilation\SemanticModelAPITests.vb (1)
4116
comp.
VerifyDiagnostics
()
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (1)
2114
c.
VerifyDiagnostics
(
Compilation\VisualBasicCompilationOptionsTests.vb (9)
419
comp.
VerifyDiagnostics
(
429
comp.
VerifyDiagnostics
()
437
comp.
VerifyDiagnostics
(
448
comp.
VerifyDiagnostics
(Diagnostic(ERRID.WRN_DefAsgNoRetValFuncRef1, "End Function").WithArguments("goo"))
454
comp.
VerifyDiagnostics
(
466
comp.
VerifyDiagnostics
(
479
comp.
VerifyDiagnostics
(
491
comp.
VerifyDiagnostics
(
502
comp.
VerifyDiagnostics
()
Diagnostics\DiagnosticAnalyzerTests.vb (30)
296
comp.
VerifyDiagnostics
()
341
compilation.
VerifyDiagnostics
()
390
compilation.
VerifyDiagnostics
()
435
compilation.
VerifyDiagnostics
()
457
compilation.
VerifyDiagnostics
()
532
compilation.
VerifyDiagnostics
()
554
compilation.
VerifyDiagnostics
()
600
compilation.
VerifyDiagnostics
()
624
compilation.
VerifyDiagnostics
()
657
compilation.
VerifyDiagnostics
()
679
compilation.
VerifyDiagnostics
()
692
compilation.
VerifyDiagnostics
()
705
compilation.
VerifyDiagnostics
()
725
compilation.
VerifyDiagnostics
()
747
compilation.
VerifyDiagnostics
()
884
compilation.
VerifyDiagnostics
()
916
compilation.
VerifyDiagnostics
()
994
comp.
VerifyDiagnostics
()
1015
comp.
VerifyDiagnostics
()
1035
comp.
VerifyDiagnostics
()
1060
comp.
VerifyDiagnostics
()
1080
comp.
VerifyDiagnostics
()
1101
comp.
VerifyDiagnostics
()
1126
comp.
VerifyDiagnostics
()
1151
comp.
VerifyDiagnostics
()
1451
comp.
VerifyDiagnostics
()
1513
comp.
VerifyDiagnostics
()
1534
comp.
VerifyDiagnostics
()
1642
compilation.
VerifyDiagnostics
()
1653
compilation.
VerifyDiagnostics
()
Diagnostics\OperationAnalyzerTests.vb (34)
47
comp.
VerifyDiagnostics
()
98
comp.
VerifyDiagnostics
()
234
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedExpression, "").WithLocation(60, 17),
287
comp.
VerifyDiagnostics
()
361
comp.
VerifyDiagnostics
()
427
comp.
VerifyDiagnostics
()
481
comp.
VerifyDiagnostics
()
646
comp.
VerifyDiagnostics
()
724
comp.
VerifyDiagnostics
()
768
comp.
VerifyDiagnostics
()
809
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedQualifiedNameInInit, "").WithLocation(20, 32))
858
comp.
VerifyDiagnostics
()
909
comp.
VerifyDiagnostics
()
954
comp.
VerifyDiagnostics
(
1073
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedExpression, "").WithLocation(60, 17),
1120
comp.
VerifyDiagnostics
()
1160
comp.
VerifyDiagnostics
()
1213
comp.
VerifyDiagnostics
()
1246
comp.
VerifyDiagnostics
()
1278
comp.
VerifyDiagnostics
()
1324
comp.
VerifyDiagnostics
()
1377
comp.
VerifyDiagnostics
()
1452
comp.
VerifyDiagnostics
()
1483
comp.
VerifyDiagnostics
()
1539
comp.
VerifyDiagnostics
()
1687
comp.
VerifyDiagnostics
()
1748
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_DuplicateProcDef1, "-", New Object() {"Public Shared Operator -(x As B2) As B2"}).WithLocation(8, 28),
1781
comp.
VerifyDiagnostics
()
1808
comp.
VerifyDiagnostics
(
1903
comp.
VerifyDiagnostics
()
1979
comp.
VerifyDiagnostics
(
2043
comp.
VerifyDiagnostics
(
2121
comp.
VerifyDiagnostics
()
2147
comp.
VerifyDiagnostics
()
FlowAnalysis\FlowDiagnosticTests.vb (1)
1306
CompilationUtils.CreateCompilationWithMscorlib40(program).
VerifyDiagnostics
()
Semantics\AccessCheckTests.vb (2)
566
other.
VerifyDiagnostics
()
582
c.
VerifyDiagnostics
()
Semantics\ArrayLiteralTests.vb (27)
96
comp.
VerifyDiagnostics
(
166
comp.
VerifyDiagnostics
(
340
comp.
VerifyDiagnostics
(
345
comp.
VerifyDiagnostics
(
463
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NarrowingConversionDisallowed2, """1""").WithArguments("String", "Integer"))
510
comp.
VerifyDiagnostics
(
542
comp.
VerifyDiagnostics
(
547
comp.
VerifyDiagnostics
(
554
comp.
VerifyDiagnostics
(
663
comp.
VerifyDiagnostics
(
687
comp.
VerifyDiagnostics
(
694
comp.
VerifyDiagnostics
(
721
comp.
VerifyDiagnostics
(
727
comp.
VerifyDiagnostics
(
772
comp.
VerifyDiagnostics
(
890
comp.
VerifyDiagnostics
(
898
comp.
VerifyDiagnostics
(
923
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_CharToIntegralTypeMismatch1, """a""c").WithArguments("Short"))
926
comp.
VerifyDiagnostics
(
966
comp.
VerifyDiagnostics
(
1065
comp.
VerifyDiagnostics
(
1071
comp.
VerifyDiagnostics
(
1467
comp.
VerifyDiagnostics
(
1565
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ArrayInitNoType, "{AddressOf Goo}"))
1568
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ArrayInitNoType, "{AddressOf Goo}"))
1820
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "({1})").WithArguments("Integer()", "Integer?()", "Integer", "Integer?"))
1823
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ConvertArrayMismatch4, "({1})").WithArguments("Integer()", "Integer?()", "Integer", "Integer?"))
Semantics\BinaryOperators.vb (2)
802
VerifyDiagnostics
(compilation, Diagnostic(ERRID.ERR_ExpressionOverflow1, "Integer.MaxValue + 1").WithArguments("Integer"))
1546
compilation.
VerifyDiagnostics
()
Semantics\Conversions.vb (8)
2762
compilation.
VerifyDiagnostics
(
2816
compilation.
VerifyDiagnostics
(
2867
compilation.
VerifyDiagnostics
(
3033
compilation.
VerifyDiagnostics
(
3070
compilation.
VerifyDiagnostics
(
3210
compilation.
VerifyDiagnostics
(
3238
compilation.
VerifyDiagnostics
(
4207
VerifyDiagnostics
(compilation, Diagnostic(ERRID.ERR_ExpressionOverflow1, "Z1").WithArguments("Byte"),
Semantics\FieldInitializerBindingTests.vb (1)
652
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_RequiredConstExpr, "AscW(y)"),
Semantics\ForeachTest.vb (6)
986
compilation1.
VerifyDiagnostics
()
1027
compilation1.
VerifyDiagnostics
()
1062
compilation1.
VerifyDiagnostics
()
1106
compilation1.
VerifyDiagnostics
()
1153
comp.
VerifyDiagnostics
()
1193
comp.
VerifyDiagnostics
()
Semantics\ForLoopTest.vb (1)
547
vbCompilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NoSuitableWidestType1, "i").WithArguments("i"))
Semantics\GetSemanticInfoTests.vb (8)
4203
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_LoopControlMustNotBeProperty, "prop1"))
4417
compilation.
VerifyDiagnostics
(
4460
compilation.
VerifyDiagnostics
(
4492
comp.
VerifyDiagnostics
()
5088
compilation.
VerifyDiagnostics
(
5131
compilation.
VerifyDiagnostics
(
5175
compilation.
VerifyDiagnostics
(
5220
compilation.
VerifyDiagnostics
(
Semantics\GetUnusedImportDirectivesTests.vb (1)
116
libCompilation.
VerifyDiagnostics
()
Semantics\IsIsNot.vb (1)
428
compilation.
VerifyDiagnostics
(
Semantics\LambdaTests.vb (2)
1713
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
()
1728
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_SubDisallowsStatement, "Dim y = 2"))
Semantics\MethodCalls.vb (2)
2810
VerifyDiagnostics
(Diagnostic(ERRID.WRN_ImplicitConversionCopyBack, "By").WithArguments("a", "Integer", "Byte"))
2847
VerifyDiagnostics
(
Semantics\MultiDimensionalTest.vb (1)
292
VerifyDiagnostics
(
Semantics\OptionalArgumentTests.vb (14)
69
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_DateToDoubleConversion, "#1/1/2001#"))
140
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_OverrideWithDefault2, "s1").WithArguments("Public Overrides Sub s1([i As Integer = 2])", "Public MustOverride Sub s1([i As Integer = 0])"))
166
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_TypeMismatch2, "1").WithArguments("Integer", "System.Guid"))
244
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_RequiredConstConversion2, """12""").WithArguments("String", "Integer"))
270
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_OptionalIllegal1, "Optional").WithArguments("Event"),
289
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(source).
VerifyDiagnostics
(
308
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(source).
VerifyDiagnostics
(
327
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(source).
VerifyDiagnostics
(
346
CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(source).
VerifyDiagnostics
(
462
compilation.
VerifyDiagnostics
(
490
compilation.
VerifyDiagnostics
(
520
compilation.
VerifyDiagnostics
(
696
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_OmittedArgument2, "M2").WithArguments("x", "Public Shared Sub M2(x As Object)"),
939
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_OmittedArgument2, "Goo1").WithArguments("x", "Public Shared Sub Goo1(x As Object)"),
Semantics\OverloadResolution.vb (2)
4722
compilation.
VerifyDiagnostics
()
4911
CreateCompilationWithMscorlib40AndVBRuntimeAndReferences(source, {libRef}).
VerifyDiagnostics
()
Semantics\PartialMethodsTest.vb (2)
622
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "A1()").WithArguments("A1"))
940
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InterfaceNotImplemented1, "A").WithArguments("A"))
Semantics\QueryExpressions_SemanticModel.vb (1)
3812
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_QueryOperatorNotFound, "aggr4").WithArguments("aggr4"))
Semantics\ScriptSemanticsTests.vb (1)
125
compilation.
VerifyDiagnostics
(
Semantics\UnaryOperators.vb (1)
583
VerifyDiagnostics
(compilation, Diagnostic(ERRID.ERR_ExpressionOverflow1, "+2147483648").WithArguments("Integer"),
Semantics\UseSiteErrorTests.vb (10)
87
CompileWithMissingReference(source).
VerifyDiagnostics
(
113
CompileWithMissingReference(source).
VerifyDiagnostics
(
136
CompileWithMissingReference(source).
VerifyDiagnostics
(
160
CompileWithMissingReference(source).
VerifyDiagnostics
(
189
CompileWithMissingReference(source).
VerifyDiagnostics
(
227
CompileWithMissingReference(source).
VerifyDiagnostics
(
283
CompileWithMissingReference(source).
VerifyDiagnostics
(
349
CompileWithMissingReference(source).
VerifyDiagnostics
(
407
CompileWithMissingReference(source).
VerifyDiagnostics
(
567
successfulCompilation.
VerifyDiagnostics
()
Semantics\VariableTypeInference.vb (16)
427
compilation.
VerifyDiagnostics
()
470
compilation.
VerifyDiagnostics
()
478
compilation.
VerifyDiagnostics
()
485
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_StrictDisallowImplicitObject, "a"),
492
compilation.
VerifyDiagnostics
()
498
compilation.
VerifyDiagnostics
()
505
compilation.
VerifyDiagnostics
(
534
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_StrictDisallowImplicitObject, "b"))
543
compilation.
VerifyDiagnostics
()
550
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_StrictDisallowImplicitObject, "a"),
557
compilation.
VerifyDiagnostics
()
563
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.WRN_ObjectAssumedVar1, "b").WithArguments("Static variable declared without an 'As' clause; type of Object assumed."))
571
compilation.
VerifyDiagnostics
(
606
compilation.
VerifyDiagnostics
(
633
compilation.
VerifyDiagnostics
(
663
compilation.
VerifyDiagnostics
(
Semantics\WithBlockErrorTests.vb (7)
30
</compilation>).
VerifyDiagnostics
(
56
</compilation>).
VerifyDiagnostics
(
82
</compilation>).
VerifyDiagnostics
(
221
</compilation>).
VerifyDiagnostics
(
321
</compilation>).
VerifyDiagnostics
(
340
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_StrictDisallowsLateBinding, ".Goo"))
1032
</compilation>).
VerifyDiagnostics
(
SourceGeneration\GeneratorDriverTests.vb (1)
397
compilation.
VerifyDiagnostics
()
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (256)
DocumentationComments\DocCommentTests.vb (2)
80
compilation.
VerifyDiagnostics
()
11812
comp.
VerifyDiagnostics
()
StaticLocalDeclarationTests.vb (20)
42
compilation.
VerifyDiagnostics
()
69
compilation.
VerifyDiagnostics
()
205
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_DuplicateLocalStatic1, "x").WithArguments("x"))
235
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_DuplicateLocalStatic1, "x").WithArguments("x"))
262
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_DuplicateLocalStatic1, "x").WithArguments("x"))
292
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BlockLocalShadowing1, "y").WithArguments("y"),
322
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BadStaticLocalInGenericMethod, "Static"))
351
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BadStaticLocalInStruct, "Static"))
382
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BadLocalDimFlags1, "Public").WithArguments("Public"),
415
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BadDimFlags1, "Static").WithArguments("Static"))
449
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_VoidValue, "StaticLocalInSub"),
481
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BlockLocalShadowing1, "sl1").WithArguments("sl1"),
507
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "as"),
535
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InvalidUseOfKeyword, "Static"))
568
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedExpression, ""),
615
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_StaticInLambda, "static"),
651
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_NameNotDeclared1, "SL").WithArguments("SL"))
676
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_RestrictedType1, "ArgIterator").WithArguments("System.ArgIterator"),
702
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_RestrictedType1, "TypedReference").WithArguments("System.TypedReference"))
733
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedQueryableSource, "{1, 2, 3}").WithArguments("Integer()"),
SymbolDisplay\SymbolDisplayTests.vb (8)
3202
Compilation.
VerifyDiagnostics
()
3244
Compilation.
VerifyDiagnostics
()
5166
comp.
VerifyDiagnostics
()
5256
comp.
VerifyDiagnostics
()
5313
compB.
VerifyDiagnostics
()
5479
comp.
VerifyDiagnostics
()
5698
comp.
VerifyDiagnostics
()
5805
comp.
VerifyDiagnostics
()
SymbolsTests\AnonymousTypes\AnonymousTypesEmittedSymbolsTests.vb (3)
799
comp1.
VerifyDiagnostics
()
803
comp2.
VerifyDiagnostics
()
807
comp3.
VerifyDiagnostics
()
SymbolsTests\CompilationCreationTests.vb (1)
2175
lib2.
VerifyDiagnostics
()
SymbolsTests\ExtensionMethods\ExtensionMethodTests.vb (4)
2250
compilation1.
VerifyDiagnostics
(
2438
comp.
VerifyDiagnostics
()
2468
s0.
VerifyDiagnostics
()
2476
s1.
VerifyDiagnostics
()
SymbolsTests\Metadata\MetadataMemberTests.vb (3)
750
comp.
VerifyDiagnostics
()
799
comp.
VerifyDiagnostics
(
852
comp.
VerifyDiagnostics
(
SymbolsTests\Metadata\PE\HasUnsupportedMetadata.vb (5)
443
comp1.
VerifyDiagnostics
()
454
comp2.
VerifyDiagnostics
()
474
comp3.
VerifyDiagnostics
()
487
comp3.
VerifyDiagnostics
()
500
comp3.
VerifyDiagnostics
()
SymbolsTests\Metadata\PE\TypeForwarders.vb (12)
183
compilation.
VerifyDiagnostics
()
240
compilation.
VerifyDiagnostics
(
316
compilation.
VerifyDiagnostics
(
418
compilation.
VerifyDiagnostics
()
504
compilation.
VerifyDiagnostics
(
565
compilation.
VerifyDiagnostics
()
615
CreateCompilationWithMscorlib40AndReferences(vb, {ref1, ref2}).
VerifyDiagnostics
()
684
CreateCompilationWithMscorlib40AndReferences(vb, {ref1, ref2}).
VerifyDiagnostics
()
736
CreateCompilationWithMscorlib40AndReferences(vb, {ref1}).
VerifyDiagnostics
(
777
CreateCompilationWithMscorlib40AndReferences(vb, {ref1}).
VerifyDiagnostics
(
830
compilation.
VerifyDiagnostics
(
894
compilation.
VerifyDiagnostics
(
SymbolsTests\Metadata\WinMdEventTest.vb (19)
926
comp.
VerifyDiagnostics
()
995
comp.
VerifyDiagnostics
()
1030
comp.
VerifyDiagnostics
()
1067
comp.
VerifyDiagnostics
(
1101
comp.
VerifyDiagnostics
(
1121
comp.
VerifyDiagnostics
(
1153
comp.
VerifyDiagnostics
(
1207
comp.
VerifyDiagnostics
(
1249
comp.
VerifyDiagnostics
(
1281
comp.
VerifyDiagnostics
(
1315
comp.
VerifyDiagnostics
(
1355
comp.
VerifyDiagnostics
(
1396
comp.
VerifyDiagnostics
(
1520
comp.
VerifyDiagnostics
()
1525
comp.
VerifyDiagnostics
(
1552
comp.
VerifyDiagnostics
()
1595
comp.
VerifyDiagnostics
(
1689
comp.
VerifyDiagnostics
(
1727
CreateEmptyCompilationWithReferences(source, WinRtRefs, TestOptions.ReleaseWinMD).
VerifyDiagnostics
()
SymbolsTests\Retargeting\NoPia.vb (11)
615
comp.
VerifyDiagnostics
()
648
comp.
VerifyDiagnostics
()
673
pia.
VerifyDiagnostics
()
750
pia.
VerifyDiagnostics
()
797
pia.
VerifyDiagnostics
()
835
pia.
VerifyDiagnostics
()
879
pia.
VerifyDiagnostics
()
929
pia.
VerifyDiagnostics
()
932
[lib].
VerifyDiagnostics
()
974
pia.
VerifyDiagnostics
()
1727
compilation2.
VerifyDiagnostics
()
SymbolsTests\Retargeting\RetargetingTests.vb (11)
352
comp.
VerifyDiagnostics
(
390
comp.
VerifyDiagnostics
(
428
comp.
VerifyDiagnostics
(
495
comp.
VerifyDiagnostics
(
596
comp.
VerifyDiagnostics
(
1546
main_NoRetarget.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestInterface").WithArguments("TestInterface", "Friend"),
1556
Main_Retarget.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InaccessibleSymbol2, "TestInterface").WithArguments("TestInterface", "Friend"),
2937
main_NoRetarget.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_GenericConstraintNotSatisfied2, "NewClass").WithArguments("NewClass", "ClassLibrary1.TestInterface"),
2945
main_NoRetarget.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_GenericConstraintNotSatisfied2, "NewClass").WithArguments("NewClass", "ClassLibrary1.TestInterface"),
3172
comp1.
VerifyDiagnostics
()
3208
comp1.
VerifyDiagnostics
()
SymbolsTests\Source\BaseClassTests.vb (3)
2205
compilation.
VerifyDiagnostics
()
2206
c2.
VerifyDiagnostics
()
2209
CompilationUtils.CreateCompilationWithMscorlib40AndReferences(c2Source, {MetadataReference.CreateFromImage(compilationImage)}).
VerifyDiagnostics
()
SymbolsTests\Source\DelegateTests.vb (1)
18
VisualBasicCompilation.Create("test", syntaxTrees:={Parse("Delegate Sub A()")}, options:=TestOptions.ReleaseDll).
VerifyDiagnostics
(
SymbolsTests\Source\EnumTests.vb (4)
948
CompilationUtils.CreateCompilationWithMscorlib40(text).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_CircularEvaluation1, "A").WithArguments("A"))
962
CompilationUtils.CreateCompilationWithMscorlib40(text).
VerifyDiagnostics
(
981
CompilationUtils.CreateCompilationWithMscorlib40(text).
VerifyDiagnostics
(
1552
comp.
VerifyDiagnostics
()
SymbolsTests\Source\EventTests.vb (2)
267
Dim comp = CompilationUtils.CreateCompilationWithMscorlib40AndVBRuntime(source).
VerifyDiagnostics
()
1104
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ParamArrayIllegal1, "paramarray").WithArguments("Event"),
SymbolsTests\Source\FieldTests.vb (1)
448
vbCompilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ObjectReferenceNotSupplied, "field"))
SymbolsTests\Source\ImplementsTests.vb (1)
3677
compilation.
VerifyDiagnostics
(
SymbolsTests\Source\MeMyBaseMyClassTests.vb (22)
35
VerifyDiagnostics
(comp,
86
VerifyDiagnostics
(comp, Diagnostic(ERRID.ERR_UseOfKeywordFromModule1, "Me").WithArguments("Me"))
285
VerifyDiagnostics
(comp, Diagnostic(ERRID.ERR_InaccessibleMember3, "Me.goo").WithArguments("BaseClass", "Private Sub goo()", "Private"))
660
VerifyDiagnostics
(comp,
685
VerifyDiagnostics
(comp,
701
VerifyDiagnostics
(comp, Diagnostic(ERRID.ERR_UnrecognizedTypeKeyword, ""))
718
VerifyDiagnostics
(comp,
742
VerifyDiagnostics
(comp, Diagnostic(ERRID.ERR_InaccessibleMember3, "MyBase.goo").WithArguments("BaseClass", "Private Sub goo()", "Private"))
804
VerifyDiagnostics
(comp,
841
VerifyDiagnostics
(comp, Diagnostic(ERRID.ERR_NameNotMember2, "MyBase.mybase").WithArguments("mybase", "DerivedClass"))
858
VerifyDiagnostics
(comp, Diagnostic(ERRID.ERR_UseOfKeywordFromModule1, "MyBase").WithArguments("MyBase"))
887
VerifyDiagnostics
(comp2, Diagnostic(ERRID.ERR_InaccessibleMember3, "MyBase.goo").WithArguments("Class1", "Friend Sub goo()", "Friend"))
909
VerifyDiagnostics
(comp, Diagnostic(ERRID.ERR_NameNotMember2, "MyBase.goo").WithArguments("goo", "BaseClass"))
931
VerifyDiagnostics
(comp, Diagnostic(ERRID.ERR_NameNotMember2, "MyBase.goo").WithArguments("goo", "BaseClass"))
960
VerifyDiagnostics
(comp, Diagnostic(ERRID.ERR_ExpectedDotAfterMyBase, "MyBase"),
989
VerifyDiagnostics
(comp, Diagnostic(ERRID.ERR_InaccessibleSymbol2, "MyBase.id").WithArguments("BaseClass.ID", "Private"))
1275
VerifyDiagnostics
(
1304
VerifyDiagnostics
(comp,
1347
VerifyDiagnostics
(comp,
1380
VerifyDiagnostics
(comp, Diagnostic(ERRID.ERR_NameNotMember2, "MyClass.goo").WithArguments("goo", "BaseClass"))
1567
VerifyDiagnostics
(comp, Diagnostic(ERRID.ERR_UseOfKeywordNotInInstanceMethod1, "MyClass").WithArguments("MyClass"),
1685
VerifyDiagnostics
(comp,
SymbolsTests\Source\OverridesTests.vb (5)
1144
comp.
VerifyDiagnostics
(
1180
comp.
VerifyDiagnostics
(
1365
errorComp.
VerifyDiagnostics
(
1562
errorComp.
VerifyDiagnostics
(
2616
compilation.
VerifyDiagnostics
(
SymbolsTests\Source\PropertyTests.vb (10)
664
VerifyDiagnostics
(
4827
compilation.
VerifyDiagnostics
(
4931
Dim compilation = CreateCompilationWithCustomILSource(vbSource, ilSource).
VerifyDiagnostics
()
4955
CreateCompilationWithCustomILSource(vbSource, ilSource).
VerifyDiagnostics
()
5233
CreateCompilationWithCustomILSource(vbSource, ilSource).
VerifyDiagnostics
(
5260
VerifyDiagnostics
(Diagnostic(ERRID.ERR_AmbiguousInUnnamedNamespace1, "A(Of Integer)").WithArguments("A"))
5283
CreateCompilationWithCustomILSource(vbSource, ilSource).
VerifyDiagnostics
(
5511
CompilationUtils.CreateCompilationWithMscorlib40AndReferences(source, {s_propertiesDll}).
VerifyDiagnostics
(
8087
comp.
VerifyDiagnostics
(
8091
comp.
VerifyDiagnostics
(
SymbolsTests\Source\SourceSymbolTests.vb (1)
532
compilation.
VerifyDiagnostics
(
SymbolsTests\Source\StaticLocals.vb (1)
893
compilation.
VerifyDiagnostics
()
SymbolsTests\Source\TypeTests.vb (2)
2390
compilation.
VerifyDiagnostics
()
2501
compilation.
VerifyDiagnostics
(
SymbolsTests\SymbolErrorTests.vb (59)
954
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_StrictDisallowsImplicitProc, "+"),
1408
CreateCompilationWithMscorlib40(source).
VerifyDiagnostics
(
1464
</compilation>).
VerifyDiagnostics
(
1492
</compilation>).
VerifyDiagnostics
(
2167
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InterfaceCantUseEventSpecifier1, "Friend").WithArguments("Friend"),
3972
comp.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InaccessibleSymbol2, "C.c_int").WithArguments("C.c_int", "Friend"),
5972
</compilation>).
VerifyDiagnostics
(
5991
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InvalidModuleAttribute1, "InternalsVisibleTo").WithArguments("InternalsVisibleTo"))
6381
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_MustOverOnNotInheritPartClsMem1, "MustOverride").WithArguments("MustOverride"))
6953
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_LocalsCannotHaveAttributes, "<My(12345)>"))
6989
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InvalidAttributeUsage2, "attr1").WithArguments("attr1", "Beep1"),
7129
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "Assembly:clscompliant(true)").WithArguments("CLSCompliantAttribute"),
7190
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "A1()").WithArguments("A1"))
7224
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "A1()").WithArguments("A1"),
7257
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "A1()").WithArguments("A1"))
7289
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InvalidMultipleAttributeUsage1, "A1()").WithArguments("A1"),
7793
compilation.
VerifyDiagnostics
(
7807
compilation.
VerifyDiagnostics
(
7927
compilation1.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ObsoleteAsAny, "Any").WithArguments("Any"))
9557
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_SynthMemberClashesWithMember5, "obj1").WithArguments("event", "obj1", "obj1Event", "module", "M1"))
9767
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_MemberClashesWithSynth6, "ObjEvent").WithArguments("WithEvents variable", "ObjEvent", "event", "Obj", "module", "M1"))
13269
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_AttributeMustInheritSysAttr, "MyAttribute").WithArguments("MyAttribute"))
13291
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_AttributeCannotBeAbstract, "My").WithArguments("MyAttribute"))
13315
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_AttributeCannotBeAbstract, "My").WithArguments("MyAttribute"))
13401
compilation.
VerifyDiagnostics
(
13430
compilation.
VerifyDiagnostics
(
13968
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_AttrCannotBeGenerics, "attributeusageattribute").WithArguments("attributeusageattribute"),
14187
compilation1.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_DeclaresCantBeInGeneric, "goo"))
16539
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_OperatorMustBePublic, "Private").WithArguments("Private"))
16560
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_OperatorMustBeShared, "IsFalse"))
16580
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BadOperatorFlags1, "Overridable").WithArguments("Overridable"))
16601
</compilation>).
VerifyDiagnostics
(
16620
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_TwoParametersRequired1, "And").WithArguments("And"))
16636
</compilation>).
VerifyDiagnostics
(
16667
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ConvMustBeWideningOrNarrowing, "CType"))
16681
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_InvalidSpecifierOnNonConversion1, "Widening").WithArguments("Widening"))
16696
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_UnaryParamMustBeContainingType1, "IsTrue").WithArguments("S1"))
16711
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_BinaryParamMustBeContainingType1, "And").WithArguments("S1"))
16726
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ConvParamMustBeContainingType1, "CType").WithArguments("S1"))
16741
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_OperatorRequiresBoolReturnType1, "IsTrue").WithArguments("IsTrue"))
16756
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ConversionToSameType, "CType"))
16772
</compilation>).
VerifyDiagnostics
(
16792
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ConversionToBaseType, "CType"))
16810
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ConversionToDerivedType, "CType"))
16825
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ConversionToObject, "CType"))
16842
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ConversionFromInterfaceType, "CType"))
16859
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ConversionFromBaseType, "CType"))
16876
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ConversionFromDerivedType, "CType"))
16891
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ConversionFromObject, "CType"))
16908
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_MatchingOperatorExpected2, "IsFalse").WithArguments("IsTrue", "Public Shared Operator IsFalse(z As S1) As Boolean"))
16922
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_OperatorRequiresIntegerParameter1, ">>").WithArguments(">>"))
17469
compilation1.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_LambdasCannotHaveAttributes, "<System.Runtime.InteropServices.InAttribute()>"))
17486
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_CantSpecifyParamsOnLambdaParamNoType, "y()"))
17499
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_AutoPropertyInitializedInStructure, "AP"),
18763
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.WRN_SynthMemberShadowsMember5, "E").WithArguments("event", "E", "EEventHandler", "class", "A"),
19347
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.WRN_ShadowingGenericParamWithParam1, "T").WithArguments("T"))
20655
</compilation>).
VerifyDiagnostics
()
24227
compilation.
VerifyDiagnostics
() ' No Errors
24416
references:={ilModule, dReference}).
VerifyDiagnostics
()
UsedAssembliesTests.vb (45)
320
comp0.
VerifyDiagnostics
()
336
comp1.
VerifyDiagnostics
()
394
comp0.
VerifyDiagnostics
()
410
comp1.
VerifyDiagnostics
()
588
comp1.
VerifyDiagnostics
()
790
comp1.
VerifyDiagnostics
()
964
comp1.
VerifyDiagnostics
()
1103
comp1.
VerifyDiagnostics
()
1206
comp0.
VerifyDiagnostics
()
1224
comp1.
VerifyDiagnostics
()
1448
comp5.
VerifyDiagnostics
()
1616
comp0.
VerifyDiagnostics
()
1628
comp1.
VerifyDiagnostics
()
2135
comp0.
VerifyDiagnostics
()
2192
comp0.
VerifyDiagnostics
()
2269
comp0.
VerifyDiagnostics
()
2351
comp0.
VerifyDiagnostics
()
2430
comp0.
VerifyDiagnostics
()
2509
comp0.
VerifyDiagnostics
()
2594
comp0.
VerifyDiagnostics
()
2714
comp0.
VerifyDiagnostics
()
2989
comp0.
VerifyDiagnostics
()
3262
comp1.
VerifyDiagnostics
()
3335
comp1.
VerifyDiagnostics
()
3398
comp1.
VerifyDiagnostics
()
3470
comp1.
VerifyDiagnostics
()
3704
comp1.
VerifyDiagnostics
()
3716
comp2.
VerifyDiagnostics
()
3780
comp1.
VerifyDiagnostics
()
3792
comp2.
VerifyDiagnostics
()
3886
comp1.
VerifyDiagnostics
()
3898
comp2.
VerifyDiagnostics
()
4069
comp1.
VerifyDiagnostics
()
4081
comp2.
VerifyDiagnostics
()
4292
comp0.
VerifyDiagnostics
()
4306
comp1.
VerifyDiagnostics
()
4371
comp0.
VerifyDiagnostics
()
4385
comp1.
VerifyDiagnostics
()
4448
comp0.
VerifyDiagnostics
()
4458
comp1.
VerifyDiagnostics
()
4524
comp0.
VerifyDiagnostics
()
4534
comp1.
VerifyDiagnostics
()
4645
comp0.
VerifyDiagnostics
()
4662
comp1.
VerifyDiagnostics
()
4672
comp2.
VerifyDiagnostics
()
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (61)
Parser\ParseDirectives.vb (55)
2782
CreateCompilationWithMscorlib40AndVBRuntime(compXml).
VerifyDiagnostics
(
2788
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
2794
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
()
2797
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
2801
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
()
2822
CreateCompilationWithMscorlib40AndVBRuntime(compXml).
VerifyDiagnostics
(
2828
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
2834
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
()
2837
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
2841
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
()
2862
CreateCompilationWithMscorlib40AndVBRuntime(compXml).
VerifyDiagnostics
(
2868
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
2874
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
()
2877
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
2881
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
()
2902
CreateCompilationWithMscorlib40AndVBRuntime(compXml).
VerifyDiagnostics
(
2908
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
2914
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
()
2917
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
2921
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
()
2940
CreateCompilationWithMscorlib40AndVBRuntime(compXml).
VerifyDiagnostics
(
2948
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
2956
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
2960
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
2966
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
()
2985
CreateCompilationWithMscorlib40AndVBRuntime(compXml).
VerifyDiagnostics
(
2993
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
3001
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
3005
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
3011
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
()
3032
CreateCompilationWithMscorlib40AndVBRuntime(compXml).
VerifyDiagnostics
(
3039
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
3046
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
3050
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
3055
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
()
3075
CreateCompilationWithMscorlib40AndVBRuntime(compXml).
VerifyDiagnostics
(
3082
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
3089
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
3093
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
3098
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
()
3124
CreateCompilationWithMscorlib40AndVBRuntime(compXml).
VerifyDiagnostics
(
3131
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
3138
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
3142
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
3147
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
()
3255
CreateCompilationWithMscorlib40AndVBRuntime(compXml).
VerifyDiagnostics
(
3263
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
3271
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
3275
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
(
3281
CreateCompilationWithMscorlib40AndVBRuntime(compXml, compOptions).
VerifyDiagnostics
()
3362
CreateCompilationWithMscorlib40AndVBRuntime(compXml).
VerifyDiagnostics
(
3382
CreateCompilationWithMscorlib40AndVBRuntime(compXml).
VerifyDiagnostics
(
3543
CreateCompilationWithMscorlib40AndVBRuntime(compXml).
VerifyDiagnostics
(
3568
CreateCompilationWithMscorlib40AndVBRuntime(compXml).
VerifyDiagnostics
(
3601
VerifyDiagnostics
(
Parser\ParseErrorTests.vb (1)
862
</compilation>).
VerifyDiagnostics
(Diagnostic(ERRID.ERR_RequiredConstExpr, "New Integer(1, 1) {{1, 2}, {2, 3}}"),
Parser\ParseStatements.vb (1)
4144
compilation.
VerifyDiagnostics
(Diagnostic(ERRID.ERR_ExpectedNext, "For j = 1 To 10"),
Parser\ParseXml.vb (1)
4502
CreateCompilationWithMscorlib40({""}, options:=TestOptions.ReleaseDll.WithGlobalImports(GlobalImport.Parse(import))).
VerifyDiagnostics
()
TestSyntaxNodes.vb (3)
2984
compilation.
VerifyDiagnostics
()
3151
compilation.
VerifyDiagnostics
()
3309
c.
VerifyDiagnostics
(
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (1)
BasicTestBase.vb (1)
464
compilation.
VerifyDiagnostics
()