Ejemplo n.º 1
0
        public void WhenSolidGainUseClosingStop(double gain)
        {
            // Arrange
            var strategy = new AggressiveExitStrategy();

            // Act
            var stop = strategy.GetStopForPercentageGain(gain);

            // Assert
            Assert.IsType <ClosingStop>(stop);
        }
Ejemplo n.º 2
0
        public void WhenNoneOrLittleGainUseTrailingStop(double gain)
        {
            // Arrange
            var strategy = new AggressiveExitStrategy();

            // Act
            var stop = strategy.GetStopForPercentageGain(gain);

            // Assert
            Assert.IsType <TrailingStop>(stop);
        }