public void Test2() { var ct = new CountTriplets(); var result = ct.Count(new int[] { 5, 1, 3, 4, 7 }, 12); Assert.That(result, Is.EqualTo(4)); }
public void Test() { var ct = new CountTriplets(); var result = ct.Count(new int[] { -2, 0, 1, 3 }, 2); Assert.That(result, Is.EqualTo(2)); }