コード例 #1
0
        public void ReviewDisplayUpdaterReviewDisplayUpdaterTest()
        {
            MainWindow main_window = new MainWindow();
            Nkujukira.Demo.Singletons.Singleton.CURRENT_FILE_NAME = Singleton.VIDEO_FILE_PATH;
            ReviewDisplayUpdater thread = new ReviewDisplayUpdater(main_window.GetReviewFootageImageBox());

            Assert.IsNotNull(thread);
        }
コード例 #2
0
 public void ReviewDisplayUpdaterResumeTest()
 {
     MainWindow main_window = new MainWindow();
     Nkujukira.Demo.Singletons.Singleton.CURRENT_FILE_NAME = Singleton.VIDEO_FILE_PATH;
     ReviewDisplayUpdater thread = new ReviewDisplayUpdater(main_window.GetReviewFootageImageBox());
     bool sucess = thread.Resume();
     Assert.IsTrue(sucess);
 }
コード例 #3
0
 public void ReviewDisplayUpdaterRequestStopTest()
 {
     MainWindow main_window = new MainWindow();
     Nkujukira.Demo.Singletons.Singleton.CURRENT_FILE_NAME = Singleton.VIDEO_FILE_PATH;
     ReviewDisplayUpdater thread = new ReviewDisplayUpdater(main_window.GetReviewFootageImageBox());
     thread.StartWorking();
     thread.RequestStop();
     Assert.IsFalse(thread.IsRunning());
 }
コード例 #4
0
 public void ReviewDisplayUpdaterDisplayNextFrameTest()
 {
     MainWindow main_window = new MainWindow();
     Nkujukira.Demo.Singletons.Singleton.CURRENT_FILE_NAME = Singleton.VIDEO_FILE_PATH;
     ReviewDisplayUpdater thread = new ReviewDisplayUpdater(main_window.GetReviewFootageImageBox());
     Nkujukira.Demo.Singletons.Singleton.REVIEW_FRAMES_TO_BE_DISPLAYED.Enqueue(Singleton.FACE_PIC);
     bool sucess=thread.DisplayNextFrame();
     Assert.IsTrue(sucess);
 }