private void ExecuteHookNTimes(int times = 1) { for (int i = 0; i < times; i++) { codeHooks.AddSourceFile("classBDummy.cs", string.Format("Call #{0} - This\nis\na\nreally\ninteresting\ncode", i)); } }
public void TestLoggingLine_REDIS() { int times = 20; for (int i = 0; i < times; i++) { codeHooks.AddSourceFile("classBDummy.cs", "This\nis\na\nreally\ninteresting\ncode"); } MessageDispatcher.WaitToFinish(); Assert.IsTrue(redisHelper.ListCount(KEY) == times); }
private void RegisterFile(SourceFile sourceFile) { codeHooks.AddSourceFile(sourceFile.FilePath, sourceFile.GetCode()); }