public void Opdracht4b_GetAllNamesSorted() { //Arrange PersonTree tree = new PersonTree(new Person("Bruce")); tree.Add(new Person("Jan", 0)); tree.Add(new Person("Jos", 100)); tree.Add(new Person("Melinda", 90)); tree.Add(new Person("Wouter", 10)); //Act string result = tree.GetAllNamesSorted(); //Assert Assert.AreEqual("Jan - Wouter - Bruce - Melinda - Jos", result); }
public void Opdracht4a_AddTest3() { //Arrange PersonTree tree = new PersonTree(new Person("Bruce")); //Act tree.Add(new Person("Jan", 0)); string result = tree.GetMostEvilPerson(); //Assert Assert.AreEqual("Bruce", result); }