public static void DebuggerAttribute()
{
DebuggerAttributes.ValidateDebuggerDisplayReferences(new Queue());
var testQueue = new Queue();
testQueue.Enqueue("a");
testQueue.Enqueue(1);
testQueue.Enqueue("b");
testQueue.Enqueue(2);
DebuggerAttributes.ValidateDebuggerTypeProxyProperties(testQueue);
bool threwNull = false;
try
{
DebuggerAttributes.ValidateDebuggerTypeProxyProperties(typeof(Queue), null);
}
catch (TargetInvocationException ex)
{
threwNull = ex.InnerException is ArgumentNullException;
}
Assert.True(threwNull);
}