public void FindNinetyNineSet_StartZeroToMaximum() { var finder = new FinderNinetyNineSet(); var numbers = Enumerable.Range(0, 999999); var result = finder.Homework13(numbers); var expectedAmount = 42057; Assert.Equal(expectedAmount, result); }
public void FindNinetyNineSet_WrongInput() { var finder = new FinderNinetyNineSet(); var numbers = new List <int> { 000000, 000999, 009990, 099900, 999000, 999999 }; var result = finder.Homework13(numbers); var expectedAmount = 0; Assert.Equal(expectedAmount, result); }