public void TestGetPylonDeviceHandle(string preserved)
        {
            //assign
            var worker = new PylonGrabImageWorkingMan();

            //act
            var deviceHandle = worker.GetPylonDeviceHandle();

            //assert
            deviceHandle.Should().NotBeNull("不可為 Null, 請確認裝置是否連接正確");
        }
        public void TestGetPylonDeviceHandle(string preserved)
        {
            //assign
            var worker = new PylonGrabImageWorkingMan();

            //act
            var deviceHandle = worker.GetPylonDeviceHandle();

            //assert
            deviceHandle.Should().NotBeNull("不可為 Null, 請確認裝置是否連接正確");
        }
        public void TestContinuouslyGrab(string preserved)
        {
            //assign
            var worker = new PylonGrabImageWorkingMan();

            //act
            worker.ContinuouslyGrab();
            var image = worker.GetLastestImage();

            //assert
            image.Should().NotBeNull("不可為 Null");
        }
        public void TestOneShot(string preseved)
        {
            //assign
            var worker = new PylonGrabImageWorkingMan();

            //act
            worker.OneShot();
            var image = worker.GetLastestImage();

            //assert
            image.Should().NotBeNull("不可為 Null");
        }
        public void TestOneShot(string preseved)
        {
            //assign
            var worker = new PylonGrabImageWorkingMan();

            //act
            worker.OneShot();
            var image = worker.GetLastestImage();

            //assert
            image.Should().NotBeNull("不可為 Null");
        }
        public void TestContinuouslyGrab(string preserved)
        {
            //assign
            var worker = new PylonGrabImageWorkingMan();

            //act
            worker.ContinuouslyGrab();
            var image = worker.GetLastestImage();

            //assert
            image.Should().NotBeNull("不可為 Null");
        }
        public void TestSetPylonDeviceHandleFeatures(string testCase)
        {
            //assign
            var worker = new PylonGrabImageWorkingMan();
            var features = getPylonDeviceHandleFeaturesTestCase(testCase);

            //act
            worker.DeviceOpen();
            var success = worker.SetPylonDeviceHandleFeatures(features);

            //assert
            success.Should().BeTrue("必須是 True, 代表設定成功");

            //Close
            worker.DeviceClose();
        }
        public void TestSetPylonDeviceHandleFeatures(string testCase)
        {
            //assign
            var worker   = new PylonGrabImageWorkingMan();
            var features = getPylonDeviceHandleFeaturesTestCase(testCase);


            //act
            worker.DeviceOpen();
            var success = worker.SetPylonDeviceHandleFeatures(features);

            //assert
            success.Should().BeTrue("必須是 True, 代表設定成功");

            //Close
            worker.DeviceClose();
        }