public void OrderNames_WhenCalled_ReturnsListOfitemsOrderByCountDescendingAndAlphabeticallyAscending() { //Arrange string path = "mypath.csv"; List <string> expected = new List <string>() { "Smith, 2", "Clive, 2", "Owen, 2", "James, 2", "Brown, 2", "Graham, 2", "Howe, 2", "Jimmy, 1", "John, 1" }; List <string> items = new List <string>() { "Jimmy", "Smith", "Clive", "Owen", "James", "Brown", "Graham", "Howe", "John", "Howe", "Clive", "Smith", "James", "Owen", "Graham", "Brown" }; ReadWriteFile readWriteFile = MakeParser(); //Act List <string> actual = readWriteFile.OrderNames(items); //Assert Assert.AreEqual(expected, actual); }