public MustAssertionReport(DateTimeOffset timestamp, MustAssertionType assertionType, MustAssertionRecord assertionRecord) { if (assertionRecord == null) { throw new ArgumentNullException(nameof(assertionRecord)); } Timestamp = timestamp; AssertionType = assertionType; AssertionRecord = assertionRecord; }
private static void _ReportFailure(MustAssertionType assertionType, MustAssertionRecord record, out Exception reportErrorException) { try { var _timestamp = DateTimeOffset.Now; _ReportSource.Push(new MustAssertionReport(_timestamp, assertionType, record)); reportErrorException = null; } catch (Exception _exception) { reportErrorException = _exception; } }