public void Test <TDemo>(TDemo demo, Action <TDemo> action, Type exceptionType)
 {
     CustomAssert.Throws(exceptionType, () => action(demo));
 }
Example #2
0
        public void Test(Action <DerivedClassDemo> action, Type exceptionType)
        {
            var demo = GetDemo();

            CustomAssert.Throws(exceptionType, () => action(demo));
        }
        public void Test(Action <ExpressionBodyDemo> action, Type exceptionType)
        {
            var demo = GetDemo();

            CustomAssert.Throws(exceptionType, () => action(demo));
        }
        public void Test(Action <SingleAccessorPropertyDemo> action, Type exceptionType)
        {
            var demo = GetDemo();

            CustomAssert.Throws(exceptionType, () => action(demo));
        }
Example #5
0
        public void Test(Action <IteratorBlockDemo> action, Type exceptionType)
        {
            var demo = GetDemo();

            CustomAssert.Throws(exceptionType, () => action(demo));
        }
Example #6
0
        public void Test(Action <ConversionDemo> action, Type exceptionType)
        {
            var demo = GetDemo();

            CustomAssert.Throws(exceptionType, () => action(demo));
        }