示例#1
0
        public void StreamData(StreamReader reader, StreamWriter writer)
        {
            KeySentiments server = new KeySentiments();

            do
            {
                string inputLine = reader.ReadLine();
                server.Sentiment(inputLine, writer);
            } while (reader.EndOfStream == false);
        }
示例#2
0
        public void PromptForInput(StreamWriter writer)
        {
            KeySentiments server = new KeySentiments();

            do
            {
                Console.Write("Enter text <empty to quit>: ");
                string inputLine = Console.ReadLine();
                if (inputLine == null || inputLine.Length == 0)
                {
                    break;
                }
                else
                {
                    server.Sentiment(inputLine, writer);
                }
            } while (true);
        }
示例#3
0
 public static void AssemblyInit(TestContext context)
 {
     analyzer = new KeySentiments();
 }