Example #1
0
        public void TargetPrice_from_tick_returns_expected_result(decimal entryPrice, int targetTick, decimal expectedResult)
        {
            var result = TargetPrice(Money(entryPrice), TickExtensions.Tick(targetTick));

            result.Should().Be(Money(expectedResult));
        }
Example #2
0
        public void StopLossPrice_from_tick_returns_expected_result(decimal entryPrice, int stopLossTick, decimal expectedResult)
        {
            var result = StopLossPrice(Money(entryPrice), TickExtensions.Tick(stopLossTick));

            result.Should().Be(Money(expectedResult));
        }