static Frame GetInitFrame() { Daisy daisy = new Daisy(); daisy.ParseFile("../../DaisyData/test_check.dai"); daisy.Initialize(); daisy.Start(); daisy.TickTime(); Frame frame = daisy.ProgramFrame(); return frame; }
static Daisy GetInitDaisy() { Daisy daisy = new Daisy(); daisy.ParseFile("../../DaisyData/test_check.dai"); if(DLL.daisy_daisy_done(daisy.daisy)) { DLL.daisy_daisy_delete(daisy.daisy); throw new ApplicationException("No daisy"); } daisy.Initialize(); return daisy; }
static Scope GetInitScope() { Daisy daisy = new Daisy(); daisy.ParseFile("../../DaisyData/test_check.dai"); daisy.Initialize(); daisy.Start(); daisy.TickTime(); Assert.Greater(daisy.ScopeSize(), 3); Scope scope = daisy.GetScope(0); return scope; }