81 references to VerifyValue
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (71)
Attributes\AttributeTests.vb (55)
214attrs(0).VerifyValue(0, TypedConstantKind.Primitive, "Roslyn.Compilers.UnitTests") 215attrs(1).VerifyValue(0, TypedConstantKind.Primitive, "Roslyn.Compilers.CSharp") 216attrs(2).VerifyValue(0, TypedConstantKind.Primitive, "Roslyn.Compilers.CSharp.UnitTests") 217attrs(3).VerifyValue(0, TypedConstantKind.Primitive, "Roslyn.Compilers.CSharp.Test.Utilities") 218attrs(4).VerifyValue(0, TypedConstantKind.Primitive, "Roslyn.Compilers.VisualBasic") 357attrs(0).VerifyValue(0, TypedConstantKind.Primitive, 4) 651attrs(0).VerifyValue(Of Object)(0, TypedConstantKind.Type, GetType(Object)) 656attrs(0).VerifyValue(0, TypedConstantKind.Array, {GetType(String)}) 660attrs(0).VerifyValue(Of Object())(0, TypedConstantKind.Array, {1, "two", GetType(String), 3.1415926}) 662attrs(0).VerifyValue(0, TypedConstantKind.Array, {New Object() {GetType(String)}}) 791attrs(0).VerifyValue(0, TypedConstantKind.Enum, CInt(FileMode.Open)) 792attrs(0).VerifyValue(1, TypedConstantKind.Enum, CInt(BindingFlags.DeclaredOnly Or BindingFlags.Public)) 798attrs(0).VerifyValue(0, TypedConstantKind.Array, {"q"c, "c"c}) 802attrs(0).VerifyValue(Of Object)(0, TypedConstantKind.Primitive, Nothing) 803attrs(0).VerifyValue(Of Long)(1, TypedConstantKind.Primitive, 256) 804attrs(0).VerifyValue(Of Single)(2, TypedConstantKind.Primitive, 0) 805attrs(0).VerifyValue(Of Short)(3, TypedConstantKind.Primitive, -1) 808attrs(1).VerifyValue(Of Object)(0, TypedConstantKind.Type, GetType(Dictionary(Of String, Integer))) 809attrs(1).VerifyValue(Of Long)(1, TypedConstantKind.Primitive, 265) 810attrs(1).VerifyValue(Of Single)(2, TypedConstantKind.Primitive, -0.0001F) 811attrs(1).VerifyValue(Of Short)(3, TypedConstantKind.Primitive, 2) 852attrs(0).VerifyValue(Of Object)(0, TypedConstantKind.Array, New Object() {0, "", Nothing}) 853attrs(0).VerifyValue(Of Byte)(1, TypedConstantKind.Primitive, 255) 854attrs(0).VerifyValue(Of SByte)(2, TypedConstantKind.Primitive, -128) 865attrs(1).VerifyValue(Of Object)(0, TypedConstantKind.Type, GetType(String(,,))) 905attrs(0).VerifyValue(Of Object)(0, TypedConstantKind.Array, New Object() {1, Nothing, "Hi"}) 940attrs(0).VerifyValue(Of Char())(0, TypedConstantKind.Array, New Char() {" "c, Nothing}) 941attrs(0).VerifyValue(Of String())(1, TypedConstantKind.Array, New String() {""}) 951attrs(0).VerifyValue(Of Char())(0, TypedConstantKind.Array, New Char() {" "c, Nothing}) 952attrs(0).VerifyValue(Of String())(1, TypedConstantKind.Array, New String() {""}) 1012attrs(0).VerifyValue(Of Object)(0, TypedConstantKind.Primitive, "f1 return type") 1016attrs(0).VerifyValue(Of Object)(0, TypedConstantKind.Primitive, "p1 return type") 1021attrs(0).VerifyValue(Of Object)(0, TypedConstantKind.Primitive, "p2 return type") 1025attrs(0).VerifyValue(Of Object)(0, TypedConstantKind.Primitive, "f2 returns an integer") 1169attrs(0).VerifyValue(Of Object)(0, TypedConstantKind.Primitive, 1) 1170attrs(1).VerifyValue(Of Object)(0, TypedConstantKind.Array, New String() {"a", "b"}) 1261attrs(0).VerifyValue(0, TypedConstantKind.Type, bClass.ConstructUnboundGenericType()) 2177attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg) 2182attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg) 2188attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg) 2195attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg) 2204attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg) 2211attrs.First().VerifyValue(Of Object)(0, TypedConstantKind.Type, typeArg) 4326methods(0).GetAttributes().Single().VerifyValue(0, TypedConstantKind.Array, New Integer() {1, 2, 3}) 4327methods(1).GetAttributes().Single().VerifyValue(0, TypedConstantKind.Array, New Object() {1, 2, 3}) 4328methods(2).GetAttributes().Single().VerifyValue(0, TypedConstantKind.Array, New String() {"A", "B", "C"}) 4329methods(3).GetAttributes().Single().VerifyValue(0, TypedConstantKind.Array, New Object() {"A", "B", "C"}) 4330methods(4).GetAttributes().Single().VerifyValue(0, TypedConstantKind.Array, New Object() {}) ' Value was invalid. 4331methods(5).GetAttributes().Single().VerifyValue(0, TypedConstantKind.Array, New Object() {DirectCast({1, 2, 3}, Object), DirectCast({"A", "B", "C"}, Object)}) 4397attrs(0).VerifyValue(0, TypedConstantKind.Array, nullArray) 4399attrs(1).VerifyValue(0, TypedConstantKind.Array, emptyArray) 4401attrs(2).VerifyValue(0, TypedConstantKind.Array, nullArray) 4404attrs(3).VerifyValue(0, TypedConstantKind.Array, emptyArray) 4407attrs(4).VerifyValue(0, TypedConstantKind.Array, nullArray) 4410attrs(5).VerifyValue(0, TypedConstantKind.Array, emptyArray)
Attributes\AttributeTests_Synthesized.vb (2)
727attribute.VerifyValue(Of Integer)(0, TypedConstantKind.Primitive, expectedArgValue) 1041attribute.VerifyValue(0, TypedConstantKind.Enum, CInt(expectedDebuggingMode))
Attributes\AttributeTests_WellKnownAttributes.vb (8)
365attrSym.VerifyValue(0, TypedConstantKind.Primitive, 99UL) 373attrSym.VerifyValue(0, TypedConstantKind.Primitive, "Ref") 383attrSym.VerifyValue(0, TypedConstantKind.Primitive, 0.0F) 397attrSym.VerifyValue(0, TypedConstantKind.Primitive, 123456) 403attrSym.VerifyValue(2, TypedConstantKind.Primitive, 100) 417attrSym.VerifyValue(0, TypedConstantKind.Enum, CInt(LayoutKind.Explicit)) 428attrSym.VerifyValue(0, TypedConstantKind.Enum, CInt(UnmanagedType.I8)) 430attrSym.VerifyValue(0, TypedConstantKind.Primitive, 0)
Emit\CompilationEmitTests.vb (6)
3290typeAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(DeclarativeSecurityAction.RequestOptional)) 3300typeAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(DeclarativeSecurityAction.RequestMinimum)) 3320typeAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(DeclarativeSecurityAction.Demand)) 3330typeAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(DeclarativeSecurityAction.Assert)) 3345methodAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(DeclarativeSecurityAction.Demand)) 3355methodAttribute.VerifyValue(0, TypedConstantKind.Enum, CInt(DeclarativeSecurityAction.Assert))
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (10)
SymbolsTests\Metadata\PE\LoadingAttributes.vb (9)
540arg.VerifyValue(0, TypedConstantKind.Array, {1, 2}) 544arg.VerifyValue(0, TypedConstantKind.Array, {stringType}) 548arg.VerifyValue(0, TypedConstantKind.Array, New Object() {stringType}) 552arg.VerifyValue(0, TypedConstantKind.Array, {stringType}) 556arg.VerifyValue(0, TypedConstantKind.Array, New Object() {New Object() {stringType}}) 562arg.VerifyValue(0, TypedConstantKind.Array, New Object() {1, "two", stringType, 3.1415926}) 568VerifyValue(arg, 0, TypedConstantKind.Array, New Object() {1, New Object() {2, 3, 4}, 5}) 574VerifyValue(arg, 0, TypedConstantKind.Array, New Integer() {1, 2, 3}) 1101attrSym.VerifyValue(0, TypedConstantKind.Array, New SByte() {-1, 0, 1})
SymbolsTests\Retargeting\RetargetingCustomAttributes.vb (1)
143attribute.VerifyValue(0, TypedConstantKind.Type, NewMsCorLib_systemType)