Exemplo n.º 1
0
        public void OneBtcShouldBeMoreThan100Satoshi()
        {
            var oneBtcValue  = BitCoin.FromBtc(1);
            var satoshiValue = BitCoin.FromSatoshi(100);

            oneBtcValue.Should().BeGreaterThan(satoshiValue);
        }
Exemplo n.º 2
0
        public void AddingTwoBitcoinsShouldBeCorrect()
        {
            var oneBtcValue = BitCoin.FromBtc(1);
            var sum         = oneBtcValue + BitCoin.FromBtc(1);

            sum.Should().Be(BitCoin.FromBtc(2));
        }
Exemplo n.º 3
0
        public void GreaterComparatorOfBitCoinShouldWorkProper()
        {
            var oneBtc = BitCoin.FromBtc(1);
            var twoBtc = BitCoin.FromBtc(2);


            twoBtc.Should().BeGreaterThan(oneBtc);
            Assert.IsTrue(twoBtc > oneBtc);
        }
Exemplo n.º 4
0
        public void LessComparatorOfBitCoinShouldWorkProper()
        {
            var oneBtc = BitCoin.FromBtc(1);
            var twoBtc = BitCoin.FromBtc(2);


            oneBtc.Should().BeLessThan(twoBtc);
            Assert.IsTrue(oneBtc < twoBtc);
        }
Exemplo n.º 5
0
        public void TwoSameBitcoinAmountShouldBeEqual()
        {
            //Arrange
            var oneBtcValue        = BitCoin.FromBtc(1);
            var anotherOneBtcValue = BitCoin.FromBtc(1);


            //Assert
            oneBtcValue.Should().Be(anotherOneBtcValue);
            Assert.IsTrue(oneBtcValue == anotherOneBtcValue);
        }