public void NumbersSeparatedByCommasInOneStringWorks() { //Arrange StringCalculator testcalc = new StringCalculator(); //Act int result = testcalc.AddString("1,2"); //Assert Assert.AreEqual(result, 3); }
public void AnyQuantityOfNumbersShouldAdd() { //Arrange StringCalculator testcalc = new StringCalculator(); //Act int result = testcalc.AddString("1", "2", "3", "4", "5"); //Assert Assert.AreEqual(result, 15); }
public void OneStringShouldEqualItself() { //Arrange StringCalculator testcalc = new StringCalculator(); //Act int result = testcalc.AddString("4"); //Assert Assert.AreEqual(result, 4); }
public void Strings1and2ShouldEqual3() { //Arrange StringCalculator testcalc = new StringCalculator(); //Act int result = testcalc.AddString("1", "2"); //Assert Assert.AreEqual(result, 3); }
public void EmptyStringShouldEqual0() { //Arrange StringCalculator testcalc = new StringCalculator(); //Act int result = testcalc.AddString(); //Assert Assert.AreEqual(result, 0); }