Пример #1
0
        public void Text_SwitchOff()
        {
            Pentax camera = new Pentax();

            camera.Channel.SwitchOff();
            Assert.IsTrue(camera.DeviceStatus == "Off");
        }
Пример #2
0
        public void Text_ZoomIn_1_Times()
        {
            Pentax camera = new Pentax();

            camera.Channel.SwitchOn();
            camera.Channel.ZoomIn();
            Assert.IsTrue(camera.Zoom == "1 X time");
        }
Пример #3
0
        public void Text_SwitchOn()
        {
            Pentax camera = new Pentax();

            camera.Channel.SwitchOn();
            Assert.IsTrue(camera.DeviceStatus == "On");
            Assert.IsTrue(camera.Zoom == "normal");
        }
Пример #4
0
        public void Text_ZoomIn_2_Times()
        {
            Pentax camera = new Pentax();

            camera.Channel.SwitchOn();
            camera.Channel.ZoomIn();
            camera.Channel.ZoomIn();
            Assert.IsTrue(camera.Zoom == "2 X times"); /* Reach Pentax zoom in capability */
        }
Пример #5
0
        public void Text_ZoomIn_Beyond()
        {
            Pentax camera = new Pentax();

            camera.Channel.SwitchOn();
            camera.Channel.ZoomIn();
            camera.Channel.ZoomIn();
            camera.Channel.ZoomIn();
            camera.Channel.ZoomIn();
            Assert.IsTrue(camera.Zoom == "2 X times"); /* Because the maximum zoomin on Pentax is 2, they zoom level will remain 2 eventhough user tries to keep zoom in further */
        }
Пример #6
0
        static void Main(string[] args)
        {
            Pentax device = new Pentax();

            device.Channel.SwitchOn();
            Console.WriteLine(device.DeviceStatus);
            device.Channel.ZoomIn();
            Console.WriteLine(device.Zoom);
            device.Channel.ZoomIn();
            device.Channel.ZoomIn();
            Console.WriteLine(device.Zoom);
            device.Channel.SwitchOff();
            Console.WriteLine(device.DeviceStatus);
            Console.WriteLine(device.Logs);
            Console.ReadLine();
        }
Пример #7
0
        public void Test_Brand()
        {
            Pentax camera = new Pentax();

            Assert.IsTrue(camera.Brand == "Pentax");
        }