public void GivennMaxStartingValueBiggerThanZero_WhenGettingLongestCollatzSequence_ThenGetCorrectResult() { var collatzSequence = CalculateCollatzSequence.GetLongestCollatzSequence(5); Assert.AreEqual(8, collatzSequence.Sequence.Count); Assert.AreEqual(3, collatzSequence.StartingValue); }
public void GivennMaxStartingValueSmallerOrEqualToZero_WhenGettingLongestCollatzSequence_ThenThrowError() { CalculateCollatzSequence.GetLongestCollatzSequence(0); }