[Camera][Non-ACR] Remove useless camera ctor statement 92/242692/2
authorHaesu Gwon <haesu.gwon@samsung.com>
Mon, 31 Aug 2020 01:02:37 +0000 (10:02 +0900)
committerHaesu Gwon <haesu.gwon@samsung.com>
Tue, 1 Sep 2020 10:33:00 +0000 (19:33 +0900)
Change-Id: I9534201713ec111b7ce583bfdb239ce9434aa6d2

tct-suite-vs/Tizen.Camera.Tests/testcase/TSCameraCapabilities.cs

index 18df4da6a87119c833bc78e8e2be66ceaf509c14..fd6eff10dc47daefd0bb2b4a7fc7076782040d89 100644 (file)
@@ -333,15 +333,12 @@ namespace Tizen.Multimedia.Tests
         [Property("AUTHOR", "Haesu Gwon, haesu.gwon@samsung.com")]
         public void SupportedPreviewPixelFormats_THROWS_IF_OBJECT_IS_ALREADY_DISPOSED()
         {
-            using (var camera = new Camera(CameraDevice.Front))
-            {
-                camera.Dispose();
+            TestCamera.Dispose();
 
-                Assert.Throws<ObjectDisposedException>(() =>
-                {
-                    var result = camera.Capabilities.SupportedPreviewPixelFormats;
-                }, "Should throws proper exception");
-            }
+            Assert.Throws<ObjectDisposedException>(() =>
+            {
+                var result = TestCamera.Capabilities.SupportedPreviewPixelFormats;
+            }, "Should throws proper exception");
         }
 
         [Test]