Esempio n. 1
0
        public void GetClockAngle_PassednegativeMinute_ThrowsException()
        {
            Exception exception = null;

            try
            {
                ClockAngle.GetClockAngle(5, -30);
            }
            catch (Exception ex)
            {
                exception = ex;
            }
            Assert.IsNotNull(exception);
        }
Esempio n. 2
0
 public void GetClockAngle_Passed1230_Returns165()
 {
     Assert.AreEqual(165, ClockAngle.GetClockAngle(12, 30));
 }
Esempio n. 3
0
 public void GetClockAngle_Passed630_Returns15()
 {
     Assert.AreEqual(15, ClockAngle.GetClockAngle(6, 30));
 }
Esempio n. 4
0
 public void GetClockAngle_Passed415_Returns37Point5()
 {
     Assert.AreEqual(37.5, ClockAngle.GetClockAngle(4, 15));
 }
Esempio n. 5
0
 public void GetClockAngle_Passed1200_Returns0()
 {
     Assert.AreEqual(0, ClockAngle.GetClockAngle(12, 0));
 }