protected void HabyBase(TestVoid test) { using (HttpSimulator simulator = new HttpSimulator()) { simulator.SimulateRequest(); JIC.Base.TestStat t = JIC.Repositories.DBInteractions.Utitlities.Transe(JIC.Crime.Repositories.DBInteractions.DBFactory.Get(), () => { test.Invoke(); return(Base.TestStat.Pass); }); switch (t) { case Base.TestStat.Pass: Assert.AreEqual(1, 1); break; case Base.TestStat.Fail: Assert.Fail(); break; default: break; } } }
static void Run(TestVoid method) { method.Invoke(); }