Example #1
0
        public void StripSpecifiedWrapperException()
        {
            _client.AddWrapperExceptions(new Type[] { typeof(WrapperException) });

            WrapperException wrapper = new WrapperException(_exception);

            RaygunMessage message = _client.ExposeBuildMessage(wrapper);

            Assert.AreEqual("System.NullReferenceException", message.Details.Error.ClassName);
        }
Example #2
0
        public void StripSpecifiedWrapperException()
        {
            _client.AddWrapperExceptions(new Type[] { typeof(WrapperException) });

              WrapperException wrapper = new WrapperException(_exception);

              RaygunMessage message = _client.CreateMessage(wrapper);
              Assert.AreEqual("System.NullReferenceException", message.Details.Error.ClassName);
        }
        public void StripSpecifiedWrapperException()
        {
            _client.AddWrapperExceptions(typeof(WrapperException));

              WrapperException wrapper = new WrapperException(_exception);

              List<Exception> exceptions = _client.ExposeStripWrapperExceptions(wrapper).ToList();
              Assert.AreEqual(1, exceptions.Count);
              Assert.Contains(_exception, exceptions);
        }
        public void StripMultipleWrapperExceptions()
        {
            _client.AddWrapperExceptions(new Type[] { typeof(WrapperException) });

              WrapperException wrapper = new WrapperException(_exception);
              TargetInvocationException wrapper2 = new TargetInvocationException(wrapper);

              RaygunMessage message = _client.ExposeBuildMessage(wrapper2);
              Assert.AreEqual("System.NullReferenceException", message.Details.Error.ClassName);
        }