public void BytesAsStringWith3NumbersAndSplitter() { Assert.AreEqual( StringsFunctions.BytesAsString(new byte[] { 1, 13, 255 }, "+"), "1+13+255" ); }
public void BytesAsStringWith7NumbersAndSplitter() { Assert.AreEqual( StringsFunctions.BytesAsString(new byte[] { 0, 4, 1, 13, 255, 254, 88 }, "~"), "0~4~1~13~255~254~88" ); }
public void BytesAsStringWith9LargeNumbers() { Assert.AreEqual( StringsFunctions.BytesAsString(new byte[] { 255, 255, 255, 255, 255, 255, 255, 255, 255 }), "255255255255255255255255255" ); }
public void BytesAsStringWith1NumberAndSplitter() { Assert.AreEqual( StringsFunctions.BytesAsString(new byte[] { 45 }, "@"), "45" ); }
public void BytesAsStringWith7Numbers() { Assert.AreEqual( StringsFunctions.BytesAsString(new byte[] { 0, 4, 1, 13, 255, 254, 88 }), "0411325525488" ); }
public void BytesAsStringWith8Zeros() { Assert.AreEqual( StringsFunctions.BytesAsString(new byte[] { 0, 0, 0, 0, 0, 0, 0, 0 }), "00000000" ); }
public void BytesAsStringWith3Numbers() { Assert.AreEqual( StringsFunctions.BytesAsString(new byte[] { 1, 13, 255 }), "113255" ); }
public void BytesAsStringWith1Numbers() { Assert.AreEqual( StringsFunctions.BytesAsString(new byte[] { 66 }), "66" ); }
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" ); }
public void BytesAsStringWithEmptyString() { Assert.AreEqual( StringsFunctions.BytesAsString(new byte[] { }), "" ); }
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" ); }