public void TestComputeSequenceWithNumber3Test() { INumericCalculator calculator = new OddNumericSequenceCalculator(); List<string> result = (List<string>)calculator.ComputeSequenceWithNumber(0); List<string> expected = new List<string> { }; CollectionAssert.AreEqual(expected, result); }
public void ComputeSequenceWithNumber1Test() { INumericCalculator calculator = new OddNumericSequenceCalculator(); List<string> result = (List<string>)calculator.ComputeSequenceWithNumber(15); List<string> expected = new List<string> { "1", "3", "5", "7", "9", "11", "13", "15" }; CollectionAssert.AreEqual(expected, result); }