Example #1
0
 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);
 }
Example #2
0
 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);
 }
Example #3
0
 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);
 }
Example #4
0
 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);
 }
Example #5
0
 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);
 }