Kerbal Space Program
1.12.4
|
N3X15's shoddy Unit Testing framework, as standard frameworks don't work within Unity. More...
Static Public Member Functions | |
static void | AddTest (UnitTest test) |
Add a test to the system. More... | |
static void | ClearUnitTests () |
static TestResults | RunTests () |
Run the tests More... | |
Properties | |
static bool | HaveUnitTests [get] |
Do we have any unit tests loaded? (Used to show Unit Testing button on main screen) More... | |
N3X15's shoddy Unit Testing framework, as standard frameworks don't work within Unity.
Create a class inheriting UnitTest for each class of tests, then an arbitrary method for each test with the TestInfo attribute. Shove your tests into a plugin DLL and they'll be executed after plugin load. If no tests are present, the testing framework will not output anything, presenting a clean log.
Tested by N3X15 3/22/2012
|
inlinestatic |
Add a test to the system.
test |
|
inlinestatic |
|
inlinestatic |
Run the tests
|
staticget |
Do we have any unit tests loaded? (Used to show Unit Testing button on main screen)