Determine if two fixtures of the same class are interchangeable
TF = isCompatible(f1, f2)
A class that derives from
Fixture must implement the
isCompatible method if its constructor accepts any input arguments or is otherwise configurable.
Fixture subclasses use this method to define a notion of interchangeability of fixtures. Two
matlab.unittest.fixtures instances of the same class are considered to be interchangeable if the
isCompatible method returns
true. The test framework uses the result of
isCompatible to determine whether two fixture instances of the same class correspond to the same shared test fixture state. The test framework always calls the
isCompatible method with two fixture instances of the same class, so the fixture author does not need to implement code to handle the case where the second fixture is a different
To learn about attributes of methods, see Method Attributes.