示例#1
0
        public void CreateParachuteAbortException_SupplyNoParameters_MessageShouldBeDefault()
        {
            const string message = "Error in the application.";
            var          p       = new ParachuteAbortException();

            Assert.AreEqual(message, p.Message);
            Assert.IsTrue(p.GetType().BaseType == typeof(ParachuteException));
        }
示例#2
0
        public void CreateParachuteAbortException_SupplyMessageParameter_MessageShouldBeEqual()
        {
            const string message = "Hello World";

            var p = new ParachuteAbortException(message);

            Assert.AreEqual(message, p.Message);
            Assert.IsTrue(p.GetType().BaseType == typeof(ParachuteException));
        }
示例#3
0
        public void CreateParachuteAbortException_SupplyMessageAndInnerExceptionParameter_MessageAndInnerExceptionShouldBeEqual()
        {
            var          innerEx = new ArgumentException("Inner Hello World");
            const string message = "Hello World";

            var p = new ParachuteAbortException(message, innerEx);

            Assert.AreEqual(message, p.Message);
            Assert.AreEqual(innerEx, p.InnerException);
            Assert.IsTrue(p.GetType().BaseType == typeof(ParachuteException));
        }