コード例 #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
ファイル: Utility.cs プロジェクト: BionStt/CSExercises
 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
ファイル: Utility.cs プロジェクト: BionStt/CSExercises
        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;
        }