<p>So I'm interested in hearing different thoughts about what is the best way to go about unit testing XNA Game/Applications.  Astute googlers can probably figure out why I'm asking, but I didn't want to bias the topic :-)</p>

[{'answer_id': 32859, 'author': 'David McGraw', 'author_id': 568, 'author_profile': 'https://Stackoverflow.com/users/568', 'pm_score': 3, 'selected': True, 'text': '<p>I would that this question is geared more toward the approach of <strong>unit testing in game development</strong>.  I mean, XNA is a framework.  Plug in <a href="http://www.nunit.org/index.php" rel="nofollow noreferrer">NUnit</a>, and begin writing test cases while you develop. </p>\n\n<p><a href="https://stackoverflow.com/questions/14087/unit-testing-a-game#14136">Here</a> is a post on SO about unit testing a game.  It\'ll give you a little insight into how you need to think while progressing.</p>\n'}, {'answer_id': 33277, 'author': 'Cat Zimmermann', 'author_id': 3431, 'author_profile': 'https://Stackoverflow.com/users/3431', 'pm_score': 0, 'selected': False, 'text': "<p>VS2008 has a nicely integrated unit testing framework.  (I assume you're using using the XNA 3.0 CTP with your Zune.)</p>\n"}, {'answer_id': 205279, 'author': 'autonm', 'author_id': 28293, 'author_profile': 'https://Stackoverflow.com/users/28293', 'pm_score': 1, 'selected': False, 'text': '<p><a href="http://www.amazon.co.uk/Professional-XNA-Game-Programming-Windows/dp/0470126779/ref=sr_1_7?ie=UTF8&amp;s=books&amp;qid=1224085887&amp;sr=8-7" rel="nofollow noreferrer" title="XNA book">XNA BOOK</a></p>\n\n<p>This book shows how to code in XNA but the entire book is based on NUNIT testing. So while you are coding the projects in the book, he also shows you how to write the scripts for NUNIT to test the XNA code.</p>\n'}, {'answer_id': 324759, 'author': 'Milan Nankov', 'author_id': 41482, 'author_profile': 'https://Stackoverflow.com/users/41482', 'pm_score': 0, 'selected': False, 'text': '<p>The Microsoft testing framework is now available in Visual Studio 2008 Professional and up. If you have this software you already have all the software that you need to start testing your games. </p>\n\n<p>Here are two links that will get you started:\nUnit tests Overview - <a href="http://msdn.microsoft.com/en-us/library/ms182516.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms182516.aspx</a>\nCreating Unit Tests - <a href="http://msdn.microsoft.com/en-us/library/ms182523.aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/ms182523.aspx</a></p>\n\n<p>If you only have the Visual Studio 2008 Express than you need to use some other testing framework. <a href="http://www.nunit.org/" rel="nofollow noreferrer">NUnit</a> is probably the best one, some people even prefer it to MSTest.</p>\n\n<p>After you have all the software you need you can start adding tests for your code. \n<a href="http://blog.nankov.com/2008/11/25/unit-testing-games-part-1-vectors-and-transformations/" rel="nofollow noreferrer">Here</a> I\'ve posted some basic techniques about unit testing games that you might find useful. </p>\n\n<p>Have you done unit testing before?\nIf you haven\'t I could posbily give you some more hints and resources</p>\n'}, {'answer_id': 1175465, 'author': 'Ben Doerr', 'author_id': 84423, 'author_profile': 'https://Stackoverflow.com/users/84423', 'pm_score': 0, 'selected': False, 'text': '<p>You should give <a href="http://scurvytest.codeplex.com/" rel="nofollow noreferrer" title="Scurvy Test">Scurvy Test</a> a try. Have not used it my self but it looks promising.</p>\n'}, {'answer_id': 1690575, 'author': 'BluePlateSpecial', 'author_id': 203674, 'author_profile': 'https://Stackoverflow.com/users/203674', 'pm_score': -1, 'selected': False, 'text': '<p>I know this is an old post, but for other people wondering how to best go about testing their XNA Games, there is another option. The built-in testing in Visual Studio is definitely great, but is not well suited for games. Everytime a value is needed, you have to pause the game, and then either hover over the variable, go to quick watch, or add a watch. Then you can see the value of the variable at that frame. To see the value again during another frame, you must pause your game, again. This can be a big hassle. Therefore I have created a debugging terminal to run on top of your game. It allows you to see values of variables, invoke methods, and even watch a variable change in real-time all while you game is running! To find out more, visit: <a href="http://www.protohacks.net/xna_debug_terminal/" rel="nofollow noreferrer">http://www.protohacks.net/xna_debug_terminal/</a></p>\n\n<p>The project is completely free and open source. If you like it, feel free to tell others using XNA Game Studio about it. Hopes this helps out!</p>\n'}]
['https://Stackoverflow.com/questions/32835', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/3433/']