public void Sort_Strings_IndexShifts() { // Arrange ListProperties <string> list = new ListProperties <string>() { "The", "He", "A", "Hat" }; // Act list.Sort(); string expected = "A"; // Assert Assert.AreEqual(expected, list[0]); }
public void Sort_Strings_ReturnOrderedList() { // Arrange ListProperties <string> list = new ListProperties <string>() { "The", "He", "A", "Hat" }; // Act list.Sort(); string expected = "AHatHeThe"; // Assert Assert.AreEqual(expected, list.ToString()); }
public void Sort_Ints_IndexShifts() { // Arrange ListProperties <int> list = new ListProperties <int>() { 1, 4, 10, 2 }; // Act list.Sort(); int expected = 10; // Assert Assert.AreEqual(expected, list[3]); }