public void CanCreateLogMessageWithStackTrace()
        {
            var expectedErr =
                @"Exception Type: Exception
Message: my ex msg
Source: PivotalServices.CloudFoundryShims.Tests
Stack Trace:    at PivotalServices.CloudFoundryShims.Tests.ExceptionLoggerTests.CreateException".Replace("\r\n", "\n");
            var err = ExceptionLogger.BuildErrorString(CreateException());

            Assert.StartsWith(expectedErr, err);
        }
        public void CanCreateLogMessageWithInnerException()
        {
            var expectedOuterErr =
                @"Exception Type: Exception
Message: outer
Source: PivotalServices.CloudFoundryShims.Tests
Stack Trace:    at PivotalServices.CloudFoundryShims.Tests.ExceptionLoggerTests.CreateException".Replace("\r\n", "\n");
            var expectedInnerErr =
                @"Exception Type: Exception
Message: inner
Source: PivotalServices.CloudFoundryShims.Tests
Stack Trace:    at PivotalServices.CloudFoundryShims.Tests.ExceptionLoggerTests.CreateException".Replace("\r\n", "\n");
            var err = ExceptionLogger.BuildErrorString(CreateException("outer", CreateException("inner")));

            Assert.StartsWith(expectedOuterErr, err);
            Assert.Contains(expectedInnerErr, err);
        }