Example #1
0
        public void Equals_WithInequal_ShouldReturnFalse()
        {
            var results = EqualityTesting.TestInequal(
                this.subject,
                s => new BalanceWatch <object, int>(
                    s.Context,
                    uint256.Zero,
                    s.Transaction,
                    s.Address,
                    s.BalanceChange,
                    s.StartTime,
                    s.Id),
                s => new BalanceWatch <object, int>(
                    s.Context,
                    s.StartBlock,
                    uint256.Zero,
                    s.Address,
                    s.BalanceChange,
                    s.StartTime,
                    s.Id),
                s => new BalanceWatch <object, int>(
                    s.Context,
                    s.StartBlock,
                    s.Transaction,
                    TestAddress.Regtest2,
                    s.BalanceChange,
                    s.StartTime,
                    s.Id));

            results.Should().NotContain(true);
        }
Example #2
0
 public void Equals_WithInequal_ShouldBeUnequal()
 {
     EqualityTesting.TestInequal(
         this.subject,
         s => new BalanceChange <object, int>(s.Context, 11)
         );
 }
Example #3
0
 public void Equals_WithUnequal_ShouldBeUnequal()
 {
     EqualityTesting.TestInequal(
         this.subject,
         s => new ConfirmedBalanceChange <object, int>(s.Context, 9, s.Confirmation),
         s => new ConfirmedBalanceChange <object, int>(s.Context, s.Amount, 2)
         );
 }
Example #4
0
        public void Equals_WithInequal_ShouldReturnFalse()
        {
            var results = EqualityTesting.TestInequal(
                this.subject,
                s => new BalanceChange <object, int>(s.Context, 11));

            results.Should().NotContain(true);
        }
Example #5
0
        public void Equals_WithInequal_ShouldReturnFalse()
        {
            var results = EqualityTesting.TestInequal(
                this.subject,
                s => new Rule(
                    s.Property,
                    s.AddressReservation,
                    s.TargetAmount,
                    s.TargetConfirmation,
                    s.OriginalTimeout,
                    s.Callback,
                    Guid.NewGuid()));

            Assert.DoesNotContain(true, results);
        }
Example #6
0
        public void Equals_WithUnequal_ShouldReturnFalse()
        {
            var results = EqualityTesting.TestInequal(
                this.subject,
                s => new CallbackData()
            {
                Received = null
            },
                s => new CallbackData()
            {
                Received = new CallbackAmount()
                {
                    Pending = new PropertyAmount(100)
                }
            });

            Assert.DoesNotContain(true, results);
        }
Example #7
0
        public void Equals_WithUnequal_ShouldReturnFalse()
        {
            var results = EqualityTesting.TestInequal(
                this.subject,
                s => new CallbackAmount()
            {
                Confirmed = null, Pending = s.Pending
            },
                s => new CallbackAmount()
            {
                Confirmed = new PropertyAmount(200), Pending = s.Pending
            },
                s => new CallbackAmount()
            {
                Confirmed = s.Confirmed, Pending = null
            },
                s => new CallbackAmount()
            {
                Confirmed = s.Confirmed, Pending = new PropertyAmount(100)
            });

            Assert.DoesNotContain(true, results);
        }
        public void Equals_WithUnequal_ShouldReturnFalse()
        {
            var results = EqualityTesting.TestInequal(this.subject, this.unequals);

            Assert.DoesNotContain(true, results);
        }