TestCentric
  • TestCentric Runner
  • TC-Lite Framework
  • Contributing
  • Blog
  • GitHub
TC-Lite Framework Features Assertions Classic Model
Assert.IsTrue
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.IsTrue tests that a boolean condition is true.

Assert.IsTrue(bool condition, string message=null, params object[] args);

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

Assert.IsTrue(someCondition);
Assert.That(someCondition, Is.True);
Generated By Statiq