예제 #1
0
파일: Utility.cs 프로젝트: Sryn/CSExercises
 public FakeStringWriter(ConsoleLog l)
 {
     log = l;
 }
예제 #2
0
파일: Utility.cs 프로젝트: Sryn/CSExercises
 public FakeStringReader(string s, ConsoleLog l, FakeStringWriter tw)
     : base(s)
 {
     log = l;
     this.tw = tw;
 }
예제 #3
0
 public FakeStringReader(string s, ConsoleLog l, FakeStringWriter tw)
     : base(s)
 {
     log     = l;
     this.tw = tw;
 }
예제 #4
0
 public TestHelper()
 {
     l  = new ConsoleLog();
     tw = new FakeStringWriter(l);
     Console.SetOut(tw);
 }
예제 #5
0
        private int cursor = 0; //index for the new line - when it's pointing to new line, cursor can be = Entries.count

        public FakeStringWriter(ConsoleLog l)
        {
            log = l;
        }