public void AddingKeyAndValueToDictionary_ShouldReturnTrue() { Badge id = new Badge(); Badge_Repo repo = new Badge_Repo(); bool addResult = repo.AddToDictionary(id); Assert.IsTrue(addResult); }
public void GetAllContents_ShouldReturnedAllDictionaryItems() { int id = 1; List<string> word = new List<string>(); _repo = new Badge_Repo(); _repo.AddToDictionary(id, "A5"); Dictionary<int, List<string>> contents = _repo.GetAllContent(); bool dictionaryHasContent = contents.ContainsKey(1); }