Пример #1
0
 public void GetBytes(string source, int index, int count, byte[] expected)
 {
     EncodingHelpers.Encode(new UnicodeEncoding(), source, index, count, expected);
 }
Пример #2
0
 public void GetString(byte[] bytes, int index, int count, string expected)
 {
     EncodingHelpers.GetString(new UnicodeEncoding(), bytes, index, count, expected);
 }
Пример #3
0
 public void GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex, int expected)
 {
     EncodingHelpers.GetChars(new UnicodeEncoding(), bytes, byteIndex, byteCount, chars, charIndex, expected);
 }
Пример #4
0
 public void GetBytes(string source, int index, int count, byte[] bytes, int byteIndex, byte[] expectedBytes)
 {
     EncodingHelpers.GetBytes(new UnicodeEncoding(), source, index, count, bytes, byteIndex, expectedBytes);
 }
Пример #5
0
 public void Decode_BigEndian(byte[] bytes, int index, int count, string expected)
 {
     EncodingHelpers.Decode(new UnicodeEncoding(true, false), bytes, index, count, expected);
     EncodingHelpers.Decode(new UnicodeEncoding(true, true), bytes, index, count, expected);
 }
Пример #6
0
 public void GetBytes_Invalid()
 {
     EncodingHelpers.GetBytes_Invalid(new UnicodeEncoding());
 }
Пример #7
0
 public void GetCharCount(byte[] bytes, int index, int count, int expected)
 {
     EncodingHelpers.GetCharCount(new UTF8Encoding(), bytes, index, count, expected);
 }
Пример #8
0
 private void GetByteCount(string chars, int index, int count, int expected)
 {
     EncodingHelpers.GetByteCount(new ASCIIEncoding(), chars, index, count, expected);
 }
Пример #9
0
 public void GetChars(byte[] bytes, int index, int count, char[] expected)
 {
     EncodingHelpers.Decode(new UTF8Encoding(), bytes, index, count, expected);
 }
Пример #10
0
 public void Encode(string chars, int index, int count, byte[] expected)
 {
     EncodingHelpers.Encode(new UTF8Encoding(), chars, index, count, expected);
 }
Пример #11
0
 public void GetMaxCharCount_Invalid()
 {
     EncodingHelpers.GetMaxCharCount_Invalid(new UnicodeEncoding());
 }
Пример #12
0
 public void Decode(byte[] bytes, int index, int count, string expected)
 {
     EncodingHelpers.Decode(new UTF7Encoding(true), bytes, index, count, expected);
     EncodingHelpers.Decode(new UTF7Encoding(false), bytes, index, count, expected);
 }
Пример #13
0
 public void GetByteCount(UTF7Encoding encoding, string chars, int index, int count, int expected)
 {
     EncodingHelpers.GetByteCount(encoding, chars, index, count, expected);
 }
Пример #14
0
 public void GetString_Invalid()
 {
     EncodingHelpers.GetString_Invalid(new UnicodeEncoding());
 }
Пример #15
0
 public void GetByteCount(string chars, int index, int count, int expected)
 {
     EncodingHelpers.GetByteCount(new UTF8Encoding(), chars, index, count, expected);
 }
Пример #16
0
 public void Encode_Advanced(bool allowOptionals, string source, int index, int count, byte[] expected)
 {
     EncodingHelpers.Encode(new UTF7Encoding(allowOptionals), source, index, count, expected);
 }
Пример #17
0
 public void GetChars(byte[] bytes, int byteIndex, int byteCount, char[] chars, int charIndex, char[] expectedChars)
 {
     EncodingHelpers.GetChars(new UTF8Encoding(), bytes, byteIndex, byteCount, chars, charIndex, expectedChars);
 }