public void Sum_Is_Calculated_Correctly_When_Entries_Supplied(int[] data, int expected) { var bomManager = new BomManager(); Assert.AreEqual(expected, bomManager.MethodToTest(new Collection<int>(data))); }
public void Sum_Is_Zero_When_Null_Collection() { var bomManager = new BomManager(); Assert.AreEqual(0, bomManager.MethodToTest(null)); }
public void Sum_Is_Zero_When_No_Entries() { var bomManager = new BomManager(); Assert.AreEqual(0, bomManager.MethodToTest(new Collection<int>())); }