public void Watch_ExpectedTextAppeared() { var timeout = 250; _watcher.Watch(timeout); var inputText = File.ReadAllText(INPUT); File.AppendAllText(TEST_FILE, inputText); var expectedLogLines = _parser.Parse(inputText); Thread.Sleep(2 * timeout); Assert.True(_watcher.LogLineQueue.Count == expectedLogLines.Length, $"Log line count differs: expected - {expectedLogLines.Length}, observed - {_watcher.LogLineQueue.Count}"); }