<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://forums.xna.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>General</title><link>http://forums.xna.com/forums/32.aspx</link><description>Don't know where to post your question? Post it here!</description><dc:language>en</dc:language><generator>CommunityServer 2007.1 (Build: 0.0)</generator><item><title>Re: Nunit debugger?</title><link>http://forums.xna.com/forums/thread/8808.aspx</link><pubDate>Wed, 09 May 2007 18:49:57 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:8808</guid><dc:creator>jeff1956</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/8808.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=8808</wfw:commentRss><description>FuriousDave, Thanks for helping me.</description></item><item><title>Re: Nunit debugger?</title><link>http://forums.xna.com/forums/thread/8785.aspx</link><pubDate>Wed, 09 May 2007 17:34:20 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:8785</guid><dc:creator>FuriousDave</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/8785.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=8785</wfw:commentRss><description>OK, I downloaded the project this evening. &lt;br&gt;&lt;br&gt;The authors are using their own testing framework, which is explained in the RacingGame.UnitTests class description. There is a comment made to the effect that NUnit and the TestDriven.NET add-in weren't working with their version of GSE, so that may explain why they chose to roll their own solution.&lt;br&gt;&lt;br&gt;To get their unit tests to run:&lt;br&gt;&lt;ol&gt;&lt;li&gt;Open up UnitTests.cs in the editor.&lt;br&gt;&lt;/li&gt;&lt;li&gt;In the #region RacingGame Unit Tests area comment out the existing Program.StartGame() line and uncomment the line that relates to the test you want to run (I tried PostScreenGlow.TestPostScreenGlow()). You can uncomment multiple lines at once, which will execute the tests consecutively.&lt;br&gt;&lt;/li&gt;&lt;li&gt;Run the project. Do not use TestDriven.NET to do this, just press F5 or click the green arrow in the main toolbar.&lt;br&gt;&lt;/li&gt;&lt;/ol&gt;&lt;br&gt;&lt;br&gt;</description></item><item><title>Re: Nunit debugger?</title><link>http://forums.xna.com/forums/thread/8700.aspx</link><pubDate>Wed, 09 May 2007 07:33:28 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:8700</guid><dc:creator>FuriousDave</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/8700.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=8700</wfw:commentRss><description>If the sample builds and the simple test case builds, then it's likely that either your reference to the NUnit framework DLL isn't correct or that the unit tests aren't set up correctly.&lt;br&gt;&lt;br&gt;I'll download the sample tonight and give it a whirl. Sounds interesting :)&lt;br&gt;&lt;br&gt;Until then, have you tried putting a breakpoint in the code that's failing, then using the debugger to see where the issue lies? If the unit test itself is failing, then you'll have to use the TestDriven.NET add-in feature of right-clicking on the code file, then selecting Test With -&amp;gt; Debugger.&lt;br&gt;&lt;br&gt;It may be worth starting off with a much simpler example though.&lt;br&gt;</description></item><item><title>Re: Nunit debugger?</title><link>http://forums.xna.com/forums/thread/8681.aspx</link><pubDate>Wed, 09 May 2007 04:03:58 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:8681</guid><dc:creator>Craig Martin</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/8681.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=8681</wfw:commentRss><description>&lt;P&gt;if the sample case works, try building it up, bit by bit, closer to your current implementation, so you can isolate where it stops working?&lt;/P&gt;
&lt;P&gt;or attach a debugger.&lt;/P&gt;</description></item><item><title>Re: Nunit debugger?</title><link>http://forums.xna.com/forums/thread/8641.aspx</link><pubDate>Tue, 08 May 2007 19:22:06 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:8641</guid><dc:creator>jeff1956</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/8641.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=8641</wfw:commentRss><description>The sample case work. Please download "Racing Game Simple" code from this link: &lt;A href="http://www.wrox.com/WileyCDA/WroxTitle/productCd-0470126779,descCd-download_code.html"&gt;http://www.wrox.com/WileyCDA/WroxTitle/productCd-0470126779,descCd-download_code.html&lt;/A&gt;</description></item><item><title>Re: Nunit debugger?</title><link>http://forums.xna.com/forums/thread/8640.aspx</link><pubDate>Tue, 08 May 2007 19:13:08 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:8640</guid><dc:creator>FuriousDave</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/8640.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=8640</wfw:commentRss><description>Does the simple case I posted above work though?&lt;br&gt;&lt;br&gt;Without seeing your code and test classes it's difficult to say what the problem is. Do any of your unit tests run?&lt;br&gt;</description></item><item><title>Re: Nunit debugger?</title><link>http://forums.xna.com/forums/thread/8620.aspx</link><pubDate>Tue, 08 May 2007 17:33:23 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:8620</guid><dc:creator>jeff1956</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/8620.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=8620</wfw:commentRss><description>&lt;P&gt;I installed TestDriven.NET and tried to build a game using "Run Tests" but I got this error message:&lt;/P&gt;&lt;FONT size=1&gt;
&lt;P&gt;Couldn't find member with name 'TestCarPhysicsOnPlane' and XML name 'M:RacingGame.GameLogic.CarPhysics.TestCarPhysicsOnPlane'&lt;/P&gt;&lt;/FONT&gt;</description></item><item><title>Re: Nunit debugger?</title><link>http://forums.xna.com/forums/thread/8562.aspx</link><pubDate>Tue, 08 May 2007 09:25:51 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:8562</guid><dc:creator>FuriousDave</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/8562.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=8562</wfw:commentRss><description>Try creating a fresh project and then add a new class to it containing this code:&lt;br&gt;&lt;br&gt;&lt;font face="Courier New"&gt;using NUnit.Framework;&lt;br&gt;&lt;br&gt;namespace NUnitTest&lt;br&gt;{&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; [TestFixture]&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; public class TestClass&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [Test]&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void MyTest()&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Assert.AreEqual(4, 4);&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br&gt;}&lt;/font&gt;&lt;br&gt;&lt;br&gt;Right-click on the project name in the Solution Explorer, then select 'Add Reference...' Next, select 'nunit.framework' from the list of assemblies. (If you haven't installed NUnit using the installer, then you'll have to go to the 'Browse' tab and navigate to where you unzipped the NUnit package to, then select the framework DLL directly from the bin folder.)&lt;br&gt;&lt;br&gt;After you've done this, you should notice that &lt;font face="Courier New"&gt;[TestFixture]&lt;/font&gt; and &lt;font face="Courier New"&gt;[Test]&lt;/font&gt; in the above code have been coloured in and the using statement no longer has its red squiggles.&lt;br&gt;&lt;br&gt;Now you can build the project. Then open up NUnit (using either the Start Menu entry if you used the installer, or going to nunit.exe in the bin directory if you manually unzipped), and open up your solution file, your project file or your freshly-built EXE from within the GUI program. Press the green arrow to run the single test. Barring any strange quantum effects, it should pass.&lt;br&gt;&lt;br&gt;The unfortunate thing about running NUnit with Visual Studio Express is that you can't attach to the NUnit GUI to debug into your unit tests. As noted above, you'll need to install TestDriven.NET or another add-in to get this functionality. TestDriven.NET is available for free - but for personal use only - here: http://www.testdriven.net/download_release.aspx?LicenceType=Personal&lt;br&gt;&lt;br&gt;Hopefully Microsoft will integrate some of their unit testing tools (from VS Team System) in a future release, as it's excellent programming practice. A profiler would be damn useful too.&lt;br&gt;</description></item><item><title>Re: Nunit debugger?</title><link>http://forums.xna.com/forums/thread/8547.aspx</link><pubDate>Tue, 08 May 2007 06:53:15 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:8547</guid><dc:creator>Cygon4</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/8547.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=8547</wfw:commentRss><description>Hrmp, I justed started writing a tutorial on using NUnit for XNA projects, but it's far from finished :)&lt;br&gt;&lt;br&gt;Did you install NUnit using the provided installer (eg. placed the NUnit assemblies in the GAC)?&lt;br&gt;When you run one of the NUnit TestRunners (either GUI or Console), does it start up properly?&lt;br&gt;&lt;br&gt;Btw, I can wholeheartedly recommend &lt;a href="http://testdriven.net"&gt;TestDriven.NET&lt;/a&gt;, it's an addin for Visual Studio (also works in the Express Editions) that will allow you to run your tests directly in VC# Express, optionally even running the test in der Debugger to see what's going wrong if a test fails!&lt;font size="-1"&gt;&lt;span class="a"&gt;&lt;/span&gt;&lt;/font&gt;&lt;br&gt;&lt;br&gt;-Markus-&lt;br&gt;&lt;br&gt;</description></item><item><title>Nunit debugger?</title><link>http://forums.xna.com/forums/thread/8503.aspx</link><pubDate>Mon, 07 May 2007 20:48:26 GMT</pubDate><guid isPermaLink="false">4aa5dbf6-357b-46b2-b5b2-1b660a6dc370:8503</guid><dc:creator>jeff1956</dc:creator><slash:comments>0</slash:comments><comments>http://forums.xna.com/forums/thread/8503.aspx</comments><wfw:commentRss>http://forums.xna.com/forums/commentrss.aspx?SectionID=32&amp;PostID=8503</wfw:commentRss><description>How do I use Nunit Debugger to test programs created by XNA? I tried to add the reference to Nunit.Framework to the project and add "Using Nunit.Framework" to source code but I got an error message saying that Nunit.Framework can't be found after trying to build a game.</description></item></channel></rss>