I have the method:
public static int Add(List numbers) { if (numbers == null || numbers.Count == 0) return 0; if
Just create the list inside the method instead, like this:
public void Add_WithOneNumber_ReturnsNumber() { var result = CalculatorLibrary.CalculatorFunctions.Add(new List{1}); Assert.AreEqual(1, result); }