TestCentric
  • TestCentric Runner
  • TC-Lite Framework
  • Contributing
  • Blog
  • GitHub
TC-Lite Framework Features Assertions Classic Model
Assert.IsNotNull
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.IsNotNull tests that an object is not null.

Assert.IsNotNull(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.IsNotNull(anObject);
Assert.That(anObject, Is.Not.Null);
Generated By Statiq