示例#1
0
 public void BytesAsStringWith3NumbersAndSplitter()
 {
     Assert.AreEqual(
         StringsFunctions.BytesAsString(new byte[] { 1, 13, 255 }, "+"),
         "1+13+255"
         );
 }
示例#2
0
 public void BytesAsStringWith7NumbersAndSplitter()
 {
     Assert.AreEqual(
         StringsFunctions.BytesAsString(new byte[] { 0, 4, 1, 13, 255, 254, 88 }, "~"),
         "0~4~1~13~255~254~88"
         );
 }
示例#3
0
 public void BytesAsStringWith9LargeNumbers()
 {
     Assert.AreEqual(
         StringsFunctions.BytesAsString(new byte[] { 255, 255, 255, 255, 255, 255, 255, 255, 255 }),
         "255255255255255255255255255"
         );
 }
示例#4
0
 public void BytesAsStringWith1NumberAndSplitter()
 {
     Assert.AreEqual(
         StringsFunctions.BytesAsString(new byte[] { 45 }, "@"),
         "45"
         );
 }
示例#5
0
 public void BytesAsStringWith7Numbers()
 {
     Assert.AreEqual(
         StringsFunctions.BytesAsString(new byte[] { 0, 4, 1, 13, 255, 254, 88 }),
         "0411325525488"
         );
 }
示例#6
0
 public void BytesAsStringWith8Zeros()
 {
     Assert.AreEqual(
         StringsFunctions.BytesAsString(new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }),
         "00000000"
         );
 }
示例#7
0
 public void BytesAsStringWith3Numbers()
 {
     Assert.AreEqual(
         StringsFunctions.BytesAsString(new byte[] { 1, 13, 255 }),
         "113255"
         );
 }
示例#8
0
 public void BytesAsStringWith1Numbers()
 {
     Assert.AreEqual(
         StringsFunctions.BytesAsString(new byte[] { 66 }),
         "66"
         );
 }
示例#9
0
 public void BytesAsStringWith9LargeNumbersAndSplitter()
 {
     Assert.AreEqual(
         StringsFunctions.BytesAsString(new byte[] { 255, 255, 255, 255, 255, 255, 255, 255, 255 }, "^^^"),
         "255^^^255^^^255^^^255^^^255^^^255^^^255^^^255^^^255"
         );
 }
示例#10
0
 public void BytesAsStringWithEmptyString()
 {
     Assert.AreEqual(
         StringsFunctions.BytesAsString(new byte[] { }),
         ""
         );
 }
示例#11
0
 public void BytesAsStringWith8ZerosAndSplitter()
 {
     Assert.AreEqual(
         StringsFunctions.BytesAsString(new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }, "&"),
         "0&0&0&0&0&0&0&0"
         );
 }