// Start is called before the first frame update
    void Start()
    {
        controllerScript = GameObject.FindGameObjectWithTag("GameController").GetComponent <Controller>();

        if (listType == ListType.FAILED)
        {
            testsList = controllerScript.collection.getfailedTests();
        }
        else if (listType == ListType.PASSED)
        {
            testsList = controllerScript.collection.getpassedTests();
        }

        foreach (TestResult res in testsList.testDetails)
        {
            var obj = Instantiate(listItem);
            obj.transform.parent = gameObject.transform;

            var script = obj.GetComponent <ItemController>();
            script.testMethod  = res.testMethod;
            script.parameters  = res.parameters;
            script.testResults = res.testResults;
            script.description = res.description;
            script.summary     = res.summary;
            script.requirement = res.requirement;
        }
        Debug.Log(testsList.toString());
    }
 public string toString()
 {
     return("\n########################################Passed Tests########################################\n\n" + passedTests.toString() + "\n########################################Failed Tests########################################\n\n" + failedTests.toString());
 }