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