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); }
[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; } }
public override void tearDown() { base.tearDown(); LogC.setOut("Test", null, false); }