public void Throw_Exception_If_Left_Table_Is_Empty() { HashMap <string> leftTable = new HashMap <string>(1024); HashMap <string> rightTable = RightTable(); Assert.Throws <ArgumentException>(() => LeftJoin.Join(leftTable, rightTable)); }
public void Successfully_Left_Join_The_Shared_Keys_Of_Two_HashMaps() { HashMap <string> leftTable = LeftTable(); HashMap <string> rightTable = RightTable(); List <ReturnObject> list = LeftJoin.Join(leftTable, rightTable); List <string> actual = ObjectListToString(list); List <string> expected = new List <string>() { "fond", "enamored", "averse", "wrath", "anger", "delight", "diligent", "employed", "idle", "outfit", "garb", null, "guide", "usher", "follow" }; Assert.Equal(expected, actual); }