public void TestAddBadgeAccess() { //Arrange BadgeRepository badgeRepo = new BadgeRepository(); IDictionary <int, List <string> > badgeAccess = badgeRepo.ReturnDictionary(); int badgeID = 111; string roomAccess = "A101, A102, A103"; badgeRepo.AddBadgeToDictionary(badgeID, roomAccess); //Act string roomsToAdd = "B101, B102, B103"; badgeRepo.AddBadgeAccess(badgeAccess[111], roomsToAdd); //Assert Assert.AreEqual(6, badgeAccess[111].Count); }