Exemplo n.º 1
0
        public static void TestProperties <T>(Func <Form, T> create, params Expression <Func <T, object> >[] properties)
        {
            PropertyTestInfo test = null;

            Shown(form =>
            {
                var ctl = create(form);
                test    = PropertyTest <T>(() => ctl, properties);
                test.Run();
                return(ctl as Control);
            }, ctl => test.Run());
        }
Exemplo n.º 2
0
 public void DefaultPropertyValuesShouldBeCorrect(PropertyTestInfo test)
 {
     Invoke(test.Run);
 }