private void TestMaxCount()
        {
            int hr = 0;
            int max1, max2;

            hr = tsContainer.get_MaxCount(out max1);
            DsError.ThrowExceptionForHR(hr);

            hr = tsContainer.put_MaxCount(max1 + 1);
            DsError.ThrowExceptionForHR(hr);

            hr = tsContainer.get_MaxCount(out max2);
            DsError.ThrowExceptionForHR(hr);

            Debug.Assert(max2 == max1 + 1, "ITuningSpaceContainer.get_MaxCount / put_MaxCount");

            hr = tsContainer.put_MaxCount(32); // Reset the default value
            DsError.ThrowExceptionForHR(hr);
        }