BudgetAnalyser.Engine.UnitTest.Ledger.SpentMonthlyLedgerReconciliationBehaviourTest.ShouldSupplementToZero_GivenNoBudgetAmountAndClosingBalanceIsLessThanZero C# (CSharp) Method

ShouldSupplementToZero_GivenNoBudgetAmountAndClosingBalanceIsLessThanZero() private method

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

            this.subject.Output();

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