コード例 #1
0
 public void get_ImageTest()
 {
     WebcamModel target = new WebcamModel();
     Image expected = null;
     Image actual;
     actual = target.get_Image();
     Assert.AreEqual(expected, actual);
 }
コード例 #2
0
        public void get_devicesTest()
        {
            WebcamModel target = new WebcamModel(); // TODO: Passenden Wert initialisieren

            Dictionary<int, string> actual;
            actual = target.get_devices();
            Assert.IsInstanceOfType(actual, typeof(Dictionary<int, string>));
        }
コード例 #3
0
 public WebcamController()
 {
     model = new WebcamModel();
 }
コード例 #4
0
 public WebcamController()
 {
     model = new WebcamModel();
 }
コード例 #5
0
 public void set_deviceTest()
 {
     WebcamModel target = new WebcamModel();
     KeyValuePair<int, string> selob = new KeyValuePair<int, string>();
     target.set_device(selob);
 }
コード例 #6
0
 public void stop_captureTest()
 {
     WebcamModel target = new WebcamModel(); // TODO: Passenden Wert initialisieren
     target.stop_capture();
 }
コード例 #7
0
 public void show_pictureTest()
 {
     PictureBox pic = new PictureBox();
     PixelState.getInstance().set_pictureBox(pic);
     WebcamModel target = new WebcamModel();
     Dictionary<int, string> devices = new Dictionary<int, string>();
     Dictionary<int, string> solutions = new Dictionary<int, string>();
     devices.Add(1,"");
     solutions.Add(1, "");
     WebcamOptions form = new WebcamOptions(devices, solutions);
     target.show_picture(pic, form);
 }
コード例 #8
0
 public void set_solutionTest()
 {
     WebcamModel target = new WebcamModel();
     KeyValuePair<int, string> selob = new KeyValuePair<int, string>();
     target.set_solution(selob);
 }