System.Collections.Tests.SortedListTests.DebuggerAttribute C# (CSharp) Method

DebuggerAttribute() private method

private DebuggerAttribute ( ) : void
return void
        public static void DebuggerAttribute()
        {
            var list = new SortedList() { { "a", 1 }, { "b", 2 } };

            DebuggerAttributes.ValidateDebuggerDisplayReferences(new SortedList());

            DebuggerAttributes.ValidateDebuggerTypeProxyProperties(list);
            DebuggerAttributes.ValidateDebuggerTypeProxyProperties(typeof(SortedList), SortedList.Synchronized(list));

            bool threwNull = false;
            try
            {
                DebuggerAttributes.ValidateDebuggerTypeProxyProperties(typeof(SortedList), null);
            }
            catch (TargetInvocationException ex)
            {
                threwNull = ex.InnerException is ArgumentNullException;
            }

            Assert.True(threwNull);
        }
SortedListTests