public void Return_Empty_Array_With_Two_For_Loops() { var array = new[] { 3, 5, -4, 8, 11, 1, -1, 6 }; const int targetSum = 20; var result = TwoSumNumber.TwoForLoopsSolution(array, targetSum); result.Count.Should().Be(0); }
public void Return_Expected_The_Two_Number_With_Order_With_Two_For_Loops_Solution() { var array = new[] { 3, 5, -4, 8, 11, 1, -1, 6 }; const int targetSum = 10; var result = TwoSumNumber.TwoForLoopsSolution(array, targetSum); result[0].Should().Be(-1); result[1].Should().Be(11); }