Game Development Reference
In-Depth Information
Figure 4.21
Naming a class in Visual Studio.
To use NUnit, it needs to be added to the project as a reference. In the Solution
Explorer, right-click on the References node and select Add Reference, as shown
in Figure 4.22.
This will bring up a very large list of references. The reference that needs to be
added is NUnit.Framework. Once the reference has been added, it can be used by
adding a using statement. In TestPlayer at the top of the file, there are a number
of statements starting with ''using . . . ''. To use NUnit, an extra line must be
added using NUnit.Framework; . Then a simple test can be added.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;
namespace PlayerTest
{
[TestFixture]
public class TestPlayer
 
Search WWH ::




Custom Search