예제 #1
0
        public void AddOne1_PassNothing_ThrowsException()
        {
            Exception exception = null;

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