Exemplo n.º 1
0
        public void TradingLib_CurrencyPair_ThrowsCurrencyPairException()
        {
            CurrencyPair cp = new CurrencyPair(1, 1); // Creates the unknown currency pair USD/USD

            cp.GetBitfinexCurrencyPair();             // Gets the Bitfinex currency pair and checks it throws an exception
        }
Exemplo n.º 2
0
        public void TradingLib_CurrencyPair_GetBitfinexCurrencyPairTest()
        {
            CurrencyPair cp = new CurrencyPair(0, 1);                 // Creates the currency pair USD/BTC

            Assert.AreEqual(cp.GetBitfinexCurrencyPair(), "tBTCUSD"); // Gets the Bitfinex currency pair and checks it returns 'tBTCUSD'
        }