Example #1
0
		public FakeConsole() 
		{
			Stream inputStream = new BlockingStream(new ProducerConsumerStream());
			this.inputReader = new StreamReader(inputStream);
			this.inputWriter = new StreamWriter(inputStream) { AutoFlush = true };

			Stream outputStream = new BlockingStream(new ProducerConsumerStream());
			this.outputReader = new StreamReader(outputStream);
			this.outputWriter = new StreamWriter(outputStream) { AutoFlush = true };
		}
Example #2
0
        public FakeConsole()
        {
            Stream inputStream = new BlockingStream(new ProducerConsumerStream());

            this.inputReader = new StreamReader(inputStream);
            this.inputWriter = new StreamWriter(inputStream)
            {
                AutoFlush = true
            };

            Stream outputStream = new BlockingStream(new ProducerConsumerStream());

            this.outputReader = new StreamReader(outputStream);
            this.outputWriter = new StreamWriter(outputStream)
            {
                AutoFlush = true
            };
        }