TestCentric
  • TestCentric Runner
  • TC-Lite Framework
  • Contributing
  • Blog
  • GitHub
TC-Lite Framework Features Assertions Classic Model
Assert.IsNull
TC-Lite Framework
Overview
Concepts
Microtests
Test Cases
Test Fixtures
Getting Started
Creating a Test Project
Writing Tests
Running Your Tests
Command-Line Options
Features
Assertions
Classic Model
Constraint Model
Attributes
CategoryAttribute
CombinatorialAttribute
DefaultToleranceAttribute
DescriptionAttribute
IgnoreAttribute
PropertyAttribute
RandomAttribute
RangeAttribute
TestCaseAttribute
TestCaseDataAttribute
TestCaseFactoryAttribute
TestFixtureAttribute
TestFixtureSourceAttribute
ValuesAttribute
ValueSourceAttribute
Constraints
Parallel Test Execution
Theories
TC-Lite API
License

Assert.IsNull tests that an object is null.

Assert.IsNull(object obj, string message=null, params object[] args);

You may use Assert.That to achieve the same result. The two statements below are equivalent:

Assert.IsNull(anObject);
Assert.That(anObject, Is.Null);
Generated By Statiq