Пример #1
0
        public void Taxa5_32_DiversosDias_COndicaoResgate_DeveRetornar_Cotacao_1_039339623()
        {
            var ntnb   = new NTNB();
            var actual = ntnb.Cotacao(5.32, new[] { 91, 219, 341, 472, 593, 724, 846, 973, 1097, 1224, 1347 }, true);

            Assert.Equal(1.039339623M, actual);
        }
Пример #2
0
        public void Taxa5_32_1347Dias_DeveRetornar_Cotacao_0_022409008()
        {
            var ntnb   = new NTNB();
            var actual = ntnb.Cotacao(5.32, 1347);

            Assert.Equal(0.022409008M, actual);
        }
Пример #3
0
        public void Taxa6_5_106Dias_CondicaoResgate_CondicaoResgate_SemTruncar_DeveRetornar_Cotacao_0_97385836702506()
        {
            var ntnb   = new NTNB();
            var actual = ntnb.Cotacao(6.5, 106, true, false);

            Assert.Equal(0.97385836702506M, actual);
        }
Пример #4
0
        public void Taxa5_32_91Dias_DeveRetornar_Cotacao_0_0290148()
        {
            var ntnb   = new NTNB();
            var actual = ntnb.Cotacao(5.32, 91);

            Assert.Equal(0.0290148M, actual);
        }