Example #1
0
        public void Test(Action <OperatorDemo, OperatorDemo> action, Type exceptionType)
        {
            var consumer1 = GetDemo();
            var consumer2 = GetDemo();

            CustomAssert.Throws(exceptionType, () => action(consumer1, consumer2));
        }
 public void Test <TDemo>(TDemo demo, Action <TDemo> action, Type exceptionType)
 {
     CustomAssert.Throws(exceptionType, () => action(demo));
 }
Example #3
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 #6
0
        public void Test(Action <IteratorBlockDemo> action, Type exceptionType)
        {
            var demo = GetDemo();

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

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