Пример #1
0
        public void SimpleFrameLoadingTest()
        {
            // Can be used for testing to make sure N-Unit is responding properly
            log.Debug("Hello World");

            FileStreamCamera fsc = new FileStreamCamera(UnitTestSettings.MEDIA_DIRECTORY + "\\public\\unit-tests\\head-tracking\\test08-move-head-no-glasses.avi", false);

            fsc.OnImage += new EventHandler <ImageEventArgs>(fsc_OnImage);
            fsc.Start();

            System.Threading.Thread.Sleep(40000);

            Assert.AreEqual(765, fsc.FrameCounter);

            fsc.Stop();
        }
Пример #2
0
        public void SimpleFrameLoadingTest()
        {
            // Can be used for testing to make sure N-Unit is responding properly
            log.Debug( "Hello World" );

            FileStreamCamera fsc = new FileStreamCamera( UnitTestSettings.MEDIA_DIRECTORY + "\\public\\unit-tests\\head-tracking\\test08-move-head-no-glasses.avi", false );

            fsc.OnImage += new EventHandler<ImageEventArgs>( fsc_OnImage );
            fsc.Start();

            System.Threading.Thread.Sleep( 40000 );

            Assert.AreEqual( 765, fsc.FrameCounter );

            fsc.Stop();
        }