public void CanFilterOutOdds() { var numbers = new List <int> { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; var numberFilter = new NumberFilter(); List <int> result = numberFilter.FilterOutOdds(numbers); Assert.Equal(new List <int> { 2, 4, 6, 8 }, result); }
public void CanFilterOutEvens() { var numbers = new List <int> { 1, 2, 3, 4, 5, 6, 7, 8, 9 }; var numberFilter = new NumberFilter(); List <int> evens = numberFilter.FilterOutEvens(numbers); Assert.Equal(1, evens[0]); Assert.Equal(3, evens[1]); // etc. etc. }