private void TestTuningSpacesForCLSID()
        {
            int           hr          = 0;
            Guid          searchClsid = typeof(ATSCTuningSpace).GUID;
            ITuningSpaces tsColl;
            int           count1, count2;

            hr = tsContainer._TuningSpacesForCLSID(searchClsid, out tsColl);
            DsError.ThrowExceptionForHR(hr);

            hr = tsColl.get_Count(out count1);
            DsError.ThrowExceptionForHR(hr);

            Marshal.ReleaseComObject(tsColl);

            // The guid string must have this form : {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx}
            hr = tsContainer.TuningSpacesForCLSID(searchClsid.ToString("B"), out tsColl);
            DsError.ThrowExceptionForHR(hr);

            hr = tsColl.get_Count(out count2);
            DsError.ThrowExceptionForHR(hr);

            Marshal.ReleaseComObject(tsColl);

            Debug.Assert(count1 == count2, "ITuningSpaceContainer.TestTuningSpacesForCLSID");
        }