Unit Tests for Homework01 Assignment
Tests for the following Methods inAlgoDat.TreeDictionary
, AlgoDat.ListDictionary
and AlgoDat.Dictionary
:
-
Add()
&Get()
-> IfGet()
on non existing key is called, returndefault
-
Set()
-> (Setting only works if key exists, otherwise Exception is thrown) -
Contains()
-> boolean -
Remove()
-> (Removing should only work if key exists, otherwise Exception is thrown). Only inAlgoDat.Dictionary
it just returns.