/// <summary> /// Adds the inputted text to our Output and uses the flag result to colour it either green (pass) or red (fail) /// </summary> /// <param name="text"></param> private void LogInfo(Tuple <bool, string> result) { // Add an extra bit of a text clarifying the output of the test string logOutput = result.Item2 + (result.Item1 ? " passed" : " failed"); Label resultText = OutputLog.AddChild(new Label(logOutput, Vector2.Zero), true, true); resultText.Colour = result.Item1 ? Color.Green : Color.Red; using (StreamWriter writer = File.AppendText(LogFilePath)) { writer.WriteLine(resultText.Text); } }