public void ICOpenTest() { SafeHIC hic; Assert.That(hic = ICOpen(ICTYPE_VIDEO, WinMm.MAKEFOURCC("cvid"), ICMODE.ICMODE_DECOMPRESS), ResultIs.ValidHandle); Assert.That(() => hic.Dispose(), Throws.Nothing); }
public void ICAboutTest() { using var hic = ICOpen(ICTYPE_VIDEO, WinMm.MAKEFOURCC("cvid"), ICMODE.ICMODE_DECOMPRESS); Assert.That(hic, ResultIs.ValidHandle); Assert.That(ICAbout(hic, User32.GetDesktopWindow()), Is.EqualTo(ICERR.ICERR_OK)); }
public void ICInfoTest() { Assert.That(ICInfo(ICTYPE_VIDEO, WinMm.MAKEFOURCC("cvid"), out var info), ResultIs.Successful); Assert.That(info.dwSize, Is.GreaterThan(0)); info.WriteValues(); }