private void TestStretchMode() { int hr; ResizeFlags sm; hr = m_pSource1Src.SetStretchMode(ResizeFlags.Crop); DESError.ThrowExceptionForHR(hr); hr = m_pSource1Src.GetStretchMode(out sm); DESError.ThrowExceptionForHR(hr); Debug.Assert(sm == ResizeFlags.Crop, "StretchMode"); }