コード例 #1
0
 public void GetByteTest()
 {
     StringStack SS = new StringStack("112233445566");
     Assert.AreEqual("11", SS.getByte());
     Assert.AreEqual("22", SS.getByte());
     Assert.AreEqual("33", SS.getByte());
     Assert.AreEqual("44", SS.getByte());
     Assert.AreEqual("112233445566", SS.OriginalString);
 }
コード例 #2
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());
 }
コード例 #3
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);
 }