public void Test <TDemo>(TDemo demo, Action <TDemo> action, Type exceptionType)
 {
     CustomAssert.Throws(exceptionType, () => action(demo));
 }
Exemplo n.º 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));
        }
Exemplo n.º 5
0
        public void Test(Action <IteratorBlockDemo> action, Type exceptionType)
        {
            var demo = GetDemo();

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

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