public void PorterUniqueWordAnalyzer_Empty() { var result = subject.Analyze(String.Empty); Assert.IsNotNull(result); Assert.IsNotNull(result.Results); Assert.AreEqual(0, result.Results.Count()); }
static void Main(string[] args) { var mediator = new ConsoleMediator(); mediator.DisplayWelcome(); var input = mediator.GetInput(); var analyzer = new PorterUniqueWordAnalyzer(new[] { "a", "the", "and", "of", "in", "be", "also", "as" }); var result = analyzer.Analyze(input); var json = JsonConvert.SerializeObject(result, Formatting.Indented); Console.WriteLine(json); mediator.WaitForExit(); }