public void ConstructorTest()
        {
            var err = new Recurly.Resources.ErrorMayHaveTransaction()
            {
                Message = "Something bad happened"
            };
            var ex = new MyApiError(err.Message)
            {
                Error = err
            };

            Assert.Equal(err.Message, ex.Message);
            Assert.Equal(err, ex.Error);
        }
Пример #2
0
        public void ConstructorTest()
        {
            var err = new Recurly.Resources.Error()
            {
                Message = "Something bad happened",
                Type    = "my_api_error"
            };
            var ex = new MyApiError(err.Message)
            {
                Error = err
            };

            Assert.Equal(err.Message, ex.Message);
            Assert.Equal(err, ex.Error);
        }