public void VerifyCountByAges() { shouldShowHint = false; List <Employee> employees = new List <Employee>() { new Employee("Anna", 32), new Employee("John", 23), new Employee("Sarah", 23), new Employee("Mike", 32) }; var r = DictionaryStub.GetEmployeesByAge(employees); Assert.AreEqual(true, r.ContainsKey(32) && r.ContainsKey(23) && r[32].Count == 2 && r[23].Count == 2); shouldShowHint = false; }
public ValueStackStub() { Values = new DictionaryStub(); }