Example #1
0
        public void TestGetFactorBaseValue()
        {
            var testResult = AmericanFactors.GetFactorBaseValue(AmericanFactorTables.CheckingAccount);

            Assert.AreEqual(1000D, testResult);

            testResult = AmericanFactors.GetFactorBaseValue(AmericanFactorTables.SavingsAccount);
            Assert.AreEqual(4625D, testResult);

            testResult = AmericanFactors.GetFactorBaseValue(AmericanFactorTables.NetWorth);
            Assert.AreEqual(25116D, testResult);

            testResult = AmericanFactors.GetFactorBaseValue(AmericanFactorTables.VehicleEquity);
            Assert.AreEqual(6988D, testResult);

            testResult = AmericanFactors.GetFactorBaseValue(AmericanFactorTables.HomeEquity);
            Assert.AreEqual(81000D, testResult);

            testResult = AmericanFactors.GetFactorBaseValue(AmericanFactorTables.VehicleDebt);
            Assert.AreEqual(10000D, testResult);

            testResult = AmericanFactors.GetFactorBaseValue(AmericanFactorTables.HomeDebt);
            Assert.AreEqual(117000D, testResult);

            testResult = AmericanFactors.GetFactorBaseValue(AmericanFactorTables.CreditCardDebt);
            Assert.AreEqual(3500D, testResult);

            testResult = AmericanFactors.GetFactorBaseValue(AmericanFactorTables.OtherDebt);
            Assert.AreEqual(10000D, testResult);

            System.Diagnostics.Debug.WriteLine(testResult);
        }
Example #2
0
        public void TestGetFactorBaseValue()
        {
            var testResult = AmericanFactors.GetFactorBaseValue(AmericanFactorTables.VehicleDebt);

            Assert.AreEqual(10000.0D, testResult);

            testResult = AmericanFactors.GetFactorBaseValue(AmericanFactorTables.HomeEquity);
            Assert.AreEqual(81000.0D, testResult);
        }