public void InitalizePaths() { TestHelper.InitalizePaths(); TestHelper.PrepareLogFolder("Gzip"); TestHelper.PrepareLogFolder("Termination"); TestHelper.PrepareLogFolder("TerminationLost"); }
public void applying_empty_configuration_and_disposing() { TestHelper.InitalizePaths(); GrandOutput.EnsureActiveDefault(new GrandOutputConfiguration()); GrandOutput.Default.Should().NotBeNull(); GrandOutput.Default.Dispose(); GrandOutput.Default.Should().BeNull(); }
public void testing_CKMonWriterClient_output() { TestHelper.InitalizePaths(); var path = Path.Combine(LogFile.RootLogPath, "CKMonWriterClient"); if (Directory.Exists(path)) { Directory.Delete(path, true); } var m = new ActivityMonitor(false); // This test works only because CKMonWriterClient does not talk to // the InternalMonitor: there is exactly 3 traces, so only one file // is created and closed (on the thirs log). var client = m.Output.RegisterClient(new CKMonWriterClient("CKMonWriterClient", 3)); client.IsOpened.Should().BeTrue(); m.Info("Info n°1."); m.Info("Info n°2."); m.Info("Info n°3."); Directory.EnumerateFiles(path).Should().HaveCount(1); }
public void Setup() { TestHelper.InitalizePaths(); }
public void InitializePath() => TestHelper.InitalizePaths();
public void Setup() { TestHelper.InitalizePaths(); GrandOutput.GrandOutputMinimalFilter = LogFilter.Debug; }