getBytes() public method

public getBytes ( int length ) : string
length int
return string
Ejemplo n.º 1
0
 public void getRemaining()
 {
     StringStack SS = new StringStack("11223344556677889900");
     Assert.AreEqual("1122", SS.getBytes(2));
     Assert.AreEqual("33", SS.getByte());
     Assert.AreEqual("44", SS.getByte());
     Assert.AreEqual("556677", SS.getBytes(3));
     Assert.AreEqual("889900", SS.getRemaining());
 }
Ejemplo n.º 2
0
 public void GetBytesTest()
 {
     StringStack SS = new StringStack("112233445566778899");
     Assert.AreEqual("1122", SS.getBytes(2));
     Assert.AreEqual("33", SS.getByte());
     Assert.AreEqual("44", SS.getByte());
     Assert.AreEqual("556677", SS.getBytes(3));
     Assert.AreEqual("112233445566778899", SS.OriginalString);
 }