public void NullStreamThrows()
{
// [] Null string should write nothing
Stream ms = CreateStream();
StreamWriter sw = new StreamWriter(ms);
sw.Write((string)null);
sw.Flush();
Assert.Equal(0, ms.Length);
}
}