public void Is_Not_HangingMan_Test(TestCandlesContext context)
        {
            var upTrend           = new UpTrend();
            var hangingManPattern = new HangingMan(upTrend);

            var match = hangingManPattern.Match(context);

            Assert.False(match.Success, "Candles do not create an Hammer pattern");
        }
        public void Is_HangingMan_Test()
        {
            var context = new TestCandlesContext()
                          .WithUpTrend()
                          .WithPinBar()
                          .WithCandleIndex(4);

            var upTrend           = new UpTrend();
            var hangingManPattern = new HangingMan(upTrend);

            var match = hangingManPattern.Match(context);

            Assert.True(match.Success, "Candles create an Hammer pattern");
        }