ArmourFactory Unit Testing - UQdeco2800/2022-studio-2 GitHub Wiki

Introduction

This section explains the unit testing for the following unit tests. This code comes from the file called ArmourFactoryTest.

Test Code

Each Test will begin with the following code image

The code below tests to check if armour can be created and assigned the right entityType.

createArmour Test

image