Unit testing \ testing

Topics: Developer Forum, Project Management Forum, User Forum
Sep 14, 2008 at 4:47 PM
Could someone point me in a good direction for how they unit test their Farseer Physics game.  Any type of test would be helpful I just want to make sure I have most of the bugs out of my game before I release it.
Sep 15, 2008 at 12:03 AM
Unit testing would imply that you test each method for functionality (working/not working) and performance (by calling it multiple times and time the results). Unit testing might be useful if you have an AI that you can expect a certain result from, it's also useful to test the performance of methods.

If your focus is on functionality, then you should create a unit test for each methods that does expected calculations (not based on random number generator or external data). Download something like mbunit and TestDriven.net (or resharper) and create some basic tests.