BudgetAnalyser.Engine.UnitTest.Budget.IncomeTest.NegativeAmountIsNotValidEvenWhenInActive C# (CSharp) Method

NegativeAmountIsNotValidEvenWhenInActive() private method

private NegativeAmountIsNotValidEvenWhenInActive ( ) : void
return void
        public void NegativeAmountIsNotValidEvenWhenInActive()
        {
            Income subject = CreateSubject();
            subject.Amount = -5;
            subject.Bucket.Active = false;

            bool result = subject.Validate(Logs);

            Assert.IsFalse(result);
            Assert.IsTrue(Logs.Length > 0);
        }