Пример #1
0
        public void SetConfirmations_SetOneConfirmation_OneConfirmationIsSetToConfirmationField()
        {
            // Arrange
            var expectedConfirmations = 1;
            var hash = UInt256.Parse("0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF0123456789ABCDEF");

            // Act
            var transactionItem = new TransactionItem(hash, TransactionType.ContractTransaction, uint.MinValue, DateTime.Now);

            transactionItem.SetConfirmations(expectedConfirmations);

            // Assert
            Assert.Equal(expectedConfirmations.ToString(), transactionItem.Confirmations);
        }