public void HoursNotExcedingAllowedHoursTest() { double allocatedHours = 10; var testObject = new UnitTestLogics(); testObject.AllocateHours(allocatedHours); double result = testObject.allocatedHours; Assert.AreEqual(result, allocatedHours); }
public void HoursExcidingAllowedHoursTest() { double allocatedHours = 1000; var testObject = new UnitTestLogics(); try { testObject.AllocateHours(allocatedHours); } catch (Exception e) { Console.WriteLine(e.Message); throw e; } }