Пример #1
0
        public void Strength_Buy100Sell0_ReturnsBuy25()
        {
            var combinedSignal = new OffensiveCombinedSignal( new BuySignal( 100 ), new SellSignal( 0 ) );

            var expectedSignal = new BuySignal( 25 );
            Assert.That( combinedSignal, Is.EqualTo( expectedSignal ) );
        }
Пример #2
0
        public void Strength_Buy100Sell50_ReturnsNeutral100()
        {
            var combinedSignal = new OffensiveCombinedSignal( new BuySignal( 100 ), new SellSignal( 50 ) );

            var expectedSignal = new NeutralSignal( 100 );
            Assert.That( combinedSignal, Is.EqualTo( expectedSignal ) );
        }
Пример #3
0
        public void Strength_Sell100Neutral50_ReturnsSell37()
        {
            var combinedSignal = new OffensiveCombinedSignal( new SellSignal( 100 ), new NeutralSignal( 50 ) );

            var expectedSignal = new SellSignal( 37 );
            Assert.That( combinedSignal, Is.EqualTo( expectedSignal ) );
        }