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