BudgetAnalyser.Engine.UnitTest.Budget.ExpenseTest.NegativeAmountIsNotValidEvenWhenInactive C# (CSharp) Метод

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

private NegativeAmountIsNotValidEvenWhenInactive ( ) : void
Результат void
        public void NegativeAmountIsNotValidEvenWhenInactive()
        {
            Expense subject = CreateSubject();
            subject.Amount = -5;
            subject.Bucket.Active = false;

            bool result = subject.Validate(Logs);

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