Brunet.Simulator.Regression.SystemTest.StoreTestResult C# (CSharp) Метод

StoreTestResult() защищенный Метод

This method stores the test results to the database.
protected StoreTestResult ( System.Test test, System.Result result ) : void
test System.Test
result System.Result
Результат void
    protected void StoreTestResult(Test test, Result result)
    {
      IDbConnection dbcon = new SqliteConnection(_db_con);
      dbcon.Open();
      IDbCommand dbcmd = dbcon.CreateCommand();

      string method = test.Method.Name;
      int testid = GetTestId(dbcmd, method);
      string sql = "INSERT INTO results (iter, testid, memory, time, throughput) VALUES (" +
        CurrentIter + ", " + testid + ", " + result.Memory + ", " + result.Time + ", " +
        result.Throughput + ")";

      dbcmd.CommandText = sql;
      dbcmd.ExecuteNonQuery();

      dbcmd.Dispose();
      dbcon.Close();
    }