+ Assert.AreEqual ('Y', w.NewLine [0]);
+ }
+
+ class ArrayOrCharTester : TextWriter {
+ public bool called_array;
+ public override Encoding Encoding { get { return Encoding.UTF8; }}
+
+ public override void Write (char [] x, int a, int b)
+ {
+ called_array = true;
+ }
+ public override void Write (char c)
+ {
+ }
+ }
+
+ [Test]
+ public void TestCharArrayCallsArrayIntInt ()
+ {
+ ArrayOrCharTester x = new ArrayOrCharTester ();
+ x.Write (new char [] {'a','b','c'});
+ Assert.AreEqual (true, x.called_array);