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

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