public void WriteCustomLenghtStrings()
{
char[] chArr = setupArray();
// [] Write some custom length strings
Stream ms = CreateStream();
StreamWriter sw = new StreamWriter(ms);
StreamReader sr;
sw.Write(chArr, 2, 5);
sw.Flush();
ms.Position = 0;
sr = new StreamReader(ms);
int tmp = 0;
for (int i = 2; i < 7; i++)
{
tmp = sr.Read();
Assert.Equal((int)chArr[i], tmp);
}
ms.Dispose();
}