MATLAB Programming Fundamentals - MathWorks

(やまだぃちぅ) #1
Type of
Qualification

TestCase Method matlab.mock.constraints Class
Use
matlab.unittest.Test
Case Method

With
matlab.mock.const
raints Class
Property was
accessed

verifyAccessed
or
verifyNotAccess
ed

verifyThat WasAccessed or
Occurred

assumeAccessed
or
assumeNotAccess
ed

assumeThat

assertAccessed
or
assertNotAccess
ed

assertThat

fatalAssertAcce
ssed or
fatalAssertNotA
ccessed

fatalAssertThat

Property was
accessed a
certain
number of
times

Not applicable verifyThat,
assumeThat,
assertThat, or
fatalAssertThat

WasAccessed

Property was
set

verifySet or
verifyNotSet

verifyThat WasSet or Occurred

assumeSet or
assumeNotSet

assumeThat

assertSet or
assertNotSet

assertThat

fatalAssertSet
or
fatalAssertNotS
et

fatalAssertThat

33 Unit Testing

Free download pdf