Пример #1
0
        public void GetRemainder_DivideByZero_ThrowsException()
        {
            Exception exception = null;

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

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