public void CreateParachuteException_SupplyNoParameters_MessageShouldBeDefault() { const string message = "Error in the application."; var p = new ParachuteException(); Assert.AreEqual(message, p.Message); Assert.IsTrue(p.GetType().BaseType == typeof(ApplicationException)); }
public void CreateParachuteException_SupplyMessageParameter_MessageShouldBeEqual() { const string message = "Hello World"; var p = new ParachuteException(message); Assert.AreEqual(message, p.Message); Assert.IsTrue(p.GetType().BaseType == typeof(ApplicationException)); }
public void CreateParachuteException_SupplyMessageAndInnerExceptionParameter_MessageAndInnerExceptionShouldBeEqual() { var innerEx = new ArgumentException("Inner Hello World"); const string message = "Hello World"; var p = new ParachuteException(message, innerEx); Assert.AreEqual(message, p.Message); Assert.AreEqual(innerEx, p.InnerException); Assert.IsTrue(p.GetType().BaseType == typeof(ApplicationException)); }