예제 #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());
        }
예제 #2
0
 public void DefaultPropertyValuesShouldBeCorrect(PropertyTestInfo test)
 {
     Invoke(test.Run);
 }