Ejemplo n.º 1
0
        public void Strength_Buy0Sell100_ReturnsSell0()
        {
            var combinedSignal = new DefensiveCombinedSignal( new BuySignal( 0 ), new SellSignal( 100 ) );

            var expectedSignal = new SellSignal( 0 );
            Assert.That( combinedSignal, Is.EqualTo( expectedSignal ) );
        }
Ejemplo n.º 2
0
        public void Strength_Sell100Neutral50_ReturnsSell50()
        {
            var combinedSignal = new DefensiveCombinedSignal( new SellSignal( 100 ), new NeutralSignal( 50 ) );

            var expectedSignal = new SellSignal( 25 );
            Assert.That( combinedSignal, Is.EqualTo( expectedSignal ) );
        }
Ejemplo n.º 3
0
        public void SellSignal_WhenCreated_StrengthIs50()
        {
            var signal = new SellSignal();

            Assert.That( signal.Strength.Value, Is.EqualTo( 50 ) );
        }