Test Case Method Identifier
addNode
Test Items
The purpose of testing the addNode method is to check whether nodes are created properly using different parameters of the addNode methods such as multiple nodes, multiple edges and a given SingleGraph. The tests check the degree of the edges and of the nodes before and after the addNode, they check the root before and after the addNode etc...
Input Specification
To test the addNode methods different inputs should be used such as a given SingleGraph, some nodes and edges and an expected value.
Output Specification
Assert that the size of the node and the edges match the expected values after the calling to the addNode method.