Skip to content

SE-371-475-Fall2021/UnitTesting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnitTesting

Unit Testing Calculator Example

Main class: Calculator.java

Unit Test Examples: CalculatorTest.java and CalculatorTestParam.java

Class Activity Instructions

  • Clone this repository into your local machine.
  • Create and checkout to a branch with this fromat [first name-last name]
  • Write 3 unit tests for the CalculatorClassActivity.java class as follow:
  1. Confirm the initial value is 0
  2. Confirm adding 7 to the initial value
  3. Confirm subtracting 10 from initial value

Commit your code into your branch in the remote repository.

Then, create a pull request to merge your branch into the main branch.

About

Unit Testing Example and Activity

Resources

Stars

Watchers

Forks

Languages