public void AddOne1_PassNothing_ThrowsException() { Exception exception = null; try { PlusOne.AddOne1(); } catch (Exception ex) { exception = ex; } Assert.IsNotNull(exception); }
public void AddOne1_Pass11_Returns12() { Assert.AreEqual(12, PlusOne.AddOne1(1, 1)); }
public void AddOne1_Pass1234_Returns1235() { Assert.AreEqual(1235, PlusOne.AddOne1(1, 2, 3, 4)); }
public void AddOne1_Pass999_Returns1000() { Assert.AreEqual(1000, PlusOne.AddOne1(9, 9, 9)); }
public void AddOne1_Pass1_Returns2() { Assert.AreEqual(2, PlusOne.AddOne1(1)); }
public void AddOne1_Pass123_Returns124() { Assert.AreEqual(124, PlusOne.AddOne1(1, 2, 3)); }