public void GetWorstProgrammer4() { DataStore store = new DataStore(); DateTime date = new DateTime(2002, 11, 1, 1, 1, 56); String email = "myEmail.com"; String name = "Hans"; Programmer result = new MySingleSuperClass().GetWorstProgrammer(store.getProgrammers(), date, email, name); Assert.AreEqual(result.getLastname(), "Klaus"); }
public void GetWorstProgrammer3() { DataStore store = new DataStore(); DateTime date = new DateTime(2002, 11, 22, 1, 1, 30); String email = "myEmail.com"; String name = "Hans"; int resultSize = store.getProgrammers().Count; Programmer result = new MySingleSuperClass().GetWorstProgrammer(store.getProgrammers(), date, email, name); Assert.AreEqual(result.getLastname(), "Dieter"); }