public void ShouldSetInnerException() { var expected = new Exception("Expected."); var actual = new ColoreException(null, new Exception("Expected.")).InnerException; Assert.AreEqual(expected.GetType(), actual.GetType()); Assert.AreEqual(expected.Message, actual.Message); }
public void ShouldSetInnerException() { var expected = new Exception("Expected."); var actual = new ColoreException(null, new Exception("Expected.")).InnerException; Assert.AreEqual(expected.GetType(), actual.GetType()); Assert.AreEqual(expected.Message, actual.Message); }