Example #1
0
        public void AddThrownNullListFuncReturns()
        {
            var count = 0;

            ExceptionExtensions.AddThrown(null, () => count++);
            Assert.AreEqual(1, count);
        }
Example #2
0
 public void ExceptionsAreThrownIfListIsNull()
 {
     ExceptionExtensions.AddThrown(null, () => { throw new ArgumentOutOfRangeException(); });
 }