コード例 #1
0
 public void UnsortedNamesIn_SortedNamesReturned()
 {
     string[] names       = { "John Doe", "Anne Other", "Anne", "Joseph Emanuel Isaac David" };
     string[] sortedNames = nameSorter.SortByLastName(names);
     string[] expected    = { "Anne", "Joseph Emanuel Isaac David", "John Doe", "Anne Other" };
     CollectionAssert.AreEqual(expected, sortedNames);
 }