Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
 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));
 }
Exemplo n.º 3
0
 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();
 }