Beispiel #1
0
        public void HttpRequestException_RoundTrip_ReturnsSubstitue()
        {
            var ex   = new HttpRequestException("message").ThrowAndCatch();
            var json = ExceptionSerializer.Serialize(ex);

            var actual = ExceptionSerializer.Deserialize(json);

            var envException = actual.ShouldBeOfType <EnvironmentException>();

            envException.RawMessage().ShouldEndWith(ex.RawMessage());
            envException.UnencryptedTags["originalStackTrace"].ShouldBe(ex.StackTrace);
        }