|  | @@ -376,18 +376,31 @@ public: | 
														
													
														
															
																|  |  | */ |  |  | */ | 
														
													
														
															
																|  |  | struct TestResult |  |  | struct TestResult | 
														
													
														
															
																|  |  | { |  |  | { | 
														
													
														
															
																|  |  |  |  |  | TestResult() = default; | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  |  |  |  | explicit TestResult (const String& name, const String& subCategory) | 
														
													
														
															
																|  |  |  |  |  | : unitTestName (name), | 
														
													
														
															
																|  |  |  |  |  | subcategoryName (subCategory) | 
														
													
														
															
																|  |  |  |  |  | { | 
														
													
														
															
																|  |  |  |  |  | } | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  | /** The main name of this test (i.e. the name of the UnitTest object being run). */ |  |  | /** The main name of this test (i.e. the name of the UnitTest object being run). */ | 
														
													
														
															
																|  |  | String unitTestName; |  |  | String unitTestName; | 
														
													
														
															
																|  |  | /** The name of the current subcategory (i.e. the name that was set when UnitTest::beginTest() was called). */ |  |  | /** The name of the current subcategory (i.e. the name that was set when UnitTest::beginTest() was called). */ | 
														
													
														
															
																|  |  | String subcategoryName; |  |  | String subcategoryName; | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  | /** The number of UnitTest::expect() calls that succeeded. */ |  |  | /** The number of UnitTest::expect() calls that succeeded. */ | 
														
													
														
															
																|  |  | int passes; |  |  |  | 
														
													
														
															
																|  |  |  |  |  | int passes = 0; | 
														
													
														
															
																|  |  | /** The number of UnitTest::expect() calls that failed. */ |  |  | /** The number of UnitTest::expect() calls that failed. */ | 
														
													
														
															
																|  |  | int failures; |  |  |  | 
														
													
														
															
																|  |  |  |  |  | int failures = 0; | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  | /** A list of messages describing the failed tests. */ |  |  | /** A list of messages describing the failed tests. */ | 
														
													
														
															
																|  |  | StringArray messages; |  |  | StringArray messages; | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  |  |  |  | /** The time at which this test was started. */ | 
														
													
														
															
																|  |  |  |  |  | Time startTime = Time::getCurrentTime(); | 
														
													
														
															
																|  |  |  |  |  | /** The time at which this test ended. */ | 
														
													
														
															
																|  |  |  |  |  | Time endTime; | 
														
													
														
															
																|  |  | }; |  |  | }; | 
														
													
														
															
																|  |  |  |  |  |  | 
														
													
														
															
																|  |  | /** Returns the number of TestResult objects that have been performed. |  |  | /** Returns the number of TestResult objects that have been performed. | 
														
													
												
													
														
															
																|  | 
 |