public void TestExcelExample1() { string pathExcel = Path.Combine(Environment.CurrentDirectory, "Data\\Example1.xlsx"); string pathTemp = TestLibrary.getTempFilename(".dbf"); Xml_Form form = generateForm(); Excel excel = new Excel(); DBF dbf = new DBF(pathTemp, form.DBF); try { excel.OpenWorksheet(pathExcel); Work work = new Work(excel.worksheet, form, 120); Logger.LogLevel old_level = Logger.Level; Logger.SetLevel(Logger.LogLevel.TRACER); work.IterateRecords(dbf.appendRecord); Logger.SetLevel(old_level); } finally { dbf.close(); excel.close(); } }
private static MethodsAggregator CreateLibrary() { var methodManager = new MethodsManager(); var propertiesManager = new PropertiesManager(); var lib = new TestLibrary(); propertiesManager.RegisterProperties(lib); methodManager.RegisterLibraries(lib); return(new MethodsAggregator(methodManager, propertiesManager)); }
protected override void OnCreate(Bundle savedInstanceState) { base.OnCreate(savedInstanceState); SetContentView(Resource.Layout.Main); CommandListener commandListener = new CommandListener(this); _testLibrary = new TestLibrary(BaseUrl, ControlUrl, commandListener); // _testLibrary.DoNotExitAfterEnd(); // _testLibrary.AddTestDirectory("current/gdpr"); // _testLibrary.AddTest("current/gdpr/Test_GdprForgetMe_after_install_kill_before_install"); commandListener.SetTestLibrary(_testLibrary); _testLibrary.StartTestSession(Adjust.SdkVersion); }
public void Two_plus_two_should_be_four() { var subject = new TestLibrary(); Assert.That(subject.Add(2, 2), Is.EqualTo(4)); }
public void SetTestLibrary(TestLibrary testLibrary) { _testLibrary = testLibrary; }
public TQView(TestLibrary.QTextChoice q) : this(new TextAnswerQuestionViewModel(q)) { }
public void SetTestLibrary(TestLibrary testLibrary) { _adjustCommandExecutor?.SetTestLibrary(testLibrary); }
public void Cleanup() { TestLibrary.safeDelete(dbfFileName); }