Ejemplo n.º 1
0
        public void AddingKeyAndValueToDictionary_ShouldReturnTrue()
        {
            Badge id = new Badge();
            Badge_Repo repo = new Badge_Repo();

            bool addResult = repo.AddToDictionary(id);

            Assert.IsTrue(addResult);
        }
Ejemplo n.º 2
0
        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);
        }