public void TestCountryCode() { int hr = 0; int code1, code2; hr = tuner.get_CountryCode(out code1); DsError.ThrowExceptionForHR(hr); Debug.Assert(hr == 0, "IAMTVTuner.get_CountryCode"); hr = tuner.put_CountryCode(code1 + 1); DsError.ThrowExceptionForHR(hr); Debug.Assert(hr == 0, "IAMTVTuner.put_CountryCode"); hr = tuner.get_CountryCode(out code2); DsError.ThrowExceptionForHR(hr); Debug.Assert(code2 == (code1 + 1), "IAMTVTuner.get / put_CountryCode"); }