public void GetBestDriverNoAdd() { string meest = null; DriverPoints x = new DriverPoints() { Name = "meest", Points = 99 }; string winner = x.GetBestDriverName(_competition.DriverPoints.list); Assert.AreEqual(meest, null); }
public void GetBestDriverGetBestOneAdd() { string meest = "meest"; _competition.DriverPoints.AddItemToList(new DriverPoints() { Name = "minst", Points = 1 }); _competition.DriverPoints.AddItemToList(new DriverPoints() { Name = "meest", Points = 99 }); DriverPoints x = new DriverPoints() { Name = "meest", Points = 99 }; string winner = x.GetBestDriverName(_competition.DriverPoints.list); Assert.AreEqual(meest, winner); }