public void DictionaryResourceAndCount_Test_CountElements() { // arrange Dictionary <string, int> expectedDictionaryGroupBy = DataTests.DictionaryGroupBy(); // act List <string> expectedListField = excel.ListField("valid_kmat"); Dictionary <string, int> actualDictionary = excel._groupByFieldAndCount("kmat"); Assert.AreEqual(expectedDictionaryGroupBy.Count, actualDictionary.Count); }
public void DictionaryResourceAndCount_Test_CollectionEquals() { // arrange Dictionary <string, int> expectedDictionaryGroupBy = DataTests.DictionaryGroupBy(); // act List <string> actualListField = excel.ListField("valid_kmat"); Dictionary <string, int> actualDictionary = excel._groupByFieldAndCount("kmat"); // new Dictionary<string, int>(); // Functions.DictionaryResourceAndCount(actualListField); //Assert CollectionAssert.AreEqual(expectedDictionaryGroupBy, actualDictionary); }