public void TestWhenListIsEmpty() { var target = new TwoElementsWhoseSum(); Assert.IsFalse(target.SumExists(new List<int>(), 10)); }
public void TestWhenPresent() { var target = new TwoElementsWhoseSum(); var list = new List<int> { 3, 2, 1, 9, 7, 11, 2 }; Assert.IsTrue(target.SumExists(list, 10)); }
public void TestWhenListIsNull() { var target = new TwoElementsWhoseSum(); Assert.IsFalse(target.SumExists(null, 10)); }