6 private static bool m_IsRunning;
7 private static bool m_IsDone;
23 ErrorEx(
"TestAutotest already running!");
30 set<string> enabledSuites =
new set<string>();
42 for (
int i = 0; i < numSuites; ++i)
45 bool isEnabled = enabledSuites.Find(suite.GetName()) != -1 && suite.IsEnabled();
46 suite.SetEnabled(isEnabled);
55 static void Update(
float deltaTime)
80class CustomResult : TestResultBase
83 private string m_FailureText;
84 private string m_FailureKind;
95 return string.Format(
"<failure type=\"%1\">%2</failure>", m_FailureKind, m_FailureText);
98 void CustomResult(
bool success,
string text =
"User provided error!",
string kind =
"Failure")
101 m_FailureText = text;
102 m_FailureKind = kind;
class AutotestRunner m_Success
Collection and main interface of the Testing framework.
void Start()
Plays all elements this effects consists of.
string FailureText()
Text used for xml report output.
TestBase Managed Failure()
Return true of the result means failure.