CPSC270A
Software Eng & Project Design

Activity 16

Test Count State

Create a unit test for the count state class.

Details

The app should build off of the app from a previous activity that used state to count button presses by adding the following:

  1. a file that runs tests of the CountModel class.

  2. a group of tests.

  3. a test for:

    1. the constructor.

    2. the increment function called once.

    3. the increment function called twice.

Example

$ flutter test test/count_model_test.dart
00:20 +3: All tests passed!