Ejemplo n.º 1
0
        public override void RunStrategy()
        {
            Assert.Ignore();
            // Verify exception doesn't cause the strategy to fail but
            // simply logs the error.
            MarketOrderTest testFixture = new MarketOrderTest();

            testFixture.Symbols = "TestException";
            testFixture.CreateStarterCallback = CreateStarter;
            testFixture.RunStrategy();
        }
Ejemplo n.º 2
0
 public override void RunStrategy()
 {
     try {
         MarketOrderTest testFixture = new MarketOrderTest();
         testFixture.Symbols = "TestException";
         testFixture.CreateStarterCallback = CreateStarter;
         testFixture.RunStrategy();
         Assert.Fail("Expected exception of propagation of exception never thrown.");
     } catch (Exception ex) {
         string expectedMessage = @"System.InvalidOperationException: Test of Exception Propagation";
         Assert.IsTrue(ex.InnerException.Message.StartsWith(expectedMessage));
     }
 }