public void ThrowOnError_Error()
        {
            var results = new VideoAnnotationResults {
                Error = new Rpc.Status {
                    Message = "Bang"
                }
            };
            var exception = Assert.Throws <AnnotateVideoException>(() => results.ThrowOnError());

            Assert.Equal("Bang", exception.Message);
            Assert.Same(results, exception.Response);
        }
        public void ThrowOnError_NoError()
        {
            var results = new VideoAnnotationResults
            {
                ShotLabelAnnotations =
                {
                    new LabelAnnotation
                    {
                        Entity = new Entity{
                            Description = "X"
                        }
                    }
                }
            };

            Assert.Same(results, results.ThrowOnError());
        }