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); }
public void SimulatedSellTestWithNoFiat() { Btce btce = new Btce(); btce.SimulatedSell(2.0m, 234.00m); }