public ITextStatistic Build(Stream stream) { Precondition.EnsureNotNull("stream", stream); IStreamConverter converter = new StreamConverter(); string txt = converter.ToText(stream).ToLowerInvariant(); ITextStatistic stats = new TextStatistic(txt); return stats.Build(); }
public void Ctor_ArgumentEmptyString_ArgumentNullException() { ITextStatistic stats = new TextStatistic(String.Empty); Assert.Fail("Shouldn't reach this code"); }
public void Ctor_ArgumentNull_ArgumentNullException() { ITextStatistic stats = new TextStatistic(null); Assert.Fail("Shouldn't reach this code"); }
public void Build_HavingEmptyText_ArgumentNullException() { ITextStatistic stats = new TextStatistic(); stats.Build(); Assert.Fail("Shouldn't reach this code"); }