Beispiel #1
0
        public void GetRemainder_DivideByZero_ThrowsException()
        {
            Exception exception = null;

            try
            {
                ReturnRemainder.GetRemainder(10, 0);
            }
            catch (Exception ex)
            {
                exception = ex;
            }
            Assert.IsNotNull(exception);
        }
Beispiel #2
0
        public void GetRemainder_XLessThanY_ThrowsException()
        {
            Exception exception = null;

            try
            {
                ReturnRemainder.GetRemainder(4, 10);
            }
            catch (Exception ex)
            {
                exception = ex;
            }
            Assert.IsNotNull(exception);
        }
Beispiel #3
0
 public void GetRemainder_Pass10and2_Returns0()
 {
     Assert.AreEqual(0, ReturnRemainder.GetRemainder(10, 2));
 }
Beispiel #4
0
 public void GetRemainder_Pass10and3_Returns1()
 {
     Assert.AreEqual(1, ReturnRemainder.GetRemainder(10, 3));
 }