Main Content

matlab.unittest.selectors.NotSelector class

Package: matlab.unittest.selectors

Boolean complement of selector


The testing framework constructs a NotSelector when you denote the complement of a selector with the logical NOT operator (~). The framework constructs instances of the class, so there is no need to construct this class directly.


expand all

This property is read-only.

Selector being complemented, specified as an instance of a class in the matlab.unittest.selectors package. If you have MATLAB® Test™ installed, you also can specify Selector as a matlabtest.selectors.DependsOn object.

Version History

Introduced in R2018a