private void TestSub() { int hr; object o; string s = "{" + MediaType.URLStream.ToString() + "}"; string s2; Guid g; bool b; int iDepth; IAMTimelineGroup pGroup; s = s.ToUpper(); hr = m_pVideoGroupObj.GetSubObjectLoaded(out b); DESError.ThrowExceptionForHR(hr); Debug.Assert(!b, "Loaded"); hr = m_pVideoGroupObj.SetSubObject(m_pVideoGroupObj2); DESError.ThrowExceptionForHR(hr); hr = m_pVideoGroupObj.GetSubObject(out o); DESError.ThrowExceptionForHR(hr); Debug.Assert(m_pVideoGroupObj2 == (IAMTimelineObj)o, "SubObject"); hr = m_pVideoGroupObj.GetSubObjectLoaded(out b); DESError.ThrowExceptionForHR(hr); Debug.Assert(b, "Loaded"); hr = m_pVideoGroupObj2.GetGroupIBelongTo(out pGroup); DESError.ThrowExceptionForHR(hr); Debug.Assert(pGroup == m_pVideoGroupObj2, "GetGroupIBelongTo"); hr = m_pVideoGroupObj.SetSubObjectGUID(MediaType.URLStream); DESError.ThrowExceptionForHR(hr); hr = m_pVideoGroupObj.GetSubObjectGUID(out g); DESError.ThrowExceptionForHR(hr); Debug.Assert(g == MediaType.URLStream, "SubObjGuid"); hr = m_pVideoGroupObj.SetSubObjectGUIDB(s); DESError.ThrowExceptionForHR(hr); hr = m_pVideoGroupObj.GetSubObjectGUIDB(out s2); DESError.ThrowExceptionForHR(hr); s2 = s2.ToUpper(); Debug.Assert(s == s2, "SubObjGuidB"); // Not supported hr = m_pVideoGroupObj2.GetEmbedDepth(out iDepth); DESError.ThrowExceptionForHR(hr); hr = m_pVideoGroupObj2.Remove(); DESError.ThrowExceptionForHR(hr); hr = m_pVideoGroupObj.RemoveAll(); DESError.ThrowExceptionForHR(hr); }