Example #1
0
        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;
                }
            }
        }
Example #2
0
 static void Run(TestVoid method)
 {
     method.Invoke();
 }