예제 #1
0
파일: test.cs 프로젝트: mygaraj/Interview
 public void WriteMaxUint()
 {
     ICharAppender writer = new CharAppender();
     IPrint ulongprinter = new NumberPrinter(writer);
     ulongprinter.putlong(ulong.MaxValue);
     string actualString = writer.GetTotalString();
     Assert.AreEqual(ulong.MaxValue.ToString(), actualString);
 }
예제 #2
0
파일: test.cs 프로젝트: mygaraj/Interview
 public void WriteZero()
 {
     ulong zero = 0;
     ICharAppender writer = new CharAppender();
     IPrint ulongprinter = new NumberPrinter(writer);
     ulongprinter.putlong(zero);
     string actualString = writer.GetTotalString();
     Assert.AreEqual("0", actualString);
 }
예제 #3
0
파일: test.cs 프로젝트: mygaraj/Interview
 public void WriteThousand()
 {
     ulong thousand = 1000;
     ICharAppender writer = new CharAppender();
     IPrint ulongprinter = new NumberPrinter(writer);
     ulongprinter.putlong(thousand);
     string actualString = writer.GetTotalString();
     Assert.AreEqual(thousand.ToString(), actualString);
 }
예제 #4
0
파일: test.cs 프로젝트: mygaraj/Interview
 public void WriteLessTen()
 {
     ulong five = 5;
     ICharAppender writer = new CharAppender();
     IPrint ulongprinter = new NumberPrinter(writer);
     ulongprinter.putlong(five);
     string actualString = writer.GetTotalString();
     Assert.AreEqual("5", actualString);
 }
예제 #5
0
파일: test.cs 프로젝트: mygaraj/Interview
 public void WriteLessHunder()
 {
     ulong fifty = 50;
     ICharAppender writer = new CharAppender();
     IPrint ulongprinter = new NumberPrinter(writer);
     ulongprinter.putlong(fifty);
     string actualString = writer.GetTotalString();
     Assert.AreEqual(fifty.ToString(), actualString);
 }