Example #1
0
        public void TestTuningSpace()
        {
            int hr = 0;
            int ts1, ts2;

            hr = tuner.get_TuningSpace(out ts1);
            DsError.ThrowExceptionForHR(hr);
            Debug.Assert(hr == 0, "IAMTVTuner.get_TuningSpace");

            hr = tuner.put_TuningSpace(ts1 + 1);
            DsError.ThrowExceptionForHR(hr);
            Debug.Assert(hr == 0, "IAMTVTuner.put_TuningSpace");

            hr = tuner.get_TuningSpace(out ts2);
            DsError.ThrowExceptionForHR(hr);
            Debug.Assert(ts2 == (ts1 + 1), "IAMTVTuner.get / put_TuningSpace");
        }