コード例 #1
0
        public virtual void CanSerializeError()
        {
            var client = new ExceptionlessClient(new ExceptionlessConfiguration(_resolver));
            var exception = new ArgumentException("The argument cannot be null or empty", "value");

            var evt = CreateSimpleEvent();
            evt.Data[Event.KnownDataKeys.Error] = exception.ToErrorModel(client);
            AssertEventSerialize(evt);
        }