public virtual void emptyMatrixCanHandleTrivialRate()
        {
            FxMatrix matrix = FxMatrix.empty();

            assertThat(matrix.Currencies).Empty;
            assertThat(matrix.fxRate(USD, USD)).isEqualTo(1.0);
            assertThat(matrix.ToString()).isEqualTo("FxMatrix[ : ]");
        }
        public virtual void singleRateMatrixByOfCurrencyPairFactory()
        {
            FxMatrix matrix = FxMatrix.of(CurrencyPair.of(GBP, USD), 1.6);

            assertThat(matrix.Currencies).containsOnly(GBP, USD);
            assertThat(matrix.fxRate(GBP, USD)).isEqualTo(1.6);
            assertThat(matrix.fxRate(USD, GBP)).isEqualTo(0.625);
            assertThat(matrix.ToString()).isEqualTo("FxMatrix[GBP, USD : [1.0, 1.6],[0.625, 1.0]]");
        }