70 references to VerifyNamedArgumentValue
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (44)
Attributes\AttributeTests.cs (27)
1711attrs.First().VerifyNamedArgumentValue<object>(0, "O", TypedConstantKind.Primitive, null); 3106attrs[1].VerifyNamedArgumentValue<ushort>(0, "UShortField", TypedConstantKind.Primitive, 1234); 3117attrs[0].VerifyNamedArgumentValue<uint>(0, "UIntField", TypedConstantKind.Primitive, 1230); 3135attrs[0].VerifyNamedArgumentValue<ulong[]>(0, "AryField", TypedConstantKind.Array, new ulong[] { 0, 1, 12345657 }); 3180attrs.First().VerifyNamedArgumentValue<object[]>(0, "AryProp", TypedConstantKind.Array, new object[] { new object[] { "", typeof(IList<string>) } }); 3220attrs.First().VerifyNamedArgumentValue<object>(0, "ObjectField", TypedConstantKind.Primitive, 2); 4089attr.VerifyNamedArgumentValue(0, "Inherited", TypedConstantKind.Primitive, false); 4090attr.VerifyNamedArgumentValue(1, "AllowMultiple", TypedConstantKind.Primitive, true); 4143attrs.First().VerifyNamedArgumentValue(0, "X", TypedConstantKind.Primitive, 6); 4187attrs.First().VerifyNamedArgumentValue(0, "X", TypedConstantKind.Primitive, 6); 4276attrs.First().VerifyNamedArgumentValue(0, "X", TypedConstantKind.Primitive, 6); 4968enumerator.Current.VerifyNamedArgumentValue(0, "X", TypedConstantKind.Enum, (int)new DayOfWeek()); 4970enumerator.Current.VerifyNamedArgumentValue(0, "X", TypedConstantKind.Primitive, new bool()); 4972enumerator.Current.VerifyNamedArgumentValue(0, "X", TypedConstantKind.Primitive, new sbyte()); 4974enumerator.Current.VerifyNamedArgumentValue(0, "X", TypedConstantKind.Primitive, new byte()); 4976enumerator.Current.VerifyNamedArgumentValue(0, "X", TypedConstantKind.Primitive, new short()); 4978enumerator.Current.VerifyNamedArgumentValue(0, "X", TypedConstantKind.Primitive, new ushort()); 4980enumerator.Current.VerifyNamedArgumentValue(0, "X", TypedConstantKind.Primitive, new int()); 4982enumerator.Current.VerifyNamedArgumentValue(0, "X", TypedConstantKind.Primitive, new uint()); 4984enumerator.Current.VerifyNamedArgumentValue(0, "X", TypedConstantKind.Primitive, new char()); 4986enumerator.Current.VerifyNamedArgumentValue(0, "X", TypedConstantKind.Primitive, new float()); 4988enumerator.Current.VerifyNamedArgumentValue(0, "X", TypedConstantKind.Primitive, new Single()); 4990enumerator.Current.VerifyNamedArgumentValue(0, "X", TypedConstantKind.Primitive, new double()); 9882attrs[2].VerifyNamedArgumentValue(0, fieldName, TypedConstantKind.Array, nullArray); 9885attrs[3].VerifyNamedArgumentValue(0, fieldName, TypedConstantKind.Array, nullArray); 9888attrs[4].VerifyNamedArgumentValue(0, fieldName, TypedConstantKind.Array, emptyArray); 9891attrs[5].VerifyNamedArgumentValue(0, fieldName, TypedConstantKind.Array, emptyArray);
Attributes\AttributeTests_Security.cs (1)
63typeAttribute.VerifyNamedArgumentValue(0, "MayLeakOnAbort", TypedConstantKind.Primitive, true);
Attributes\AttributeTests_Synthesized.cs (1)
82attribute.VerifyNamedArgumentValue<bool>(0, "WrapNonExceptionThrows", TypedConstantKind.Primitive, true);
Attributes\AttributeTests_WellKnownAttributes.cs (15)
178attrSym.VerifyNamedArgumentValue(0, "ThrowOnUnmappableChar", TypedConstantKind.Primitive, true); 273attrSym.VerifyNamedArgumentValue(0, "BestFitMapping", TypedConstantKind.Primitive, true); 274attrSym.VerifyNamedArgumentValue(1, "CharSet", TypedConstantKind.Enum, (int)CharSet.Ansi); 275attrSym.VerifyNamedArgumentValue(2, "SetLastError", TypedConstantKind.Primitive, true); 276attrSym.VerifyNamedArgumentValue(3, "ThrowOnUnmappableChar", TypedConstantKind.Primitive, true); 472attrSym.VerifyNamedArgumentValue(0, "Size", TypedConstantKind.Primitive, 16); 473attrSym.VerifyNamedArgumentValue(1, "Pack", TypedConstantKind.Primitive, 8); 474attrSym.VerifyNamedArgumentValue(2, "CharSet", TypedConstantKind.Enum, (int)CharSet.Unicode); 2482attrSym.VerifyNamedArgumentValue(0, "CallingConvention", TypedConstantKind.Enum, (int)CallingConvention.FastCall); 2483attrSym.VerifyNamedArgumentValue(1, "SetLastError", TypedConstantKind.Primitive, true); 2490attrSym.VerifyNamedArgumentValue(0, "CharSet", TypedConstantKind.Enum, (int)CharSet.Unicode); 2491attrSym.VerifyNamedArgumentValue(1, "ExactSpelling", TypedConstantKind.Primitive, false); 2492attrSym.VerifyNamedArgumentValue(2, "EntryPoint", TypedConstantKind.Primitive, "MessageBox"); 5158attrSym.VerifyNamedArgumentValue(0, "AllowMultiple", TypedConstantKind.Primitive, true); 5164attrSym.VerifyNamedArgumentValue(0, "AllowMultiple", TypedConstantKind.Primitive, false);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (26)
Symbols\Metadata\PE\LoadingAttributes.cs (24)
269a.VerifyNamedArgumentValue(0, "B", TypedConstantKind.Primitive, true); 272a.VerifyNamedArgumentValue(0, "B", TypedConstantKind.Primitive, Convert.ToByte(1)); 275a.VerifyNamedArgumentValue(0, "C", TypedConstantKind.Primitive, 'b'); 278a.VerifyNamedArgumentValue(0, "E", TypedConstantKind.Enum, 0); 281a.VerifyNamedArgumentValue(0, "S", TypedConstantKind.Primitive, 3.14159f); 284a.VerifyNamedArgumentValue(0, "D", TypedConstantKind.Primitive, 3.1415926); 287a.VerifyNamedArgumentValue(0, "I", TypedConstantKind.Primitive, (Int16)16); 290a.VerifyNamedArgumentValue(0, "I", TypedConstantKind.Primitive, 32); 293a.VerifyNamedArgumentValue(0, "I", TypedConstantKind.Primitive, 64L); 296a.VerifyNamedArgumentValue(0, "T", TypedConstantKind.Type, c3); 328a.VerifyNamedArgumentValue(0, "IA", TypedConstantKind.Array, new int[] { 1, 2 }); 332a.VerifyNamedArgumentValue(0, "EA", TypedConstantKind.Array, new int[] { 0, 1 }); 336a.VerifyNamedArgumentValue(0, "SA", TypedConstantKind.Array, new string[] { "Yes", "No" }); 340a.VerifyNamedArgumentValue(0, "OA", TypedConstantKind.Array, new string[] { "Yes", "No" }); 346a.VerifyNamedArgumentValue(0, "TA", TypedConstantKind.Array, new TypeSymbol[] { c1, c3 }); 616a.VerifyNamedArgumentValue(0, "ThrowOnUnmappableChar", TypedConstantKind.Primitive, true); 647a.VerifyNamedArgumentValue(0, "WrapNonExceptionThrows", TypedConstantKind.Primitive, true); 757attrSym.VerifyNamedArgumentValue(0, "BestFitMapping", TypedConstantKind.Primitive, true); 758attrSym.VerifyNamedArgumentValue(1, "CharSet", TypedConstantKind.Enum, (int)CharSet.Ansi); 759attrSym.VerifyNamedArgumentValue(2, "SetLastError", TypedConstantKind.Primitive, true); 760attrSym.VerifyNamedArgumentValue(3, "ThrowOnUnmappableChar", TypedConstantKind.Primitive, true); 927attrSym.VerifyNamedArgumentValue(0, "UShortField", TypedConstantKind.Primitive, Convert.ToUInt16(321)); 931attrSym.VerifyNamedArgumentValue(0, "TypeField", TypedConstantKind.Type, typeof(Dictionary<string, int>)); 1244attr.VerifyNamedArgumentValue(1, "IsRequired", TypedConstantKind.Primitive, true);
Symbols\Retargeting\RetargetCustomAttributes.cs (2)
155attribute.VerifyNamedArgumentValue<object>(0, "Target", TypedConstantKind.Type, typeof(int[])); 156attribute.VerifyNamedArgumentValue(1, "TargetTypeName", TypedConstantKind.Primitive, "IntArrayType");