Test Case Method Identifier
addEdge
Test Items
The purpose of testing the addEdge method is to check whether edges are created properly using different parameters of the addEdge methods such as strict checking, no strict checking (with different orders), null values, missing elements. Others tests are done by checking the existence and the correctness of the inserted values (nodes, degrees, edges and graph properties).
Input Specification
To test the addEdge methods different inputs should be used such as multiple nodes and edges. Every time new instances of SigleGraphs are created.
Output Specification
We assert that both correct edges and not-null edges and correct degrees are inserted into the SingleGraph.