Exemplo n.º 1
0
 public void EmptyArrayInput_EmptyArrayReturned()
 {
     Assert.Equal(new int[0], SortOneThreeTwo.Sort(new int[0]));
 }
Exemplo n.º 2
0
 public void SpecificInput_SortedArrayReturned()
 {
     Assert.Equal(new[] { 111, 156, 101, 7 }, SortOneThreeTwo.Sort(new[] { 7, 111, 101, 156 }));
 }
Exemplo n.º 3
0
 public void ArrayWithDuplicatesInput_SortedArrayReturned()
 {
     Assert.Equal(new[] { 8, 8, 9, 9, 10, 10 }, SortOneThreeTwo.Sort(new[] { 8, 9, 8, 10, 9, 10 }));
 }
Exemplo n.º 4
0
 public void ArrayWithMultidigitNumbersInput_SortedArrayReturned()
 {
     Assert.Equal(new[] { 9, 999, 99 }, SortOneThreeTwo.Sort(new[] { 9, 99, 999 }));
 }
Exemplo n.º 5
0
 public void SimpleArrayInput_SortedArrayReturned()
 {
     Assert.Equal(new[] { 4, 1, 3, 2 }, SortOneThreeTwo.Sort(new[] { 1, 2, 3, 4 }));
 }