예제 #1
0
 public CallbackAmountTests()
 {
     this.subject = new CallbackAmount()
     {
         Confirmed = new PropertyAmount(100),
         Pending   = new PropertyAmount(200),
     };
 }
예제 #2
0
        public void Equality_WithEqual_ShouldReturnTrue()
        {
            var right = new CallbackAmount()
            {
                Confirmed = this.subject.Confirmed,
                Pending   = this.subject.Pending,
            };

            Assert.True(this.subject == right);
        }
예제 #3
0
        public void Equality_WithLeftNull_ShouldReturnFalse()
        {
            CallbackAmount left = null;

            Assert.False(left == this.subject);
        }
예제 #4
0
        public void Inequality_WithLeftNull_ShouldReturnTrue()
        {
            CallbackAmount left = null;

            Assert.True(left != this.subject);
        }