public void StrategyGetEmptyException()
        {
            StrategyInner            inner = new StrategyInner();
            StrategySupportInterface aware = inner.Next;

            Assert.IsNull(aware, "Strategy property");
        }
        public void OtherSignalTest()
        {
            TickWrapper wrapper    = new TickWrapper();
            TickBinary  tickBinary = new TickBinary();

            tickReader.ReadQueue.Dequeue(ref tickBinary);
            wrapper.SetTick(ref tickBinary);
            data.InitializeTick(wrapper);
            StrategyInner inner = new StrategyInner();

            inner.Name            = "Inner";
            inner.IntervalDefault = IntervalsInternal.Day1;
            ModelDriverFactory factory = new ModelDriverFactory();

            factory.GetInstance(inner).EngineInitialize(data);
            StrategyInner other = new StrategyInner();

            other.Name            = "Other";
            other.IntervalDefault = IntervalsInternal.Day1;
            factory.GetInstance(other).EngineInitialize(data);
            inner.Chain.InsertAfter(other.Chain);
            log.Debug(inner.Chain.ToChainString());
            other.setSignal(1);
            StrategySupportInterface strategy = inner.Chain.Next.Next.Next.Next.Next.Model as StrategySupportInterface;

            Assert.AreEqual(1, strategy.Position.Signal, "Signal");
            other.setSignal(-1);
            strategy = inner.Chain.Next.Next.Next.Next.Next.Model as StrategySupportInterface;
            Assert.AreEqual(-1, strategy.Position.Signal, "Signal");
            other.setSignal(0);
            strategy = inner.Chain.Next.Model as StrategySupportInterface;
            Assert.AreEqual(0, strategy.Position.Signal, "Signal");
        }
        public void StrategyGetException()
        {
            StrategyInner inner  = new StrategyInner();
            StrategyInner other1 = new StrategyInner();
            StrategyInner other2 = new StrategyInner();
            StrategyInner other3 = new StrategyInner();

            inner.AddDependency(other1);
            inner.AddDependency(other2);
            inner.AddDependency(other3);
            StrategySupportInterface aware = inner.Next;

            Assert.IsNull(aware);
        }