Game Development Reference
In-Depth Information
Figure 4.22
Adding a reference.
{
[Test]
public void BasicTest()
{
Assert.That(true);
}
}
}
The first things to notice in this code snippet are the attributes. In C#, an attri-
bute is a bit of metadata—some descriptive information about a class, function,
or variable that can be accessed programmatically. Attributes are surrounded by
square brackets. Here the class has an attribute of type TestFixture . In NUnit
terminology, a test fixture is a group of related unit tests. The TestFixture
 
Search WWH ::




Custom Search