public void When_The_Start_Is_Greater_Than_The_End() { var instance = new AscendingSequenceCalculator(); var result = instance.Evaluate(11, 10); result.ToArray(); Assert.Fail("Should have exceptioned..."); }
public void Then_The_End_Value_Is_Included() { var instance = new AscendingSequenceCalculator(); var result = instance.Evaluate(0, 10); Assert.IsNotNull(result); Assert.IsTrue(result.Any()); Assert.AreEqual("10", result.Last()); }
public void When_A_Simple_Small_Range_Is_Selected() { var instance = new AscendingSequenceCalculator(); var result = instance.Evaluate(0, 10); Assert.IsNotNull(result); Assert.IsTrue(result.Any()); Assert.AreEqual("0", result.First()); Assert.AreEqual("10", result.Last()); Assert.AreEqual(11, result.Count()); Assert.AreEqual("0 1 2 3 4 5 6 7 8 9 10", String.Join(" ", result.ToArray())); }