public void GenerateRangeOfIntegersSucceeds() { int[] result1 = GenerateRangeOfIntegers.GenerateRange(2, 10, 2); int[] outcome1 = { 2, 4, 6, 8, 10 }; int[] result2 = GenerateRangeOfIntegers.GenerateRange(1, 10, 3); int[] outcome2 = { 1, 4, 7, 10 }; Assert.IsTrue(result1.SequenceEqual(outcome1)); }
public void GenerateRange_ShouldReturn_ExpectedArray(int min, int max, int step, int[] actual) { var sut = GenerateRangeOfIntegers.GenerateRange(min, max, step); sut.Should().Equal(actual); }