public void NewFundsTransferTest() { GBinanceFuturesClient.Trade trade = new BinanceFuturesClient(Config.PublicKey, Config.PrivateKey).Trade; try { trade.NewFundsTransfer("USDT", 10, 1); } catch (ErrorMessageException e) { StringAssert.AreNotEqualIgnoringCase("", e.Message); // Invalide api key (test api key on public api, not testnet). StringAssert.AreEqualIgnoringCase("Invalid Api-Key ID.", e.Message); } }
public void UnautorizeUserTest() { GBinanceFuturesClient.Trade trade = new BinanceFuturesClient().Trade; try { string id = trade.NewFundsTransfer("USDT", 10, 1); Assert.Fail(); } catch (ErrorMessageException e) { Assert.Fail(e.Message); } catch (Exception) { Assert.IsTrue(true); } }