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