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 CostExcidingAllowedCostTest()
            {
                double allocatedCost = 1000;
                var    testObject    = new UnitTestLogics();

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