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); }
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); }