示例#1
0
 public void testLogSetOutMultipleTimes()
 {
     LogC.setOut("Test", "foo", false);
     LogC.setOut("Test", "foo", false);
     LogC.setOut("Test", "bar", false);
     LogC.setOut("Test", "foo", false);
     LogC.setOut("Test", null, false);
     LogC.setOut("Test", null, false);
     LogC.setOut("Test", null, false);
 }
示例#2
0
 [SetUp] public void setUpWithTeardown()
 {
     try {
         LogC.consoleOut("setUpWithTeardown");
         LogC.setOut("setup " + this, null, false);
         LogC.setVerboseLoggingForever(true);
         LogC.info("Starting " + this);
         Log.info("Starting " + this);
         setUp();
     }  catch {
         try {
             tearDown();
         } catch (Exception e) {
             LogC.err("failed in teardown after failing in setup! ", e);
         }
         throw;
     }
 }
示例#3
0
 public override void tearDown()
 {
     base.tearDown();
     LogC.setOut("Test", null, false);
 }