public void FailWhenInnerExceptionIsNotCorrectType()
        {
            AssertAll.ThrowsExceptionWithInnerExceptionAsync <ArgumentException>(async() =>
                                                                                 await ThrowExceptionWithInnerInvalidOperationException(true));

            Assert.ThrowsException <AssertAllFailedException>(() => AssertAll.Execute());
        }
        public void PassWhenInnerExceptionIsOfCorrectType()
        {
            AssertAll.ThrowsExceptionWithInnerExceptionAsync <InvalidOperationException>(async() =>
                                                                                         await ThrowExceptionWithInnerInvalidOperationException(true));

            AssertAll.Execute();
        }
        public void FailWhenNoExceptionIsThrown()
        {
            var list = new List <object>()
            {
                new object()
            };

            AssertAll.ThrowsExceptionWithInnerExceptionAsync <InvalidOperationException>(async() =>
                                                                                         ThrowExceptionWithInnerInvalidOperationException(false));

            Assert.ThrowsException <AssertAllFailedException>(() => AssertAll.Execute());
        }