public void TestAddUnsortedDataIsHeldSorted() { this.names.Add("Rosen"); this.names.Add("Balkan"); this.names.Add("Georgi"); Assert.AreEqual("Balkan", names.First()); Assert.AreEqual("Rosen", names.Last()); }
public void TestAddUnsortedDataIsHeldSorted() { var firstExpectedElement = "Balkan"; var lastExpectedElement = "Rosen"; this.names.Add("Rosen"); this.names.Add("Georgi"); this.names.Add("Balkan"); Assert.That(names.First(), Is.EqualTo(firstExpectedElement)); Assert.That(names.Last(), Is.EqualTo(lastExpectedElement)); }