Exemplo n.º 1
0
        public void ThrowImgurExceptionIfResponseIsInvalid_WithInvalidResponse_ThrowsImgurException()
        {
            var responseConverter = new ResponseConverter();

            var exception = Record.Exception(() =>
            {
                responseConverter.ThrowImgurExceptionIfResponseIsInvalid("x");
            });

            Assert.NotNull(exception);
            Assert.IsType <ImgurException>(exception);
            Assert.Contains("invalid", exception.Message);
        }