示例#1
0
        public void Test_Constructor()
        {
            InvalidMarkException exception = new InvalidMarkException();

            assertEquals($"Exception of type '{typeof(InvalidMarkException).FullName}' was thrown.", exception.Message);
            //assertNull(exception.getLocalizedMessage());
            assertNull(exception.InnerException);
        }
示例#2
0
        public void TestSerializationSelf()
        {
            //SerializationTest.verifySelf(new InvalidMarkException());
            var ex    = new InvalidMarkException("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);
        }