Ejemplo n.º 1
0
            public void CostNotExcedingAllowedCostTest()
            {
                double allocatedCost = 10;
                var    testObject    = new UnitTestLogics();

                testObject.AllocateCost(allocatedCost);
                double result = testObject.allocatedCost;

                Assert.AreEqual(result, allocatedCost);
            }
Ejemplo n.º 2
0
            public void HoursNotExcedingAllowedHoursTest()
            {
                double allocatedHours = 10;
                var    testObject     = new UnitTestLogics();

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

                Assert.AreEqual(result, allocatedHours);
            }
Ejemplo n.º 3
0
            public void CostExcidingAllowedCostTest()
            {
                double allocatedCost = 1000;
                var    testObject    = new UnitTestLogics();

                try
                {
                    testObject.AllocateCost(allocatedCost);
                }
                catch (Exception e)
                {
                    Console.WriteLine(e.Message);
                    throw e;
                }
            }