示例#1
0
        public void InitializedTransactionTransactionTypeNotSet()
        {
            Transaction transaction = new Transaction();

            Assert.Equal(transaction.TransactionType, TransactionTypes.Withdrawal);
        }
示例#2
0
        public void InitializedTransactionTagsLengthZero()
        {
            Transaction transaction = new Transaction();

            Assert.Equal(0, transaction.Tags.Count);
        }
示例#3
0
        public void InitializedTransactionHasNullAccount()
        {
            Transaction transaction = new Transaction();

            Assert.Null(transaction.Account);
        }
示例#4
0
        public void InitializedTransactionDescriptionEmpty()
        {
            Transaction transaction = new Transaction();

            Assert.Equal(string.Empty, transaction.Description);
        }
示例#5
0
        public void InitializedTransactionDateIsDateMin()
        {
            Transaction transaction = new Transaction();

            Assert.Equal(transaction.Date, DateTime.MinValue);
        }
示例#6
0
        public void InitializedTransactionAmountZero()
        {
            Transaction transaction = new Transaction();

            Assert.Equal(transaction.Amount, 0.0);
        }