public void test_IsSignalBidirection_Negative() { ISignalContext context = new SignalContext(); context.setPendingSignal1(AppConstant.BUY_SIGNAL, 20000, createOrder_Buy1Contract_1Complete(), "Buy Order"); Assert.AreEqual(false, context.isSignalBidirection()); }
public void test_IsSignalBidirection_Positive() { ISignalContext context = new SignalContext(); context.setPendingSignal1(AppConstant.BUY_SIGNAL, 20000, createOrder_Buy1Contract_0Complete(), "Buy Order"); context.setPendingSignal2(AppConstant.SELL_SIGNAL, 22000, createOrder_Sell1Contract_0Complete(), "Sell Order"); Assert.AreEqual(true, context.isSignalBidirection()); }