Exemplo n.º 1
0
 public void LengthTest()
 {
     Assert.Equal(Encoding.UTF8.GetByteCount(ENGLISH_SENTENCE_1), (int)StringClass.GetLength(ENGLISH_SENTENCE_1));
     Assert.Equal(Encoding.UTF8.GetByteCount(ENGLISH_SENTENCE_2), (int)StringClass.GetLength(ENGLISH_SENTENCE_2));
     Assert.Equal(Encoding.UTF8.GetByteCount(FRENCH_SENTENCE_1), (int)StringClass.GetLength(FRENCH_SENTENCE_1));
     Assert.Equal(Encoding.UTF8.GetByteCount(FRENCH_SENTENCE_2), (int)StringClass.GetLength(FRENCH_SENTENCE_2));
 }