[ExpectedException(typeof(NullReferenceException))] // this happens with MS anyway. public void Attributes() { Poker c = new Poker(); StringWriter sw; ScriptTextWriter w; sw = new StringWriter(); w = new ScriptTextWriter(sw); c.AddAttributes(w); Assert.AreEqual("", sw.ToString(), "A1"); }
[ExpectedException (typeof (NullReferenceException))] // this happens with MS anyway. public void Attributes () { Poker c = new Poker (); StringWriter sw; ScriptTextWriter w; sw = new StringWriter(); w = new ScriptTextWriter (sw); c.AddAttributes (w); Assert.AreEqual ("", sw.ToString(), "A1"); }