Game Development Reference
In-Depth Information
The following code snippet shows how to use this comparison method:
[TestFixture]
public class SimpleClassTests
{
[Test]
public void TestSomething()
{
bool testData = true;
Assert.IsTrue(testData, “testData is false!”);
}
}
Assert.IsFalse()
This condition method tests that the condition parameter evaluates to false .
The following are all the method signatures available for this method:
Assert.IsFalse(bool condition);
Assert.IsFalse(bool condition, string message);
Assert.IsFalse(bool condition, string message, object[] parameters);
The following code snippet shows how to use this comparison method:
[TestFixture]
public class SimpleClassTests
{
[Test]
public void TestSomething()
{
bool testData = false;
Assert.IsFalse(testData, “testData is true!”);
}
}
Assert.IsNull()
This condition method tests that the condition parameter evaluates to null .
The following are all the method signatures available for this method:
Assert.IsNull(object anObject);
Assert.IsNull(object anObject, string message);
Assert.IsNull(object anObject, string message, object[] parameters);
Search Nedrilad ::




Custom Search