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();
        }
Пример #2
0
 public void Build_HavingEmptyText_ArgumentNullException()
 {
     ITextStatistic stats = new TextStatistic();
     stats.Build();
     Assert.Fail("Shouldn't reach this code");
 }