addTest method

void addTest(
  1. Test t
)

Receives a test instance t as an argument and adds it to the testList. If the list does not exist, it creates one and adds the new test.

Implementation

void addTest(Test t){
  if(testList != null) {
    testList!.add(t);
  } else{
    testList = [];
    testList!.add(t);
  }
}