BudgetAnalyser.Engine.UnitTest.Ledger.SpentMonthlyLedgerReconciliationBehaviourTest.ShouldSupplementUpToBudgetAmount_GivenClosingBalanceIsLessThanOpeningBalanceAndGreaterThanBudgetAmount C# (CSharp) Метод

ShouldSupplementUpToBudgetAmount_GivenClosingBalanceIsLessThanOpeningBalanceAndGreaterThanBudgetAmount() приватный Метод

        public void ShouldSupplementUpToBudgetAmount_GivenClosingBalanceIsLessThanOpeningBalanceAndGreaterThanBudgetAmount()
        {
            Console.WriteLine($"Opening Balance: {this.subject.Balance:F2}");
            var testInput = new List<LedgerTransaction>
            {
                new BudgetCreditLedgerTransaction { Amount = 100M, Date = this.reconciliationDate, Narrative = "Budget Amount" },
                new CreditLedgerTransaction { Amount = -200M, Date = new DateTime(2013, 9, 11) }
            };
            this.subject.SetTransactionsForReconciliation(testInput, this.reconciliationDate);

            this.subject.Output();

            Assert.AreEqual(100M, this.subject.Balance);
        }
SpentMonthlyLedgerReconciliationBehaviourTest