Example #1
0
        [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");
        }
Example #2
0
		[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");
		}