public void AddLine(DataLine line) { if (line!=null) { foreach(TokenCounter tc in _tokenCounters) { tc.AddLine(line); } } }
public void ShouldRenderToString() { DataLine dl = new DataLine("the fast brown fox"); Assert.AreEqual("the fast brown fox", dl.ToString()); }
public void AddLine(DataLine line) { string[] tokens = null; if (line != null) { tokens = line.ToString().Split(_separator.ToCharArray()); } if (tokens == null) { _tokenCounts.Add(0); } else { _tokenCounts.Add(tokens.Length); } }
public void AddLine(DataLine line) { _tcs.AddLine(line); }