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); }
public void setMainFormTest() { WebcamController target = new WebcamController(); // TODO: Passenden Wert initialisieren Form1 form = new Form1(); target.setMainForm(form); }
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); }
//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); }
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); }
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); }
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); }
// 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>(); }
public void WebcamControllerConstructorTest() { WebcamController target = new WebcamController(); Assert.IsNotNull(target); }
public void stop_captureTest() { WebcamController target = new WebcamController(); // TODO: Passenden Wert initialisieren target.stop_capture(); }
public void openWebcamWindowTest() { WebcamController target = new WebcamController(); // TODO: Passenden Wert initialisieren target.openWebcamWindow(); }