Kerbal Space Program
1.12.4
|
See /KSPExternalModules/UnitTests for a sample UnitTest. Output is in the log. More...
Public Member Functions | |
virtual void | TestStartUp () |
virtual void | TestTearDown () |
UnitTest () | |
Public Attributes | |
List< TestState > | Results = new List<TestState>() |
Protected Member Functions | |
void | assertEquals (string testname, object value, object shouldbe) |
Make sure that value and object are equal. More... | |
See /KSPExternalModules/UnitTests for a sample UnitTest. Output is in the log.
Inherit this class for each class and create methods with the TestInfo attribute for each individual test. It's crappy, but since NUnit doesn't like Unity, this'll do for now.
|
inline |
|
inlineprotected |
Make sure that value and object are equal.
testname | Displayed name of the test |
value | Value to be tested |
shouldbe | Expected value |
< Vector3ds are a damn nightmare.
< As for everything else, just use the .Equals() method.
|
inlinevirtual |
|
inlinevirtual |