Exemplo n.º 1
0
        /// <summary>
        /// Main entry point for the test application
        /// </summary>
        /// <param name="args"> Unused by test app </param>
        public static void Main(string[] args)
        {
            var analyzer = new TextAnalyzer();
            var results = analyzer.AccumulateWords("This is a statement, and so is this.");

            foreach (var result in results)
            {
                Console.WriteLine(result.Key + " - " + result.Value);
            }
        }
 public void WhenTheProgramIsRun()
 {
     var analyzer = new TextAnalyzer();
     ScenarioContext.Current.Add("Results", analyzer.AccumulateWords(this._sentence));
 }