예제 #1
0
        public void SimulateSellTestHappyPath()
        {
            decimal initialPaymiumBtcBalance  = 4.689812874641m;
            decimal initialPaymiumFiatBalance = 148.28m;
            decimal sellBtcAmount             = 0.987316397m;
            decimal totalSellCost             = 45.21m;

            Btce btce = new Btce();

            btce.AvailableBtc  = initialPaymiumBtcBalance;
            btce.AvailableFiat = initialPaymiumFiatBalance;
            btce.SimulatedSell(sellBtcAmount, totalSellCost);

            Assert.IsTrue(btce.AvailableBtc == initialPaymiumBtcBalance - sellBtcAmount);
            Assert.IsTrue(btce.AvailableFiat == initialPaymiumFiatBalance + totalSellCost);
        }
예제 #2
0
        public void SimulatedSellTestWithNoFiat()
        {
            Btce btce = new Btce();

            btce.SimulatedSell(2.0m, 234.00m);
        }