public void TestOnMediaCaptured() { var camera = new CameraView(); var fired = false; var args = new MediaCapturedEventArgs(); camera.MediaCaptured += (_, e) => fired = e == args; camera.RaiseMediaCaptured(args); Assert.IsTrue(fired); }
public void TestOnMediaCaptured() { var camera = new CameraView(); var fired = false; var args = new MediaCapturedEventArgs(); camera.MediaCaptured += (_, e) => fired = e == args; camera.RaiseMediaCaptured(args); Assert.IsTrue(fired); }