示例#1
0
        public void AssetPairIsEqualOrInvertedTest()
        {
            var equalAssetPair = new AssetPair("BTCUSD", "BTCUSD", new Asset("BTC", "BTC"), new Asset("USD", "USD"), 8, 8);
            var inverted       = _btcusd.Invert();

            Assert.True(_btcusd.EqualOrInverted(equalAssetPair));
            Assert.True(equalAssetPair.EqualOrInverted(_btcusd));
            Assert.True(_btcusd.EqualOrInverted(inverted));
            Assert.True(inverted.EqualOrInverted(_btcusd));
        }