public void FilterDigit_Positive_Test() { List <int> list = new List <int> { 345, 234, 1, 34, 5, 8, 45, 6 }; list = FilterDg.FilterDigit(list, 5); Assert.AreEqual(new List <int> { 345, 5, 45 }, list); }
public void FilterDigit_Negative_Test() { List <int> list = new List <int> { 345, 234, 1, 34, 5, 8, 45, 6 }; list = FilterDg.FilterDigit(list, 6); Assert.AreNotEqual(new List <int> { 345, 1, 6 }, list); }