[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]