Ejemplo n.º 1
0
        private void TestDirty()
        {
            int    hr;
            long   l1, l2;
            double d1, d2;

            // Not supported
            hr = m_pVideoGroupObj.SetDirtyRange(1, 2);
            Debug.Assert(hr == E_NOTIMPL, "SetDirtyRange");

            // Not supported
            hr = m_pVideoGroupObj.SetDirtyRange2(1.1, 2.2);
            Debug.Assert(hr == E_NOTIMPL, "SetDirtyRange2");

            // Not supported
            hr = m_pVideoGroupObj.GetDirtyRange(out l1, out l2);
            Debug.Assert(hr == 0 && l1 == -1 && l2 == -1, "GetDirtyRange");

            // Not supported
            hr = m_pVideoGroupObj.GetDirtyRange2(out d1, out d2);
            Debug.Assert(hr == 0 && d1 == -0.0000001 && d2 == -0.0000001, "GetDirtyRange2");

            // Not supported
            hr = m_pVideoGroupObj.ClearDirty();
            //Debug.Assert(hr == E_NOTIMPL, "ClearDirty");
        }