[ExpectedException(typeof(NullReferenceException))] // this happens with MS anyway. public void Attributes() { TargetPoker c = new TargetPoker(); 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 () { TargetPoker c = new TargetPoker (); StringWriter sw; ScriptTextWriter w; sw = new StringWriter(); w = new ScriptTextWriter (sw); c.AddAttributes (w); Assert.AreEqual ("", sw.ToString(), "A1"); }