//------------------------------------------------------------------------- public virtual void test_isInverse_CurrencyPair() { CurrencyPair test = CurrencyPair.of(GBP, USD); assertEquals(test.isInverse(test), false); assertEquals(test.isInverse(CurrencyPair.of(GBP, USD)), false); assertEquals(test.isInverse(CurrencyPair.of(USD, GBP)), true); assertEquals(test.isInverse(CurrencyPair.of(GBP, EUR)), false); assertEquals(test.isInverse(CurrencyPair.of(EUR, GBP)), false); assertEquals(test.isInverse(CurrencyPair.of(USD, EUR)), false); assertEquals(test.isInverse(CurrencyPair.of(EUR, USD)), false); }
public virtual void test_isInverse_CurrencyPair_null() { CurrencyPair test = CurrencyPair.of(GBP, USD); assertThrowsIllegalArg(() => test.isInverse(null)); }