Пример #1
0
        public void set_deviceTest()
        {
            WebcamController           target = new WebcamController();           // TODO: Passenden Wert initialisieren
            KeyValuePair <int, string> selob  = new KeyValuePair <int, string>(); // TODO: Passenden Wert initialisieren

            target.set_device(selob);
        }
Пример #2
0
        public void setMainFormTest()
        {
            WebcamController target = new WebcamController(); // TODO: Passenden Wert initialisieren
            Form1            form   = new Form1();

            target.setMainForm(form);
        }
Пример #3
0
        public void set_Webcam_pictureTest()
        {
            WebcamController           target = new WebcamController();           // TODO: Passenden Wert initialisieren
            KeyValuePair <int, string> src    = new KeyValuePair <int, string>(); // TODO: Passenden Wert initialisieren

            target.set_Webcam_picture(src);
        }
Пример #4
0
        //Testing if the Relaodcam Action returns expected view
        public void TestWebcamReload()
        {
            var        webcamCon = new WebcamController();
            ViewResult result    = webcamCon.ReloadCam() as ViewResult;

            Assert.Equal(result.ViewName, "Index");
        }
        public void TestNotNullWebCamMain()
        {
            WebcamController webCon = new WebcamController(null);
            ViewResult       result = webCon.WebCamMain() as ViewResult;

            Assert.NotNull(result);
        }
Пример #6
0
        public void set_solutionTest()
        {
            PixelState.getInstance().set_pictureBox(new PictureBox());
            WebcamController           target = WebcamController.getInstance();
            KeyValuePair <int, string> selob  = new KeyValuePair <int, string>();

            target.set_solution(selob);
            Assert.IsNotNull(target);
        }
Пример #7
0
        public void show_Webcam_pictureTest()
        {
            PixelState.getInstance().set_pictureBox(new PictureBox());
            WebcamController target           = WebcamController.getInstance();
            PictureBox       webcamPictureBox = new PictureBox();

            WebcamOptions form = null;

            target.show_Webcam_picture(webcamPictureBox, form);
        }
Пример #8
0
        public void getInstanceTest()
        {
            PictureBox pictureBox1 = new PictureBox();

            PixelState.getInstance().set_pictureBox(pictureBox1);
            WebcamController expected = WebcamController.getInstance();
            WebcamController actual;

            actual = null;
            Assert.AreNotEqual(expected, actual);
        }
        public void TestWebCamMain_Mock()
        {
            var result = new ViewResult();
            Mock <WebcamController> webcamMock = new Mock <WebcamController>();

            webcamMock.Setup(x => x.WebCamMain()).Returns(result);
            var controller = new WebcamController(null);
            var expected   = controller.WebCamMain_ToMock(webcamMock.Object);

            Assert.NotNull(expected);
        }
Пример #10
0
    // Use this for initialization
    void Start()
    {
        questionPopUpGrp     = questionPopUp.GetComponent <CanvasGroup>();
        textInputGrp         = textInput.GetComponent <CanvasGroup>();
        okPopUpGrp           = okPopUp.GetComponent <CanvasGroup>();
        noButtonPopUpGrp     = noButtonPopUp.GetComponent <CanvasGroup>();
        updateCancelPopUpGrp = updateCancelPopUp.GetComponent <CanvasGroup>();
        profileListGrp       = profileListWindow.GetComponent <CanvasGroup>();
        imageListGrp         = imageListWindow.GetComponent <CanvasGroup>();
        cameraFeedGrp        = cameraFeed.GetComponent <CanvasGroup>();
        updateImgGrp         = updateBoxImg.GetComponent <CanvasGroup>();

        webcamController = webcamDisplay.GetComponent <WebcamController>();
    }
Пример #11
0
        public void WebcamControllerConstructorTest()
        {
            WebcamController target = new WebcamController();

            Assert.IsNotNull(target);
        }
Пример #12
0
        public void stop_captureTest()
        {
            WebcamController target = new WebcamController(); // TODO: Passenden Wert initialisieren

            target.stop_capture();
        }
Пример #13
0
        public void openWebcamWindowTest()
        {
            WebcamController target = new WebcamController(); // TODO: Passenden Wert initialisieren

            target.openWebcamWindow();
        }