Пример #1
0
            public void HoursNotExcedingAllowedHoursTest()
            {
                double allocatedHours = 10;
                var    testObject     = new UnitTestLogics();

                testObject.AllocateHours(allocatedHours);
                double result = testObject.allocatedHours;

                Assert.AreEqual(result, allocatedHours);
            }
Пример #2
0
            public void HoursExcidingAllowedHoursTest()
            {
                double allocatedHours = 1000;
                var    testObject     = new UnitTestLogics();

                try
                {
                    testObject.AllocateHours(allocatedHours);
                }
                catch (Exception e)
                {
                    Console.WriteLine(e.Message);
                    throw e;
                }
            }