예제 #1
0
        public MustAssertionReport(DateTimeOffset timestamp, MustAssertionType assertionType, MustAssertionRecord assertionRecord)
        {
            if (assertionRecord == null)
            {
                throw new ArgumentNullException(nameof(assertionRecord));
            }

            Timestamp       = timestamp;
            AssertionType   = assertionType;
            AssertionRecord = assertionRecord;
        }
예제 #2
0
 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;
     }
 }