Exemple #1
0
        public void CalculateFee_Valid_Test()
        {
            double fee         = DogeTransactionHelpers.CalcFee(2, 2, "Test", false);
            double expectedFee = 525000;

            //Assert
            Assert.Equal(expectedFee, fee, 15);
        }
Exemple #2
0
        public void CalculateFee_MoreThan10kb_Test()
        {
            //Arrange
            string message = "Cannot send transaction bigger than 10kB on DOGE network!";

            //Assert + Action
            var exception = Assert.Throws <Exception>(() => DogeTransactionHelpers.CalcFee(100, 20, "Test custom message", false));

            Assert.Equal(message, exception.Message);
        }