I have the method:
public static int Add(List numbers) { if (numbers == null || numbers.Count == 0) return 0; if
Improve code for @Yurii Hohan answer:
private static readonly object[] _Data = { new object[] {new List {0}, "test"}, new object[] {new List {0, 5}, "test this"}, }; [Test, TestCaseSource(nameof(_Data))]
Hope this help.