public void BatchItemsExceededExceptionConstructorTest4()
        {
            string errorMessage = "This is an error message.";
            BatchItemsExceededException target = new BatchItemsExceededException(errorMessage);

            Assert.AreEqual(target.Message, errorMessage);
        }
        public void BatchItemsExceededExceptionConstructorTest3()
        {
            string message = "Number of Items in Batch Request exceeded the permissible limit.";
            BatchItemsExceededException target = new BatchItemsExceededException();

            Assert.AreEqual(target.Message, message);
        }
        public void BatchItemsExceededExceptionConstructorTest5()
        {
            string errorMessage = "This is an error message.";

            System.Exception            innerException = new ArgumentNullException();
            BatchItemsExceededException target         = new BatchItemsExceededException(errorMessage, innerException);

            Assert.AreEqual(target.Message, errorMessage);
            Assert.ReferenceEquals(target.InnerException, innerException);
        }
        public void BatchItemsExceededExceptionConstructorTest()
        {
            string errorMessage = "Unauthorized";
            string errorCode    = "401";
            string source       = "Intuit.Ipp.Test";
            BatchItemsExceededException target = new BatchItemsExceededException(errorMessage, errorCode, source);

            Assert.AreEqual(target.Message, errorMessage);
            Assert.AreEqual(target.ErrorCode, errorCode);
            Assert.AreEqual(target.Source, source);
        }
        public void BatchItemsExceededExceptionConstructorTest1()
        {
            string errorMessage = "Unauthorized";
            string errorCode    = "401";
            string source       = "Intuit.Ipp.Test";

            System.Exception            innerException = new ArgumentNullException();
            BatchItemsExceededException target         = new BatchItemsExceededException(errorMessage, errorCode, source, innerException);

            Assert.AreEqual(target.Message, errorMessage);
            Assert.AreEqual(target.ErrorCode, errorCode);
            Assert.AreEqual(target.Source, source);
            Assert.ReferenceEquals(target.InnerException, innerException);
        }
        public void BatchItemsExceededExceptionConstructorTest2()
        {
            string errorMessage = "Unauthorized";
            string errorCode    = "401";
            string source       = "Intuit.Ipp.Test";

            System.Exception            innerException = new ArgumentNullException();
            BatchItemsExceededException target         = new BatchItemsExceededException(errorMessage, errorCode, source, innerException);
            BatchItemsExceededException newTarget      = null;

            using (Stream s = new MemoryStream())
            {
                BinaryFormatter formatter = new BinaryFormatter();
                formatter.Serialize(s, target);
                s.Position = 0; // Reset stream position
                newTarget  = (BatchItemsExceededException)formatter.Deserialize(s);
            }

            Assert.IsNotNull(newTarget);
            Assert.AreEqual(newTarget.Message, errorMessage);
            Assert.AreEqual(newTarget.ErrorCode, errorCode);
            Assert.AreEqual(newTarget.Source, source);
            Assert.ReferenceEquals(newTarget.InnerException, innerException);
        }