Example #1
0
        public void Test_Constructor()
        {
            BufferOverflowException exception = new BufferOverflowException();

            assertEquals($"Exception of type '{typeof(BufferOverflowException).FullName}' was thrown.", exception.Message);
            //assertNull(exception.getLocalizedMessage());
            assertNull(exception.InnerException);
        }
Example #2
0
        public void TestSerializationSelf()
        {
            //SerializationTest.verifySelf(new BufferOverflowException());
            var ex    = new BufferOverflowException("testing", new IOException("testing12"));
            var clone = Clone(ex);

            assertNotSame(ex, clone);
            assertNotSame(ex.InnerException, clone.InnerException);
            assertEquals("testing", clone.Message);
            assertEquals("testing12", clone.InnerException.Message);
        }